aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-21 22:14:40 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-21 22:14:40 +0200
commit3442c598457176b1518ebd193748e2ffd5787faf (patch)
tree5c74478dd2fe0d0bf83c2a6d9fabef9480f9b937
parenta5a5210d16c865619bf6c9295dd151af435f8a1d (diff)
downloaddotfiles-3442c598457176b1518ebd193748e2ffd5787faf.tar.xz
vim: Add keybindings for more easily navigating wrapped lines
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index ed28bff..e32c81f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -83,6 +83,11 @@ map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
+vmap <C-j> gj
+vmap <C-k> gk
+nmap <C-j> gj
+nmap <C-k> gk
+
" Show tabs and end-of-line whitespace
set listchars=tab:»·,trail:·
set list