mutewinter/dot_vim

tmux navigator bindings in terminal

markquezada opened this issue · 1 comments

Hi, thanks for this awesome treasure trove of vim goodies.

I'm trying to track down an issue with vim navigation from within tmux and I was wondering if you'd be willing to share the tmux config file you're using in conjunction with this repo.

Namely, I'm wondering how you got the alt/meta key to work from the Terminal with these tmux navigator bindings:

nnoremap <silent> <M-h> :TmuxNavigateLeft<cr>
nnoremap <silent> <M-j> :TmuxNavigateDown<cr>
nnoremap <silent> <M-k> :TmuxNavigateUp<cr>
nnoremap <silent> <M-l> :TmuxNavigateRight<cr>

Looks like this was caused by not having the "Use option as meta key" option checked in Terminal.app. Sorry about that!