execute('cscope kill -1')
execute('cd ' . g:CScopeDir)
execute('silent ! cscope -Rb')
- call ConnectCScope()
execute('cd ' . g:ProjectPath)
+ call ConnectCScope()
endif
- execute('redraw!')
+ redraw!
endfunction
" Update the CTags File
execute('silent ! ctags -R *')
execute('cd ' . g:ProjectPath)
endif
- execute('redraw!')
+ redraw!
endfunction
- " Execute Rake with the given targets and open the quickfix window
- function! RunCmd(show_qf,task)
- let cmd = 'silent !start /min cmd /c ' . a:task . ' > quickfix.txt 2>&1 ' .
- \ '&gvim --servername ' . v:servername .
- \ ' --remote-send "<ESC>:cgetfile quickfix.txt<CR>' .
- \ ((a:show_qf == 1) ? '<ESC>:cope<CR>' : '') .
- \ '<ESC>:let g:CmdRunning = 0<CR>"'
-
- if !exists('g:CmdRunning') || (g:CmdRunning == 0)
- execute(cmd)
- let g:CmdRunning = 1
- else
- echoerr 'Error: A background command is already running!'
- endif
- endfunction
-
- " Define a rake command
- command! -nargs=* Rake call RunCmd(1, 'rake ' . '<args>')
- cnoreabbrev rake Rake
-
- " Define a rake command
- command! -nargs=* Exec call RunCmd(0, '<args>')
- cnoreabbrev exec Exec
- cnoreabbrev cmd Exec
-
"------------------------------------------------------------------------------
" Project Specific Key Mappings
"------------------------------------------------------------------------------