From: Mike Lowis Date: Tue, 30 Aug 2016 19:38:18 +0000 (-0400) Subject: Remove vim project file from repo X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=2f7a050d04e6889a860b05ec5862ed024b4a9114;p=proto%2Fsclpl.git Remove vim project file from repo --- diff --git a/project.vim b/project.vim deleted file mode 100644 index 6e2158a..0000000 --- a/project.vim +++ /dev/null @@ -1,66 +0,0 @@ -"------------------------------------------------------------------------------ -" Global Config Variables -"------------------------------------------------------------------------------ -let g:ProjectPath = getcwd() -let g:TestSrcPath = g:ProjectPath . "/tests" -let g:CScopeDir = g:ProjectPath -let g:CTagsFile = g:CScopeDir . "/tags" - -"------------------------------------------------------------------------------ -" Global Config Variables -"------------------------------------------------------------------------------ -" Connect to CScope -function! ConnectCScope() - set nocscopeverbose " suppress 'duplicate connection' error - silent! exec "cs add " . g:CScopeDir. "/cscope.out" . " " . g:CScopeDir . " -C" - set cscopeverbose -endfunction - -" Connect to the Correct CTags File -function! ConnectCTags() - execute("set tags=" . g:CTagsFile) -endfunction - -" Update the CScope Database -function! RefreshCScope() - if strlen(g:CScopeDir) - set nocscopeverbose - execute('cscope kill -1') - execute('cd ' . g:CScopeDir) - execute('silent ! cscope -Rb') - call ConnectCScope() - execute('cd ' . g:ProjectPath) - endif -endfunction - -" Update the CTags File -function! RefreshCTags() - if strlen(g:CScopeDir) - execute('cd ' . g:CScopeDir) - execute('silent ! ctags -R *') - execute('cd ' . g:ProjectPath) - endif -endfunction - -"------------------------------------------------------------------------------ -" Project Specific Key Mappings -"------------------------------------------------------------------------------ -map :call RefreshCTags():call RefreshCScope() -map :call RefreshCTags() -map :call RefreshCScope() -map :execute("find " . g:TestSrcPath . "/**/test_" . expand("%:t:r") . ".c") - -"------------------------------------------------------------------------------ -" Project Specific Key Mappings -"------------------------------------------------------------------------------ -" Gentex style code formatting -if( (&ft == "c") || (&ft == "cpp") ) - setlocal cindent - setlocal cino==1s:1s(1s -endif - -"------------------------------------------------------------------------------ -" Connect To CTags and CScope -"------------------------------------------------------------------------------ -call ConnectCScope() -call ConnectCTags()