]> code.delx.au - dotfiles/commitdiff
Home & end keys use display lines
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 2 Apr 2008 05:17:23 +0000 (16:17 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 2 Apr 2008 05:17:23 +0000 (16:17 +1100)
.vim/macros.vim

index 1bd4d4c667d7610a641fa6c8b5b8b5c380b16e1f..ba2b2036fce6792eecce2ebf97df3a56b0d9e3bc 100644 (file)
@@ -43,10 +43,14 @@ nmap <Tab> <C-w><C-w>
 nmap Q gwip
 
 " Go up and down by display lines, not linebreaks
+imap <End> <C-o>g$
+imap <Home> <C-o>g0
 imap <Down> <C-o>gj
 imap <Up> <C-o>gk
 nmap <Down> gj
 nmap <Up> gk
+nmap <End> g$
+nmap <Home> g0
 nmap 0 g0
 nmap ^ g^
 nmap $ g$