Don't use tmux navigation mappings on Windows
Since `tmux` integration is not enabled on Windows, don't use the `vim-tmux-natigation` command mappings for movingin between splits.
This commit is contained in:
parent
dbff00b6fc
commit
2ab332db65
@ -64,6 +64,7 @@ nnoremap k gk
|
||||
nnoremap <leader>w :w!<CR>
|
||||
|
||||
" Switch panes in a tmux aware way
|
||||
if !has('win32')
|
||||
nnoremap <silent> <C-h> :TmuxNavigateLeft<CR>
|
||||
nnoremap <silent> <C-j> :TmuxNavigateDown<CR>
|
||||
nnoremap <silent> <C-k> :TmuxNavigateUp<CR>
|
||||
@ -83,6 +84,12 @@ else
|
||||
tnoremap <silent> <C-w>k <C-w>N:TmuxNavigateUp<CR>
|
||||
tnoremap <silent> <C-w>l <C-w>N:TmuxNavigateRight<CR>
|
||||
endif
|
||||
else
|
||||
nnoremap <silent> <C-h> <C-w>h
|
||||
nnoremap <silent> <C-j> <C-w>j
|
||||
nnoremap <silent> <C-k> <C-w>k
|
||||
nnoremap <silent> <C-l> <C-w>l
|
||||
endif
|
||||
|
||||
" Quick tabs
|
||||
nnoremap <leader>tn :tabnew<Space>
|
||||
|
Loading…
x
Reference in New Issue
Block a user