Fixed keybinding conflict introduced as part of #526.
This commit is contained in:
10
vim/settings/vim-tmux-navigator.vim
Normal file
10
vim/settings/vim-tmux-navigator.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
" Don't allow any default key-mappings.
|
||||
let g:tmux_navigator_no_mappings = 1
|
||||
|
||||
" Re-enable tmux_navigator.vim default bindings, minus <c-\>.
|
||||
" <c-\> conflicts with NERDTree "current file".
|
||||
|
||||
nnoremap <silent> <c-h> :TmuxNavigateLeft<cr>
|
||||
nnoremap <silent> <c-j> :TmuxNavigateDown<cr>
|
||||
nnoremap <silent> <c-k> :TmuxNavigateUp<cr>
|
||||
nnoremap <silent> <c-l> :TmuxNavigateRight<cr>
|
||||
@@ -90,11 +90,12 @@ nnoremap <silent> ,x :bn<CR>
|
||||
" ==============================
|
||||
" Window/Tab/Split Manipulation
|
||||
" ==============================
|
||||
" Move between split windows by using the four directions H, L, I, N
|
||||
nnoremap <silent> <C-h> <C-w>h
|
||||
nnoremap <silent> <C-l> <C-w>l
|
||||
nnoremap <silent> <C-k> <C-w>k
|
||||
nnoremap <silent> <C-j> <C-w>j
|
||||
" Move between split windows by using the four directions H, L, K, J
|
||||
" NOTE: This has moved to vim/settings/vim-tmux-navigator.vim.
|
||||
" nnoremap <silent> <C-h> <C-w>h
|
||||
" nnoremap <silent> <C-l> <C-w>l
|
||||
" nnoremap <silent> <C-k> <C-w>k
|
||||
" nnoremap <silent> <C-j> <C-w>j
|
||||
|
||||
" Make gf (go to file) create the file, if not existent
|
||||
nnoremap gf :e<cfile><CR>
|
||||
|
||||
Reference in New Issue
Block a user