New keymaps for buffers/panes
I'm experimenting with using the arrow keys: - <ctrl>-arrow left/right to switch buffers - <alt>-arrow left/right/up/down to navigate panes I left the old maps commented out in case this breaks something
This commit is contained in:
31
.vimrc
31
.vimrc
@@ -198,9 +198,11 @@ nnoremap <leader>C :set cursorline! cursorcolumn!<CR>
|
||||
" ---------------------------------------------------------------------------------------------------------------------
|
||||
" ==> Keymaps: Buffers & Panes
|
||||
|
||||
" <c-h/l> to navigate BUFFERS
|
||||
nnoremap <c-h> :bp <enter>
|
||||
nnoremap <c-l> :bn <enter>
|
||||
" <ctrl>-arrow left/right to navigate BUFFERS
|
||||
"nnoremap <c-h> :bp <enter>
|
||||
"nnoremap <c-l> :bn <enter>
|
||||
map <esc>[1;5D :bp <enter>
|
||||
map <esc>[1;5C :bp <enter>
|
||||
|
||||
" <leader>b to open FZF buffers
|
||||
map <leader>b :Buffers<CR>
|
||||
@@ -217,14 +219,23 @@ nnoremap <c-s> :w<CR>
|
||||
" <c-x> to bring up the copy buffer
|
||||
noremap <c-x> "+
|
||||
|
||||
" <leader>h/j/k/l to navigate PANES
|
||||
nnoremap <leader>h <c-w><c-h>
|
||||
nnoremap <leader>l <c-w><c-l>
|
||||
nnoremap <leader>j <c-w><c-j>
|
||||
nnoremap <leader>k <c-w><c-k>
|
||||
" <leader>h/j/k/l to navigate panes
|
||||
"nnoremap <leader>h <c-w><c-h>
|
||||
"nnoremap <leader>l <c-w><c-l>
|
||||
"nnoremap <leader>j <c-w><c-j>
|
||||
"nnoremap <leader>k <c-w><c-k>
|
||||
|
||||
" <leader>x to close pane
|
||||
nnoremap <leader>x <c-w>q
|
||||
" <alt>-arrow keys to navigate panes
|
||||
" UP
|
||||
map <esc>[1;3A <c-w><c-k>
|
||||
" DOWN
|
||||
map <esc>[1;3B <c-w><c-j>
|
||||
" LEFT
|
||||
map <esc>[1;3D <c-w><c-h>
|
||||
" RIGHT
|
||||
map <esc>[1;3C <c-w><c-l>
|
||||
" CLOSE
|
||||
map <esc>x <c-w>q
|
||||
|
||||
" ---------------------------------------------------------------------------------------------------------------------
|
||||
" ==> Keymaps
|
||||
|
||||
Reference in New Issue
Block a user