aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f079754..2ea57fc 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -54,6 +54,9 @@ nnoremap <silent> <leader>CC :Commands<CR>
command! Vlist botright vertical copen | vertical resize 50
nnoremap <leader>v : Vlist<CR>
+" In pursuit of the single text file idea, which uses TODO, IDEA, FLAG
+" as tags at the start of lines, this function is a vim-native replacement
+" for fzf BLines, which does get a bit fuzzy sometimes. Not a biggie.
" Do do a sort of fuzzy line match in the buffer insread
" of BLines - call with :SearchAndAddToQuickfix ^IDEA and it will
" open in quickfix:
@@ -86,6 +89,8 @@ endfunction
" Command to use the function, :SearchAndAddToQuickfix [pattern]
command! -nargs=1 SearchAndAddToQuickfix call SearchAndAddToQuickfix(<q-args>)
+" Define a keybinding to call SearchAndAddToQuickfix
+nnoremap <leader>f :call SearchAndAddToQuickfix(input('Search term: '))<CR>
" }}}
" Options {{{