aboutsummaryrefslogtreecommitdiff
path: root/vim/config/command.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 00:28:36 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 00:32:59 +1300
commitb1dee73b770c7bda4bcc24b54c5ab2dd9953eb17 (patch)
tree1e27cb88b4c420ee6a31c4e06b27909b1e01e3cf /vim/config/command.vim
parentMerge branch 'feature/rm-stray-vim' into develop (diff)
downloaddotfiles-b1dee73b770c7bda4bcc24b54c5ab2dd9953eb17.tar.gz
dotfiles-b1dee73b770c7bda4bcc24b54c5ab2dd9953eb17.zip
Separate command typos config to plugin
Tentatively named command_typos.vim. I've just moved this as-is for now, but it will need review, especially the hardcoded mappings.
Diffstat (limited to 'vim/config/command.vim')
-rw-r--r--vim/config/command.vim15
1 files changed, 0 insertions, 15 deletions
diff --git a/vim/config/command.vim b/vim/config/command.vim
index 2a60bab3..f339635f 100644
--- a/vim/config/command.vim
+++ b/vim/config/command.vim
@@ -25,18 +25,3 @@ set shellpipe=>
if exists('+shellslash')
set shellslash
endif
-
-" 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')
- 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 WA wa<bang>
-endif