Jeffrey Harrington
Jeffrey Harrington

Reputation: 1797

VIM-style keyboard navigation in TextMate

I'm using TextMate in OSX and would love it if I could enable VIM-style keyboard navigation using 'h','j','k','l' with a modifier key (like Control, Option, or Command). I know TextMate (somewhat) supports the Emacs-style of navigation, so this must be possible.

I tried using custom key-bindings in OSX as described on the TextMate site both here and here to no avail.

Has anybody accomplished what I'm trying to do?

Upvotes: 2

Views: 3453

Answers (2)

romainl
romainl

Reputation: 196596

There is a plugin that tries to provide vi keybindings to TextMate, it has INSERT and NORMAL modes and only a few of vi's NORMAL mode commands.

It's fun to play with for a couple of minutes but it doesn't take more time to hit its many limitations.

If you like Vim's keybindings, why don't you use Vim? I've switched a few months ago, it's simply amazing.

Upvotes: 3

Austin Taylor
Austin Taylor

Reputation: 5477

Bundles -> Macros -> Start Recording.

Press left arrow.

Bundles -> Macros -> Stop Recording.

Bundles -> Macros -> Save Last Recording...

Give it a name like "left" and set the Key Equivalent to Cmd-Shift-H or whatever.

Repeat for J, K, and L.

Upvotes: 4

Related Questions