]> code.delx.au - dotfiles/commitdiff
Vim Q reformats paragraph
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 17 Mar 2008 06:15:59 +0000 (17:15 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 17 Mar 2008 06:15:59 +0000 (17:15 +1100)
.vim/macros.vim

index 62b5e2a3832635c9b5167dae611457bab52ea5e5..79b17aa0e280eed0aa040bd44d9ccddfb564ca50 100644 (file)
@@ -39,6 +39,9 @@ imap <C-z> <ESC>u:set paste<CR>.:set nopaste<CR>i
 " Tab to switch between split windows
 map <Tab> <C-w><C-w>
 
+" Q to reformat paragraph. I never use ex mode anyway (default binding for Q)
+map Q gwip
+
 " Spell checking mode toggle
 function s:spell()
        if !exists("s:spell_check") || s:spell_check == 0