dotfiles/vim/keybindings.vim
Thomas Preisner 07be5a4e7a separate vim config from nvim config again and simplify it
Separating vim's config from neovim's config simplifies the deployment
of lua for neovim's configuration. At the same time, clean up current
neovim config by removing all outdated options and options with equal or
even better defaults. Furthermore, the 'old' vim configuration should be
kept as-is to ensure compability with older systems if needed.
2022-10-14 23:30:30 +02:00

16 lines
443 B
VimL

" allow easier pane switching
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" allow easier pane resizing
nnoremap <M-J> :resize -2<CR>
nnoremap <M-K> :resize +2<CR>
nnoremap <M-L> :vertical resize -2<CR>
nnoremap <M-H> :vertical resize +2<CR>
" use TAB to switch to next buffers
nnoremap <TAB> :bnext<CR>
" use Shift-TAB to switch to previous buffers
nnoremap <S-TAB> :bprevious<CR>