From: Michael D. Lowis Date: Sun, 2 Nov 2014 14:28:37 +0000 (-0500) Subject: Updated buffer switching shortcuts X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=f18f34a507c8b6a1e57f8a8a128aec29758e31b9;p=archive%2Fvim_config.git Updated buffer switching shortcuts --- f18f34a507c8b6a1e57f8a8a128aec29758e31b9 diff --cc projects/gentex.vim index a68e1cf,5257d37..34a0ad7 --- a/projects/gentex.vim +++ b/projects/gentex.vim @@@ -28,10 -28,10 +28,10 @@@ function! RefreshCScope( 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 @@@ -41,34 -41,9 +41,9 @@@ function! RefreshCTags( 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 ":cgetfile quickfix.txt' . - \ ((a:show_qf == 1) ? ':cope' : '') . - \ ':let g:CmdRunning = 0"' - - 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 ' . '') - cnoreabbrev rake Rake - - " Define a rake command - command! -nargs=* Exec call RunCmd(0, '') - cnoreabbrev exec Exec - cnoreabbrev cmd Exec - "------------------------------------------------------------------------------ " Project Specific Key Mappings "------------------------------------------------------------------------------