diff options
| author | Robert Günzler <r@gnzler.io> | 2020-02-13 02:02:55 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-02-13 02:02:55 +0100 |
| commit | 43ad42baab310772c115db37e2a96ada96efa6a9 (patch) | |
| tree | 0ba7ae8bcedfc861f8f54aa8127ed3cde23398c7 /.vim/plugin | |
| parent | 083a81135dfe49b85168c6755db0f14bf68feb75 (diff) | |
vim: Put hardmode bindings under capital letters
to avoid collision with w for word-jumping
Diffstat (limited to '.vim/plugin')
| -rw-r--r-- | .vim/plugin/hard.vim | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/.vim/plugin/hard.vim b/.vim/plugin/hard.vim index 07a346d..6f82e37 100644 --- a/.vim/plugin/hard.vim +++ b/.vim/plugin/hard.vim @@ -10,20 +10,20 @@ function! s:enable_hardmode(bang) try " map arrow keys to more useful actions " https://coderoncode.com/posts/vim-is-the-perfect-ide - nmap r<up> :resize +2<CR> - nmap r<down> :resize -2<CR> - nmap r<left> :vertical resize +2<CR> - nmap r<right> :vertical resize +2<CR> + nmap R<up> :resize +2<CR> + nmap R<down> :resize -2<CR> + nmap R<left> :vertical resize +2<CR> + nmap R<right> :vertical resize +2<CR> - nmap w<up> :wincmd k<CR> - nmap w<down> :wincmd j<CR> - nmap w<left> :wincmd h<CR> - nmap w<right> :wincmd l<CR> + nmap W<up> :wincmd k<CR> + nmap W<down> :wincmd j<CR> + nmap W<left> :wincmd h<CR> + nmap W<right> :wincmd l<CR> - nmap wm<up> :wincmd K<CR> - nmap wm<down> :wincmd J<CR> - nmap wm<left> :wincmd H<CR> - nmap wm<right> :wincmd L<CR> + nmap Wm<up> :wincmd K<CR> + nmap Wm<down> :wincmd J<CR> + nmap Wm<left> :wincmd H<CR> + nmap Wm<right> :wincmd L<CR> " or bail on them altogether nmap <up> :call <SID>bail()<CR> |