diff options
author | Matthew Lemon <y@yulqen.org> | 2023-03-16 16:01:20 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-03-16 16:01:20 +0000 |
commit | 6328ff96dabed92b71f394b96b345f82d542b8eb (patch) | |
tree | 89ea95ef3945a467b4db3c3800e0f92dd66d56e3 /vim/vimrc | |
parent | 0f1d16a4e0a3d016c26d3a460bdae2725aacda9a (diff) |
better vim stuff for notetaking
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 <C-x><C-f> <plug>(fzf-complete-file-ag) imap <C-x><C-l> <plug>(fzf-complete-line) +" ghetto note system +" Go to index of notes +nnoremap <leader>ni :e ~/Documents/Notes/index.md<CR>:cd ~/Documents/Notes<CR> +" Depends on grepprg being set to rg +command! -nargs=1 Ngrep grep "<args>" -g "*.md" ~/Documents/Notes +nnoremap <leader>nn :Ngrep + +" open quicklist vertical +command! Vlist botright vertical copen | vertical resize 50 +nnoremap <leader>v :Vlist<CR> + " Search with ripgrep command! -bang -nargs=* Rg \ call fzf#vim#grep( |