From 0a8b39634bc8588b9be53528a286d1b1088f5480 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 25 Apr 2014 22:29:58 -0400 Subject: vimrc: map gj to j and gk to k Gives us access to skip wrapped lines since we mapped the inverse direction before and as such there was no way to do this. Consider this a power user version of up and down. I think this mapping is more intuitive. --- vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 362b08b..35aaf17 100644 --- a/vimrc +++ b/vimrc @@ -81,6 +81,7 @@ " " 2014.04.25: " * Map / to clear search highlighting +" * Map gj -> j and gk -> k so we can still skip wrapped lines if we want " @@ -282,6 +283,8 @@ vnoremap ] >gv " Allow easy moving to wrapped lines nnoremap j gj nnoremap k gk +nnoremap gj j +nnoremap gk k " Easier buffer switching nnoremap bl :ls -- cgit v1.2.3