Added easier mappings for splits

This commit is contained in:
2021-08-29 12:43:17 +02:00
parent 79c79c9804
commit 373479bb60
2 changed files with 14 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ nnoremap <S-space> zA
let &packpath = &runtimepath let &packpath = &runtimepath
source ~/.config/nvim/plug.vim source ~/.config/nvim/plug.vim
source ~/.config/nvim/gui.vim source ~/.config/nvim/gui.vim
source ~/.config/nvim/splits.vim
source ~/.config/nvim/deoplete.vim source ~/.config/nvim/deoplete.vim
source ~/.config/nvim/bufferline.vim source ~/.config/nvim/bufferline.vim
source ~/.config/nvim/latex.vim source ~/.config/nvim/latex.vim

13
splits.vim Normal file
View File

@@ -0,0 +1,13 @@
" Adds handy configurations to navigate and handle splits.
" Created On: Sun 29 Aug 2021 12:39:36 PM CEST
" Last Modified: Sun 29 Aug 2021 12:39:36 PM CEST
" For a more natural feel, open splits to the right and bottom
set splitbelow
set splitright
" Remap navigation to more convienient places
nnoremap <C-S-Up> <C-W><C-K>
nnoremap <C-S-Down> <C-W><C-J>
nnoremap <C-S-Left> <C-W><C-H>
nnoremap <C-S-Right> <C-W><C-L>