commit eafd49c1266fc1ae996a0f2b3c7a6c652866c32f
parent b6e11820a2b06a78a205133dae43f31b2f681ce7
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 15 May 2019 11:53:48 +0200
vim: native fuzzy find
Former-commit-id: ab68ff0e3249a47519689e60609981b05f2e05a8
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/vim/general.vimrc b/vim/general.vimrc
@@ -17,6 +17,10 @@ set noswapfile
" make regexes consistent with other programs (extended)
set magic
+" directories to search on find, gf, etc.
+set path=.,**
+set wildignore=**/.git/**,**/__pycache__/**,**/venv/**,**/node_modules/**,**/dist/**,**/build/**,*.o,*.pyc,*.swp
+
" Persistent undos (useful for plugins too)
if has('persistent_undo')
let myUndoDir = expand('$HOME/.vim' . '/undo')
diff --git a/vim/map.vimrc b/vim/map.vimrc
@@ -112,3 +112,6 @@ nnoremap <leader>sd :call DeleteSession()<CR>
nnoremap <leader>sq :call CloseSession()<CR>
nnoremap <leader>f :call ToggleNetrw()<CR>
+
+" native fuzzy find (:find doesn't do multiple files)
+nnoremap <leader>F :next **/*