aboutsummaryrefslogtreecommitdiff
path: root/nvim/key-bindings.vim
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2023-03-29 17:43:34 +0200
committerThomas Schmucker <ts@its1.de>2023-03-29 17:43:34 +0200
commit4a8b919c83ba74d8223fccd71c4c76d8418e7309 (patch)
treeba36671e7e9b20737d697e0d018cfd8fbf82092a /nvim/key-bindings.vim
parent26af5de26de538338ba89f148618f036c41f97a8 (diff)
downloaddotfiles-4a8b919c83ba74d8223fccd71c4c76d8418e7309.tar.gz
dotfiles-4a8b919c83ba74d8223fccd71c4c76d8418e7309.tar.bz2
dotfiles-4a8b919c83ba74d8223fccd71c4c76d8418e7309.zip
Konfiguration für VIM Tastaturbelegung umbenannt
Diffstat (limited to 'nvim/key-bindings.vim')
-rw-r--r--nvim/key-bindings.vim28
1 files changed, 0 insertions, 28 deletions
diff --git a/nvim/key-bindings.vim b/nvim/key-bindings.vim
deleted file mode 100644
index 5025be1..0000000
--- a/nvim/key-bindings.vim
+++ /dev/null
@@ -1,28 +0,0 @@
1" nvim/key-bindings.vim
2
3let mapleader=','
4
5nnoremap <silent> <C-Left> :tabprevious<CR>
6nnoremap <silent> <C-Right> :tabnext<CR>
7nnoremap <silent> <C-PageUp> :tabprevious<CR>
8nnoremap <silent> <C-PageDown> :tabnext<CR>
9
10" besseres Verhalten von <PageUp> und <PageDown>
11" https://vimrc-dissection.blogspot.com/2009/02/fixing-pageup-and-pagedown.html
12map <silent> <PageUp> 1000<C-U>
13map <silent> <PageDown> 1000<C-D>
14imap <silent> <PageUp> <C-O>1000<C-U>
15imap <silent> <PageDown> <C-O>1000<C-D>
16
17" Verschiebe Zeilen mit ALT+j oder ALT+k
18nnoremap <A-j> :m .+1<CR>==
19nnoremap <A-k> :m .-2<CR>==
20inoremap <A-j> <Esc>:m .+1<CR>==gi
21inoremap <A-k> <Esc>:m .-2<CR>==gi
22vnoremap <A-j> :m '>+1<CR>gv=gv
23vnoremap <A-k> :m '<-2<CR>gv=gv
24
25" besseres Verhalten in umbrochenen Texten
26map j gj
27map k gk
28