summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2017-06-14 10:03:58 +0200
committerjohannst <stoelp@eit.uni-kl.de>2017-06-14 10:03:58 +0200
commitda812c03a668e9b22a07a277510e73c0585d3faf (patch)
tree1ffee40cde898db5ef8ea74f73d2b8b29899a83e /vimrc
parent1fb322dd4753ba0564ce664ee2ee860d351e4cef (diff)
downloaddotfiles-da812c03a668e9b22a07a277510e73c0585d3faf.tar.gz
dotfiles-da812c03a668e9b22a07a277510e73c0585d3faf.zip
vimrc: Move wrapped lines line by line in aync buffer
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index cd00952..e408707 100644
--- a/vimrc
+++ b/vimrc
@@ -512,6 +512,9 @@ if v:version>=800
execute 'setlocal noswapfile'
execute 'setlocal wrap'
nnoremap <buffer> <CR> :call <SID>OpenFirstFileNameMatch()<CR>
+ " go line by line in wrapped lines
+ nnoremap <buffer> j gj
+ nnoremap <buffer> k gk
return l:buffer_num
endfunction