diff options
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( |