From 6328ff96dabed92b71f394b96b345f82d542b8eb Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 16 Mar 2023 16:01:20 +0000 Subject: better vim stuff for notetaking --- vim/plugged/Ultisnips | 2 +- vim/plugged/ale | 2 +- vim/plugged/bufexplorer | 2 +- vim/plugged/fzf | 2 +- vim/plugged/fzf.vim | 2 +- vim/plugged/jedi | 2 +- vim/plugged/vim-commentary | 2 +- vim/plugged/vim-dispatch | 2 +- vim/plugged/vim-fugitive | 2 +- vim/plugged/vim-go | 2 +- vim/plugged/vim-ledger | 2 +- vim/plugged/vim-polyglot | 2 +- vim/plugged/vim-sensible | 2 +- vim/plugged/vim-signify | 2 +- vim/plugged/vim-snippets | 2 +- vim/plugged/vim-surround | 2 +- vim/plugged/vim-test | 2 +- vim/plugged/vim-unimpaired | 2 +- vim/vimrc | 15 ++++++++++++++- 19 files changed, 32 insertions(+), 19 deletions(-) diff --git a/vim/plugged/Ultisnips b/vim/plugged/Ultisnips index e99fdf1..0ad238b 160000 --- a/vim/plugged/Ultisnips +++ b/vim/plugged/Ultisnips @@ -1 +1 @@ -Subproject commit e99fdf15cd55a4a8e0cb0a80a6810c1867a5c401 +Subproject commit 0ad238b1910d447476b2d98f593322c1cdb71285 diff --git a/vim/plugged/ale b/vim/plugged/ale index 951a668..fbae1bc 160000 --- a/vim/plugged/ale +++ b/vim/plugged/ale @@ -1 +1 @@ -Subproject commit 951a668b1490f0b3dcdcec6b4ebf3f626c0f416f +Subproject commit fbae1bc1937ce69fa80b4b32d178ce666fd5c07c diff --git a/vim/plugged/bufexplorer b/vim/plugged/bufexplorer index e782dab..5a830d5 160000 --- a/vim/plugged/bufexplorer +++ b/vim/plugged/bufexplorer @@ -1 +1 @@ -Subproject commit e782dab0fe9523ac65d9fe4f726f2efe924e3f43 +Subproject commit 5a830d5d2d7417bf02339ec279c90e98dde822f8 diff --git a/vim/plugged/fzf b/vim/plugged/fzf index 07da058..1116e48 160000 --- a/vim/plugged/fzf +++ b/vim/plugged/fzf @@ -1 +1 @@ -Subproject commit 07da058eae6f26de4cbe08c48563154e775f6183 +Subproject commit 1116e481bef4f63abe0e506ce20469e244c505e6 diff --git a/vim/plugged/fzf.vim b/vim/plugged/fzf.vim index 9ceac71..dc71692 160000 --- a/vim/plugged/fzf.vim +++ b/vim/plugged/fzf.vim @@ -1 +1 @@ -Subproject commit 9ceac718026fd39498d95ff04fa04d3e40c465d7 +Subproject commit dc71692255b62d1f67dc55c8e51ab1aa467b1d46 diff --git a/vim/plugged/jedi b/vim/plugged/jedi index 8b0d391..6ee33bd 160000 --- a/vim/plugged/jedi +++ b/vim/plugged/jedi @@ -1 +1 @@ -Subproject commit 8b0d391ac15c07dfb7902ee35dff35d3ccc900e9 +Subproject commit 6ee33bd385c9f5e3b1ceba6338d465953d64f7a2 diff --git a/vim/plugged/vim-commentary b/vim/plugged/vim-commentary index 3654775..e87cd90 160000 --- a/vim/plugged/vim-commentary +++ b/vim/plugged/vim-commentary @@ -1 +1 @@ -Subproject commit 3654775824337f466109f00eaf6759760f65be34 +Subproject commit e87cd90dc09c2a203e13af9704bd0ef79303d755 diff --git a/vim/plugged/vim-dispatch b/vim/plugged/vim-dispatch index 00e77d9..6cc2691 160000 --- a/vim/plugged/vim-dispatch +++ b/vim/plugged/vim-dispatch @@ -1 +1 @@ -Subproject commit 00e77d90452e3c710014b26dc61ea919bc895e92 +Subproject commit 6cc2691576f97d43f8751664d1a1a908b99927e5 diff --git a/vim/plugged/vim-fugitive b/vim/plugged/vim-fugitive index dd8107c..5b52a0f 160000 --- a/vim/plugged/vim-fugitive +++ b/vim/plugged/vim-fugitive @@ -1 +1 @@ -Subproject commit dd8107cabf5fe85df94d5eedcae52415e543f208 +Subproject commit 5b52a0f395065d6cb7b65a00a5e17eaf9ebd64d5 diff --git a/vim/plugged/vim-go b/vim/plugged/vim-go index 11752f2..8c4db1c 160000 --- a/vim/plugged/vim-go +++ b/vim/plugged/vim-go @@ -1 +1 @@ -Subproject commit 11752f23743ac55ffa8b0662ae480ebfb0dc855a +Subproject commit 8c4db1c61432511a3aa55971dabb2171cbcba7b1 diff --git a/vim/plugged/vim-ledger b/vim/plugged/vim-ledger index 212e3aa..8e735f8 160000 --- a/vim/plugged/vim-ledger +++ b/vim/plugged/vim-ledger @@ -1 +1 @@ -Subproject commit 212e3aa210c9f0965e4b234653a08fd3aa525470 +Subproject commit 8e735f84d2d954229ee65f4dc71bfc0bec897d98 diff --git a/vim/plugged/vim-polyglot b/vim/plugged/vim-polyglot index 38282d5..bc8a81d 160000 --- a/vim/plugged/vim-polyglot +++ b/vim/plugged/vim-polyglot @@ -1 +1 @@ -Subproject commit 38282d58387cff48ac203f6912c05e4c8686141b +Subproject commit bc8a81d3592dab86334f27d1d43c080ebf680d42 diff --git a/vim/plugged/vim-sensible b/vim/plugged/vim-sensible index 8985da7..5693bb6 160000 --- a/vim/plugged/vim-sensible +++ b/vim/plugged/vim-sensible @@ -1 +1 @@ -Subproject commit 8985da7669bbd73afce85ef0e4a3e1ce2e488595 +Subproject commit 5693bb650a26723975276bef7b1da2f00a571e0e diff --git a/vim/plugged/vim-signify b/vim/plugged/vim-signify index 8bc268c..a05e63b 160000 --- a/vim/plugged/vim-signify +++ b/vim/plugged/vim-signify @@ -1 +1 @@ -Subproject commit 8bc268c79d4053c2f5ccaadcf0b666dd16ed3a58 +Subproject commit a05e63ba72411977f5087c27c1564c9287bfab66 diff --git a/vim/plugged/vim-snippets b/vim/plugged/vim-snippets index 9a7f396..c7e61b7 160000 --- a/vim/plugged/vim-snippets +++ b/vim/plugged/vim-snippets @@ -1 +1 @@ -Subproject commit 9a7f3968c92c6589d3a12aa5448e8374c8d68a42 +Subproject commit c7e61b73a546c9dd0525cd158cc1613bb48e414a diff --git a/vim/plugged/vim-surround b/vim/plugged/vim-surround index bf3480d..3d188ed 160000 --- a/vim/plugged/vim-surround +++ b/vim/plugged/vim-surround @@ -1 +1 @@ -Subproject commit bf3480dc9ae7bea34c78fbba4c65b4548b5b1fea +Subproject commit 3d188ed2113431cf8dac77be61b842acb64433d9 diff --git a/vim/plugged/vim-test b/vim/plugged/vim-test index e7150de..c63b94c 160000 --- a/vim/plugged/vim-test +++ b/vim/plugged/vim-test @@ -1 +1 @@ -Subproject commit e7150de777ef0c81a015972e4feb56c4b3137efd +Subproject commit c63b94c1e5089807f4532e05f087351ddb5a207c diff --git a/vim/plugged/vim-unimpaired b/vim/plugged/vim-unimpaired index efdc647..6d44a6d 160000 --- a/vim/plugged/vim-unimpaired +++ b/vim/plugged/vim-unimpaired @@ -1 +1 @@ -Subproject commit efdc6475f7ea789346716dabf9900ac04ee8604a +Subproject commit 6d44a6dc2ec34607c41ec78acf81657248580bf1 diff --git a/vim/vimrc b/vim/vimrc index b34edc9..fe7d05b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -122,7 +122,9 @@ set equalalways set showmode set nobackup set listchars=tab:»→,trail:␣ -set grepprg=/usr/bin/ag +if executable('rg') + set grepprg=rg\ --color=never\ --vimgrep +endif " i don't bother with folding, but it's here if i need it. if has('folding') @@ -422,6 +424,17 @@ let g:fzf_colors = imap (fzf-complete-file-ag) imap (fzf-complete-line) +" ghetto note system +" Go to index of notes +nnoremap ni :e ~/Documents/Notes/index.md:cd ~/Documents/Notes +" Depends on grepprg being set to rg +command! -nargs=1 Ngrep grep "" -g "*.md" ~/Documents/Notes +nnoremap nn :Ngrep + +" open quicklist vertical +command! Vlist botright vertical copen | vertical resize 50 +nnoremap v :Vlist + " Search with ripgrep command! -bang -nargs=* Rg \ call fzf#vim#grep( -- cgit v1.2.3