]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: gk and gj movement
[dotfiles.git] / vim / vimrc
index ec0ece1b93de9e1a570e98c439e8d51f0bf47612..576e984fe2b6035a6ebf2ada50e514ae2aeaad2a 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -311,6 +311,10 @@ inoremap <c-e> <esc>A
 cnoremap <c-a> <home>
 cnoremap <c-e> <end>
 
+" proper movement when lines are wrapped
+noremap j gj
+noremap k gk
+
 " disable arrows
 noremap  <Up>    <NOP>
 noremap  <Down>  <NOP>