linked

Aliases for common Vim typos ⇝

  Wynn Netherland • 2012-01-24

I've been enjoying Tom Ryder's blog which is chock full of Vim, bash, and git smarts. Today's tip alias those commonly fat-fingered Vim commands:

command! -bang E e<bang>
command! -bang Q q<bang>
command! -bang W w<bang>
command! -bang QA qa<bang>
command! -bang Qa qa<bang>
command! -bang Wa wa<bang>
command! -bang WA wa<bang>
command! -bang Wq wq<bang>
command! -bang WQ wq<bang>

Add these to your .vimrc (here's mine), and your Vim is a bit more forgiving.

If you're new to Vim, be sure and read Tom's rundown of buffers, windows, and tabs.

Linked from: http://blog.sanctum.geek.nz/vim-command-typos/

Wynn Netherland
Wynn Netherland

Engineering Director at Adobe Creative Cloud, team builder, DFW GraphQL meetup organizer, platform nerd, author, and Jesus follower.