]> git.rmz.io Git - dotfiles.git/commitdiff
vim: gk and gj movement
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 5 Nov 2014 11:14:02 +0000 (11:14 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 5 Nov 2014 11:14:02 +0000 (11:14 +0000)
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>
 
 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>
 " disable arrows
 noremap  <Up>    <NOP>
 noremap  <Down>  <NOP>