summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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