vim/config/maps.vim

21 lines
512 B
VimL

" new tab
nmap <silent> <C-t> :tabnew<CR>
" Switch tab
nmap <silent> <C-Left> :tabprevious<CR>
nmap <silent> <C-Right> :tabnext<CR>
" new line shortcut (ctrl+o)
nnoremap <silent> <CR> <Esc>i<CR><Esc>
" switch windows
nmap <silent> <C-k> :wincmd k<CR>
nmap <silent> <C-j> :wincmd j<CR>
nmap <silent> <C-h> :wincmd h<CR>
nmap <silent> <C-l> :wincmd l<CR>
" bind window : scroll + cursor
nmap <silent> <F11> :set scrollbind<CR>:set cursorbind<CR>
nmap <silent> <F12> :set noscrollbind<CR>:set nocursorbind<CR>