summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 09:58:02 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 09:58:02 +0200
commit9c6e2866428e89f26b79afef410397346b7a2b80 (patch)
tree29a9a0355e796edbc81adafac8b0ed673a864699
parentUse <cr> entity instead of keystroke <Enter> in vimrc (diff)
downloadvim_sync-9c6e2866428e89f26b79afef410397346b7a2b80.tar.xz
Navigate up and down in long lines (gj and gk instead of j and k)
-rw-r--r--.vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 439cbb5..d22dfa2 100644
--- a/.vimrc
+++ b/.vimrc
@@ -127,6 +127,10 @@ map <S-Space> :bp<cr>
map <F12> :set textwidth=80<cr>
map <S-F12> :set textwidth=0<cr>
+"navigate up and down in long lines splitted by :set wrap
+:map k gk
+:map j gj
+
"esc boost
inoremap kj <ESC>
inoremap KJ <ESC>