Skip to content

Commit

Permalink
Add support for Neovim: tnoremap mappings (christoomey#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed May 9, 2016
1 parent c33a8a9 commit e13914d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugin/tmux_navigator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,13 @@ if s:UseTmuxNavigatorMappings()
nnoremap <silent> <c-k> :TmuxNavigateUp<cr>
nnoremap <silent> <c-l> :TmuxNavigateRight<cr>
nnoremap <silent> <c-\> :TmuxNavigatePrevious<cr>
if exists(':tnoremap') " Neovim
tnoremap <silent> <c-h> <c-\><c-n>:TmuxNavigateLeft<cr>
tnoremap <silent> <c-j> <c-\><c-n>:TmuxNavigateDown<cr>
tnoremap <silent> <c-k> <c-\><c-n>:TmuxNavigateUp<cr>
tnoremap <silent> <c-l> <c-\><c-n>:TmuxNavigateRight<cr>
" Cannot use <c-\> here.
" tnoremap <silent> <c-\> <c-\><c-n>:TmuxNavigatePrevious<cr>
endif
endif

0 comments on commit e13914d

Please sign in to comment.