alloy / macvim

MacVim with file browser
https://github.com/alloy/macvim/wiki
599 stars 37 forks source link

add nerdtree keybindings #51

Closed adamvaughan closed 12 years ago

adamvaughan commented 12 years ago

I switched to the file browser from nerdtree and I am loving it so far. The one thing I missed was the ability to open files in tabs, vertical splits, and horizontal splits via the keyboard. So I added the following shortcuts:

t - open file in new tab
i - open file in horizontal split
s - open file in vertical split

I also disabled the native keyboard navigation. Since the j/k/h/l keys (and now t/i/s) are handled I didn't like how pressing any another key jumped around the list, but the bound keys behaved differently.

I would appreciate your thoughts on this, and thanks for the great work.

alloy commented 12 years ago

Looks great! I’ll give it a try tomorrow.

alloy commented 12 years ago

Oh, I hadn't seen you added that, because that's what I was missing. Looks good, thanks!