Skip to content

Commit

Permalink
Revert "Replace ": ... <cr>" mappings with "<Cmd> ... <cr>""
Browse files Browse the repository at this point in the history
This reverts commit a40cc7a.

The `<Cmd>` mapping is a recent addition so we'll want to add a version
check, but for now I'm just reverting to get back to good.
  • Loading branch information
christoomey committed Dec 8, 2022
1 parent a40cc7a commit 41ea9d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugin/tmux_navigator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ function! s:VimNavigate(direction)
endfunction

if !get(g:, 'tmux_navigator_no_mappings', 0)
noremap <silent> <c-h> <Cmd>TmuxNavigateLeft<cr>
noremap <silent> <c-j> <Cmd>TmuxNavigateDown<cr>
noremap <silent> <c-k> <Cmd>TmuxNavigateUp<cr>
noremap <silent> <c-l> <Cmd>TmuxNavigateRight<cr>
noremap <silent> <c-\> <Cmd>TmuxNavigatePrevious<cr>
noremap <silent> <c-h> :<C-U>TmuxNavigateLeft<cr>
noremap <silent> <c-j> :<C-U>TmuxNavigateDown<cr>
noremap <silent> <c-k> :<C-U>TmuxNavigateUp<cr>
noremap <silent> <c-l> :<C-U>TmuxNavigateRight<cr>
noremap <silent> <c-\> :<C-U>TmuxNavigatePrevious<cr>
endif

if empty($TMUX)
Expand Down

0 comments on commit 41ea9d2

Please sign in to comment.