5 years ago
Sometimes I can be a sloppy typer. For some of my slopping typing, there's just no help for it. Other times, it happens in predictable ways. I create a micro-plugin to address this (https://github.com/Kazark/vim-FatFingerFixes), but here's all the significant code from it.
" I sometimes flail for the <Enter> key and hit <'> as well cnoremap w'<CR> w<CR> cnoremap wq'<CR> wq<CR> " I often hold down <Shift> too long when typing :noh cnoremap Noh noh " On some keyboards, it's easy to hit \ when you meant ] nnoremap \s ]s