From: Samir Benmendil Date: Thu, 6 Nov 2014 20:57:12 +0000 (+0000) Subject: vim: only move visual lines when no count is given X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b01e4c09f16e634eb3f6ebbddcb72a38fac37bf8?ds=inline vim: only move visual lines when no count is given --- diff --git a/vim/vimrc b/vim/vimrc index 31bc4b0..e8a5192 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -312,8 +312,8 @@ cnoremap cnoremap " proper movement when lines are wrapped -noremap j gj -noremap k gk +noremap j (v:count == 0 ? 'gj' : 'j') +noremap k (v:count == 0 ? 'gk' : 'k') " disable arrows noremap