" 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

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

" 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>
tnoremap <silent> <M-h> <C-w>:TmuxNavigateLeft<CR>
tnoremap <silent> <M-j> <C-w>:TmuxNavigateDown<CR>
tnoremap <silent> <M-k> <C-w>:TmuxNavigateUp<CR>
tnoremap <silent> <M-l> <C-w>:TmuxNavigateRight<CR>

Add tnoremap for M-hjkl mappings
Add tnoremap for M-hjkl mappings

Seems like the new terminal feature is much easier to use if I can
navigate easily across the windows. Allowing for my M-hjkl maps in
terminal windows lets me do pretty much that.

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