diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-01-18 13:38:08 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-10-30 09:52:23 +0100 |
commit | 2243a7fd58faafb5cb4d2ab3947b3adab8eeb475 (patch) | |
tree | f182e3df8ea5254ea8a6ccdbf3a225b3bff63f22 /.config/nvim/config/keys.vim | |
parent | 41cc0c57cde2517f774c05147e2d5bcc9813f724 (diff) |
[nvim] reorganize config and plugins
Diffstat (limited to '.config/nvim/config/keys.vim')
-rw-r--r-- | .config/nvim/config/keys.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nvim/config/keys.vim b/.config/nvim/config/keys.vim new file mode 100644 index 0000000..bfb45e9 --- /dev/null +++ b/.config/nvim/config/keys.vim @@ -0,0 +1,20 @@ +" leader +nnoremap <SPACE> <Nop> +let mapleader=" " + +" buffer pane navigation +nnoremap <A-Left> <C-w><Left> +nnoremap <A-Up> <C-w><Up> +nnoremap <A-Right> <C-w><Right> +nnoremap <A-Down> <C-w><Down> + +nnoremap <C-Left> <cmd>tabprevious<CR> +nnoremap <C-Right> <cmd>tabnext<CR> + +" esc / quit +map <ESC><C-c> <CR> +nnoremap <C-q> <cmd>q<CR> + +" save +nnoremap <silent> <C-s> <cmd>w<CR> +inoremap <silent> <C-s> <ESC><cmd>w<CR> |