config: nvim: split config into multiple files

This commit is contained in:
Thomas Preisner 2021-09-22 16:01:49 +02:00
parent 846c204094
commit d13d72ec80
3 changed files with 171 additions and 171 deletions

View file

@ -0,0 +1,20 @@
" 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>
" use TAB for completion
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>"