Skip to content
Snippets Groups Projects
Commit f408aa30 authored by Jens Nolte's avatar Jens Nolte
Browse files

Add shortcuts for switching windows in neovim.

The shortcuts are recommended in neovims `:help terminal`.
parent 64d09d96
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,20 @@ pkgs.neovim.override {
" Save with Ctrl-S (if file has changed)
noremap <c-s> <Cmd>update<CR>
" Use `ALT+{h,j,k,l}` to navigate windows from any mode
:tnoremap <A-h> <C-\><C-N><C-w>h
:tnoremap <A-j> <C-\><C-N><C-w>j
:tnoremap <A-k> <C-\><C-N><C-w>k
:tnoremap <A-l> <C-\><C-N><C-w>l
:inoremap <A-h> <C-\><C-N><C-w>h
:inoremap <A-j> <C-\><C-N><C-w>j
:inoremap <A-k> <C-\><C-N><C-w>k
:inoremap <A-l> <C-\><C-N><C-w>l
:nnoremap <A-h> <C-w>h
:nnoremap <A-j> <C-w>j
:nnoremap <A-k> <C-w>k
:nnoremap <A-l> <C-w>l
" Always show the sign column (to prevent jumps when loading git- or the language client)
" Disabled because it also adds a sign column to NERDTree
"set signcolumn=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment