key type re-map

3 months ago

author
Hideo Hattori
date
Tue Jun 01 00:38:26 2010 +0900
changeset 22
c2a38fca8fdc
parent 18
d954bcd1b5dc
child 23
a77f8cec1424

key type re-map

ftplugin/python/flyquickfixmake.vim file | annotate | diff | revisions
     1.1 --- a/ftplugin/python/flyquickfixmake.vim	Wed Oct 14 22:09:17 2009 +0900
     1.2 +++ b/ftplugin/python/flyquickfixmake.vim	Tue Jun 01 00:38:26 2010 +0900
     1.3 @@ -33,14 +33,26 @@
     1.4      endif
     1.5  endfunction
     1.6  
     1.7 +function! FlyquickfixTypeToggleSet()
     1.8 +    if g:python_flyquickfixmake_type == 0
     1.9 +        let g:python_flyquickfixmake_type = 1
    1.10 +        call FlyquickfixPrgSet(0)
    1.11 +    elseif g:python_flyquickfixmake_type == 1
    1.12 +        call FlyquickfixPrgSet(1)
    1.13 +        let g:python_flyquickfixmake_type = 2
    1.14 +    else
    1.15 +        call FlyquickfixPrgSet(8)
    1.16 +        let g:python_flyquickfixmake_type = 0
    1.17 +    endif
    1.18 +endfunction
    1.19 +
    1.20  if !exists("g:python_flyquickfixmake")
    1.21      let g:python_flyquickfixmake = 1
    1.22 +    let g:python_flyquickfixmake_type = 0
    1.23      call FlyquickfixPrgSet(8)
    1.24      "au BufWritePost *.py silent make
    1.25      au BufWritePost *.py make
    1.26  endif
    1.27  
    1.28 -map fs :call FlyquickfixToggleSet()<CR>
    1.29 -map pl :call FlyquickfixPrgSet(0)<CR>
    1.30 -map pf :call FlyquickfixPrgSet(1)<CR>
    1.31 -map p8 :call FlyquickfixPrgSet(8)<CR>
    1.32 +nmap <C-f> :call FlyquickfixToggleSet()<CR>
    1.33 +nmap <C-p> :call FlyquickfixTypeToggleSet()<CR>

mercurial