From e24cb9130dc299cf9dfdafdca29ea98e0245141b Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Sun, 14 Oct 2018 11:20:21 +0300 Subject: [PATCH] vimrc: hjkl window movement or split if no room left --- vim/vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index b05f585..0b64f35 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -19,6 +19,11 @@ nnoremap :make! nnoremap :let _s=@/ :%s/\s\+$//e :let @/=_s :nohl :unlet _s set makeprg=gmake +map :call functions#WinMove('h') +map :call functions#WinMove('j') +map :call functions#WinMove('k') +map :call functions#WinMove('l') + if has('gui_running') set list listchars=tab:>-,nbsp:.,trail:.,extends:>,precedes:<,eol:\| let &showbreak = '^'