Create custom keybindings in vim
This week’s TechMail is Create custom keybindings in vim which goes into how to tweak vim’s keybindings to make them more familiar if you come from another editor. It’s also useful to create shortcuts for things such as moving to the end of a line. I’ve been using joe for over 10 years and while I’ve used vim 90% of the time for the last few years, it always irritated me that you had to hit “ESC” then “$” then “i” and then the right arrow to get to the true end-of-line, especially when I was used to joe’s “CTRL-E” to get me there. So making vim do the same thing was a piece of cake, and this tip shows you how to do it.
Niall
or, instead of typing ‘i’ to insert and right-arrow, just use ‘a’ to append.
Jun 02, 2009 @ 15:35:04vdanen
Yeah, someone pointed that out to me on IRC. I’m so embarrassed… =)
Jun 02, 2009 @ 17:57:30Ricky Zhou
You can also use A to append at the end of the line or I to insert at the beginning
Jun 03, 2009 @ 02:12:12Malcolm Parsons
Both comments so far still involve pressing Esc.
Jul 15, 2009 @ 07:41:58If you’re in insert mode and want to get to the end of the line and still be in insert mode, just press End.
vdanen
Not if you read the linked article, which tells you how to use a keybinding to emulate using CTRL-E =)
Jul 15, 2009 @ 09:28:10