aboutsummaryrefslogtreecommitdiff
path: root/vim/config/wildmenu.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:46:07 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:52:10 +1300
commitd27dbdad24ea0772711fa883969de97d0807827d (patch)
tree7197ba75a7f24545aeaee74d2a1a0d83013758c1 /vim/config/wildmenu.vim
parentMove spelling .vimrc config into subfile (diff)
downloaddotfiles-d27dbdad24ea0772711fa883969de97d0807827d.tar.gz
dotfiles-d27dbdad24ea0772711fa883969de97d0807827d.zip
Move wildmenu .vimrc config into subfile
Diffstat (limited to 'vim/config/wildmenu.vim')
-rw-r--r--vim/config/wildmenu.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/vim/config/wildmenu.vim b/vim/config/wildmenu.vim
new file mode 100644
index 00000000..6036c90a
--- /dev/null
+++ b/vim/config/wildmenu.vim
@@ -0,0 +1,23 @@
+" Configuration for the command completion feature; rather than merely cycling
+" through possible completions with Tab, show them above the command line
+if has('wildmenu')
+
+ " Use the wild menu, both completing and showing all possible completions
+ " with a single Tab press, just as I've configured Bash to do
+ set wildmenu
+ set wildmode=longest:list
+
+ " Don't complete certain files that I'm not likely to want to manipulate
+ " from within Vim:
+ if has('wildignore')
+ set wildignore+=*.a,*.o
+ set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png
+ set wildignore+=.DS_Store,.git,.hg,.svn
+ set wildignore+=*~,*.swp,*.tmp
+ endif
+
+ " Complete files without case sensitivity, if the option is available
+ if exists('&wildignorecase')
+ set wildignorecase
+ endif
+endif