home and end of line
I do a lot of work in vim. How can I get End of Line and Begining of Line shortcuts working?
MacBook Pro, Mac OS X (10.7.3)
I do a lot of work in vim. How can I get End of Line and Begining of Line shortcuts working?
MacBook Pro, Mac OS X (10.7.3)
Contact the folks at Vim:
It's more of a "How does apple implement this" question. Even when I'm ssh'd in a CentOS server, I can't get to the begining or end of line with any keyboard shortcut I can find. From my Linux or windows machines... no problem... their keyboards have Home and End keys that go to the begining or end of a line... Even when I use my Logitech Keyboard for Mac, the Home and End keys aren't mapped, and the trick of using cmd+<right arrow> doesn't work.
Have you tried command + <up arrow> and command + <down arrow>?
Yeah... Doesn't work.
Home = Fn + Left Arrow
End (of document) = Fn + Right arrow
Page up = Fn + Up Arrow
Page down = Fn + Down Arrow
Go to beginning of current line = ⌘ + Left Arrow
Go to end of current line = ⌘ + Right Arrow
Go to beginng of first line of document = ⌘ + Up Arrow
Go to end of last line of document = ⌘ + Down Arrow
Thanks guys, these work in everything but VIM
I'm unfamiliar with VIM, is this something you are running in the shell in Terminal, or an independent app? In the Terminal's preferences, you should be able to configure custom keyboard shortcuts to match those used by the rest of the system. If it's a standalone app, you'll need to talk to the developer.
mustangsal wrote:
Thanks guys, these work in everything but VIM
Silly question, but… have you tried vim's default keybindings? For instance,
$ end of line
0 beginning of line
^ first non-blank character
and so on
home and end of line