" map meta keys for tmux-navigator
silent! execute 'set <F31>=\<Esc>h'
silent! execute 'set <F32>=\<Esc>j'
silent! execute 'set <F33>=\<Esc>k'
silent! execute 'set <F34>=\<Esc>l'
nnoremap <silent> <M-h> :TmuxNavigateLeft<CR>
nnoremap <silent> <M-j> :TmuxNavigateDown<CR>
nnoremap <silent> <M-k> :TmuxNavigateUp<CR>
nnoremap <silent> <M-l> :TmuxNavigateRight<CR>
nmap <F31> <M-h>
nmap <F32> <M-j>
nmap <F33> <M-k>
nmap <F34> <M-l>

" map Meta keys for tmux-navigator
nnoremap <silent> <M-h> :TmuxNavigateLeft<CR>
nnoremap <silent> <M-j> :TmuxNavigateDown<CR>
nnoremap <silent> <M-k> :TmuxNavigateUp<CR>
nnoremap <silent> <M-l> :TmuxNavigateRight<CR>

" handle Meta keys in terminal
if !has('gui_running')
  silent! execute 'set <F31>=h'
  silent! execute 'set <F32>=j'
  silent! execute 'set <F33>=k'
  silent! execute 'set <F34>=l'
  nmap <F31> <M-h>
  nmap <F32> <M-j>
  nmap <F33> <M-k>
  nmap <F34> <M-l>
endif

Fix Meta keybinds in terminal
Fix Meta keybinds in terminal

Apparently my previous incarnation of after/plugin/tmux_navigator.vim
actually fails to trigger for terminal Meta...

I now use the literal  byte instead of \<Esc>, plus I wrapped it in a
nice conditional that checks for GUI (since Meta in GUI works already).

igemnace/vim-config,igemnace/vim-config,igemnace/vim-config,igemnace/my-vim-config