diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-01 08:23:14 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-01 08:23:14 +0100 |
commit | 3fec92bb490d37faabef9bfc2a46d61492921c62 (patch) | |
tree | 96aff5b021984b9d9ad9b5142bc024cb2f328f1b /vim | |
parent | 32e028715527120a4dadb5dda930c72f6ed41694 (diff) |
Adds a bit more commentary to the function
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 {{{ |