強制的にvi協調モード

uimのvi協調モードが効かないので、例によって力技。
id:oppara:20080602


.vim/after/plugin/general.vim:

if !has('gui_running') && has( 'mac' )
  inoremap <esc>  <esc>:call ForceImToUS()<cr>
  function! ForceImToUS()
    let mp = &makeprg
    let &makeprg = '/path/to/hoge' 
    try
      silent make
    catch
    endtry
    let &makeprg = mp
    redraw!
  endfunction
endif