Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Yes, 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?


^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.


quick tip: d$ is same as D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: