4 ms·
I have this in my .vimrc imap <C-a> <Esc>^I imap <C-e> <Esc>A imap <C-k> <Esc>d$A imap <C-y> <Esc>pA Yes I am a heathen.
by __alexs 14y ago
I have this in my .vimrc
imap <C-a> <Esc>^I
imap <C-e> <Esc>A
imap <C-k> <Esc>d$A
imap <C-y> <Esc>pA
Yes I am a heathen.
- bcrescimanno 14y agoYes, yes you are. :P In all honesty, a lot of Vim users set up some of these same shortcuts for editing their commands since chording is really the only way to get to some of that functionality--and as long as you're going to use chords, why not use Emacs-style?
- osa1 14y agoquick tip: d$ is same as D
- graywh 14y ago^I is the same as I (because I is short for ^i). But really, you should just map to <Home> and <End>. Also, d$A is the same as C.