" " uncap_ex.vim: 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 " " Author: Tom Ryder " License: Same as Vim itself " if exists('g:loaded_uncap_ex') || &compatible finish endif if !has('user_commands') || v:version < 600 finish endif let g:loaded_uncap_ex = 1 " Define commands command -bang -bar -complete=file -nargs=? \ E \ edit command -bang -bar -complete=file -nargs=? \ W \ write command -bang -bar -complete=file -nargs=? \ WQ \ wq command -bang -bar -complete=file -nargs=? \ Wq \ wq command -bang -bar \ Q \ quit command -bang -bar \ Qa \ qall command -bang -bar \ QA \ qall command -bang -bar \ Wa \ wall command -bang -bar \ WA \ wa