From 51f3b5f563602a01f7c5cbb51731adc8689befcb Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Mon, 11 Feb 2013 09:22:23 +0100 Subject: [PATCH] prototype on-the-fly codeformatting --- plugin/autoformat.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index d989f20..f2a0012 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -37,3 +37,8 @@ endfunction "So when buffer/window/tab changes, "(re)load formatprg from the bufferlocal variable au BufEnter,WinEnter * if exists("b:formatprg") | let &formatprg=b:formatprg + +let b:autoformat = 1 +if b:autoformat==1 + inoremap Vgqo +endif