aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-13 10:05:52 +0800
committerGuangxiong Lin <[email protected]>2022-04-13 10:05:52 +0800
commitb8f377c303c04acdd793eb4f13777c0347146f72 (patch)
tree9a5a3d6d922be1884c8e219bf65142986560ef1d
parent42759d62300ffdf8419511acad1f11061a4f6571 (diff)
downloaddotfiles-b8f377c303c04acdd793eb4f13777c0347146f72.tar.gz
dotfiles-b8f377c303c04acdd793eb4f13777c0347146f72.tar.bz2
dotfiles-b8f377c303c04acdd793eb4f13777c0347146f72.zip
Improve wildmode in vim
-rw-r--r--.vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index f71323d..9567953 100644
--- a/.vimrc
+++ b/.vimrc
@@ -80,12 +80,16 @@ set smartcase
" Completion
+set path+=**
set wildmenu
-set wildmode=longest:list,full
+set wildignorecase
+set wildmode=list:longest,full
set wildignore=*.o,*.obj,*~
set wildignore+=*DS_Store*
set wildignore+=*.gem
set wildignore+=*.png,*.jpg,*.gif
+set wildignore+=**/.git/**
+set wildignore+=**/node_modules/**
" change default directory
let s:vim_swapfiles_dir = expand('~/.vim/.swp/')