]> git.mdlowis.com Git - archive/vim_config.git/commitdiff
Updated buffer switching shortcuts
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Nov 2014 14:28:37 +0000 (09:28 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Nov 2014 14:28:37 +0000 (09:28 -0500)
1  2 
projects/gentex.vim

index a68e1cfe2a6055d5579940698dfd3663ab663530,5257d37636d92ed659c0521a2f1d347af0936d11..34a0ad7b0afec058a503bbecb887f41971e82fe0
@@@ -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 "<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
  "------------------------------------------------------------------------------