From 43ad42baab310772c115db37e2a96ada96efa6a9 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 13 Feb 2020 02:02:55 +0100 Subject: vim: Put hardmode bindings under capital letters to avoid collision with w for word-jumping --- .vim/plugin/hard.vim | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to '.vim/plugin/hard.vim') 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 :resize +2 - nmap r :resize -2 - nmap r :vertical resize +2 - nmap r :vertical resize +2 + nmap R :resize +2 + nmap R :resize -2 + nmap R :vertical resize +2 + nmap R :vertical resize +2 - nmap w :wincmd k - nmap w :wincmd j - nmap w :wincmd h - nmap w :wincmd l + nmap W :wincmd k + nmap W :wincmd j + nmap W :wincmd h + nmap W :wincmd l - nmap wm :wincmd K - nmap wm :wincmd J - nmap wm :wincmd H - nmap wm :wincmd L + nmap Wm :wincmd K + nmap Wm :wincmd J + nmap Wm :wincmd H + nmap Wm :wincmd L " or bail on them altogether nmap :call bail() -- cgit 1.4.1