" matches after another (full). Thanks to pbrisbin
" (http://pbrisbin.com:8080/dotfiles/vimrc).
set wildmode=list:longest,full
+" Ignore case when completing files/directories.
+if exists('+wildignorecase')
+ set wildignorecase
+endif
+
+" Show completion menu even if only one entry matches.
+if exists('+completeopt')
+ set completeopt+=menuone
+endif
" Increase history of executed commands (:).
set history=1000
set statusline+=%02n " buffer number
set statusline+=%{StatuslineBufferCount()} " highest buffer number
set statusline+=:
- if has('modify_fname')
+ if has('modify_fname') && v:version >= 700 " some functions need 7.0
set statusline+=%{StatuslineRelativeFilename()} " path to current file
set statusline+=\ " space after path
else
" Settings for securemodelines.
" Only allow items I need (also includes spl which is not enabled by
" default).
- let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
- \ 'sw', 'sts', 'noet']
+ if v:version >= 700 " need lists
+ let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
+ \ 'sw', 'sts', 'noet']
+ endif
" Settings for the NERD commenter.
" Don't create any mappings I don't want to use.