# HG changeset patch # User Hideo Hattori # Date 1275320306 -32400 # Node ID c2a38fca8fdc3c5568312bdf56f012f34fdb61d6 # Parent d954bcd1b5dcfcebacde2749985c6c319d80c3ac key type re-map diff -r d954bcd1b5dc -r c2a38fca8fdc ftplugin/python/flyquickfixmake.vim --- a/ftplugin/python/flyquickfixmake.vim Wed Oct 14 22:09:17 2009 +0900 +++ b/ftplugin/python/flyquickfixmake.vim Tue Jun 01 00:38:26 2010 +0900 @@ -33,14 +33,26 @@ endif endfunction +function! FlyquickfixTypeToggleSet() + if g:python_flyquickfixmake_type == 0 + let g:python_flyquickfixmake_type = 1 + call FlyquickfixPrgSet(0) + elseif g:python_flyquickfixmake_type == 1 + call FlyquickfixPrgSet(1) + let g:python_flyquickfixmake_type = 2 + else + call FlyquickfixPrgSet(8) + let g:python_flyquickfixmake_type = 0 + endif +endfunction + if !exists("g:python_flyquickfixmake") let g:python_flyquickfixmake = 1 + let g:python_flyquickfixmake_type = 0 call FlyquickfixPrgSet(8) "au BufWritePost *.py silent make au BufWritePost *.py make endif -map fs :call FlyquickfixToggleSet() -map pl :call FlyquickfixPrgSet(0) -map pf :call FlyquickfixPrgSet(1) -map p8 :call FlyquickfixPrgSet(8) +nmap :call FlyquickfixToggleSet() +nmap :call FlyquickfixTypeToggleSet()