diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 17:38:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 17:38:38 +1300 |
commit | 2eb421d272c65106a9922f0be764bb2ac12f3fe3 (patch) | |
tree | b6dd936edf1b35eff6394ace0f39e4a4f151e4d9 | |
parent | Wrap detect_background.vim func call in 'silent!' (diff) | |
download | dotfiles-2eb421d272c65106a9922f0be764bb2ac12f3fe3.tar.gz dotfiles-2eb421d272c65106a9922f0be764bb2ac12f3fe3.zip |
Check 'eval' feature for loading command_typos.vim
I strongly suspect the presence of 'user_commands' implies it, but I'm
not sure.
-rw-r--r-- | vim/plugin/command_typos.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/command_typos.vim b/vim/plugin/command_typos.vim index 5ee43e09..592392ab 100644 --- a/vim/plugin/command_typos.vim +++ b/vim/plugin/command_typos.vim @@ -1,7 +1,7 @@ " Tolerate typos like :Wq, :Q, or :Qa and do what I mean, including any " arguments or modifiers; I fat-finger these commands a lot because I type " them so rapidly, and they don't correspond to any other commands I use -if has('user_commands') +if has('eval') && has('user_commands') 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> |