From b01e4c09f16e634eb3f6ebbddcb72a38fac37bf8 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 6 Nov 2014 20:57:12 +0000 Subject: [PATCH] vim: only move visual lines when no count is given --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1