Skip to content
Browse files

Create wrapped-line-motions plugin

  • Loading branch information...
1 parent 7a28f40 commit 7bdafaefa2c56a18cb74c81e591a4b64f30e312c @nelstrom committed Jan 21, 2012
Showing with 12 additions and 13 deletions.
  1. +12 −0 vim/plugin/wrapped-line-motions.vim
  2. +0 −13 vimrc
View
12 vim/plugin/wrapped-line-motions.vim
@@ -0,0 +1,12 @@
+" These come in handy when the following settings are enabled:
+" :set linebreak wrap nolist
+vmap <D-j> gj
+vmap <D-k> gk
+vmap <D-4> g$
+vmap <D-6> g^
+vmap <D-0> g^
+nmap <D-j> gj
+nmap <D-k> gk
+nmap <D-4> g$
+nmap <D-6> g^
+nmap <D-0> g^
View
13 vimrc
@@ -109,19 +109,6 @@ let Tlist_Show_One_File=1
nmap <Leader>/ :TlistToggle<CR>
" Mappings {{{1
-" Shortcuts to make it easier to explore wrapped lines {{{2
-" These come in handy when the following settings are enabled:
-" :set linebreak wrap nolist
-vmap <D-j> gj
-vmap <D-k> gk
-vmap <D-4> g$
-vmap <D-6> g^
-vmap <D-0> g^
-nmap <D-j> gj
-nmap <D-k> gk
-nmap <D-4> g$
-nmap <D-6> g^
-nmap <D-0> g^
" Shortcuts for opening file in same directory as current file {{{2
cnoremap %% <C-R>=expand('%:h').'/'<cr>

0 comments on commit 7bdafae

Please sign in to comment.
Something went wrong with that request. Please try again.