diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-02-14 18:36:18 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-02-14 18:36:18 +1300 |
commit | e13319caeefc8d85fbbc073837fce92e941e0971 (patch) | |
tree | a9ebcfa65b273e657beeb3f88a927d5dbb14cd7a /vim/vimrc | |
parent | Added feature check wrapper to user commands. (diff) | |
download | dotfiles-e13319caeefc8d85fbbc073837fce92e941e0971.tar.gz dotfiles-e13319caeefc8d85fbbc073837fce92e941e0971.zip |
Added a few more conditional checks.
Just in the interests of compatibility. There's technically at least one
other place that there should be such a check, in the +user_commands
section, where I define typo correction stuff. I should be making sure
that +cmdline_compl is available, but it just makes things a little bit
too convoluted.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -106,15 +106,15 @@ set visualbell t_vb= " Typos if has("user_commands") - command! -bang -nargs=? -complete=file E e<bang> <args> - command! -bang -nargs=? -complete=file W w<bang> <args> - command! -bang -nargs=? -complete=file Wq wq<bang> <args> - command! -bang -nargs=? -complete=file WQ wq<bang> <args> - command! -bang Wa wa<bang> - command! -bang WA wa<bang> + command! -bang -complete=file -nargs=? E e<bang> <args> + command! -bang -complete=file -nargs=? W w<bang> <args> + command! -bang -complete=file -nargs=? WQ wq<bang> <args> + command! -bang -complete=file -nargs=? Wq wq<bang> <args> command! -bang Q q<bang> - command! -bang QA qa<bang> - command! -bang Qa qa<bang> + command! -bang WA wa<bang> + command! -bang WQ wq<bang> + command! -bang Wa wa<bang> + command! -bang Wq wq<bang> endif " Unmaps @@ -123,12 +123,14 @@ nnoremap K <nop> " Wildmenu if has("wildmenu") - set wildignore+=*.a,*.o - set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png - set wildignore+=.DS_Store,.git,.hg,.svn - set wildignore+=*~,*.swp,*.tmp set wildmenu set wildmode=longest,list + 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 endif " Windows |