PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/vimfiles/config/91-projects.vim

https://bitbucket.org/rko/vimrc
Vim Script | 360 lines | 296 code | 16 blank | 48 comment | 2 complexity | 093baee51fb5a17ea0c34350161116fb MD5 | raw file
  1. set tags=
  2. command! Dropbox cd C:/Users/root/Desktop/Dropbox
  3. command! OmegaComplete cd C:\Users\root\Desktop\Dropbox\vim\vimfiles\bundle\omegacomplete
  4. command! Platform cd C:/SVN/Syandus_ALIVE3/Platform/Source/Code
  5. command! Platform4 cd C:/SVN/Syandus_ALIVE4/Platform/Source/Code
  6. command! Carbon cd C:/SVN/Syandus_ALIVE3/Frameworks/Carbon
  7. command! Carbon4 cd C:/SVN/Syandus_ALIVE4/Frameworks/Carbon
  8. command! Oxygen cd C:/SVN/Syandus_ALIVE3/Frameworks/Oxygen
  9. command! Hub cd C:/SVN/Syandus_ALIVE3/Hub/Source
  10. command! Metrics cd C:/SVN/Syandus_ALIVE3/Metrics
  11. command! Symlin cd C:/SVN/Syandus_Cores/C_Sym_DM_01
  12. command! Spiriva cd C:/SVN/Syandus_Cores/C_Spv_COPD_01
  13. command! Copd cd C:/SVN/Syandus_Cores/C_Unb_COPD_01
  14. command! Immunobiology cd C:/SVN/Syandus_Cores/C_ImmunoSim_01
  15. command! Sutent cd C:/SVN/Syandus_Cores/C_Sut_AE_01
  16. command! SyMetrics cd C:/SVN/Syandus_ALIVE3/Metrics/SyMetrics
  17. command! SyLogParser cd C:/SVN/Syandus_ALIVE3/Metrics/SyLoginParser
  18. command! SyHandleGen cd C:/SVN/Syandus_ALIVE3/Tools/Source/SyHandleGen
  19. command! SyHandleGen4 cd C:/SVN/Syandus_ALIVE4/Tools/Source/SyHandleGen
  20. command! Groundhog cd C:/SVN/Syandus_ALIVE3/Groundhog
  21. command! GroundhogClient cd C:/SVN/Syandus_ALIVE3/Groundhog/Client
  22. command! GroundhogServer cd C:/SVN/Syandus_ALIVE3/Groundhog/Server
  23. command! GroundhogShared cd C:/SVN/Syandus_ALIVE3/Groundhog/Shared
  24. command! ConnectionTester cd C:/SVN/Syandus_ALIVE3/Groundhog/ConnectionTester
  25. command! SyRefresh cd C:/SVN/Syandus_ALIVE3/Tools/Source/SyRefresh
  26. command! SyProjectGenerator cd C:/SVN/Syandus_ALIVE4/Tools/Source/SyProjectGenerator
  27. command! Mac cd S:/trunk/ALIVE Med/
  28. " Shaders
  29. function! SetSettingsForShaders()
  30. setlocal tabstop=4 shiftwidth=4 softtabstop=4
  31. nnoremap <buffer> <leader>m :update<CR>:!start .\install.bat<CR>
  32. setlocal tags=
  33. endfunction
  34. augroup Shaders
  35. autocmd!
  36. autocmd BufNewFile,BufRead,BufEnter *.fx call SetSettingsForShaders()
  37. augroup END
  38. function! SetSettingsForProject(size_of_tab, autohotkey_file, tags)
  39. execute 'setlocal tabstop=' . a:size_of_tab
  40. execute 'setlocal shiftwidth=' . a:size_of_tab
  41. execute 'setlocal softtabstop=' . a:size_of_tab
  42. if (len(a:autohotkey_file) == 0)
  43. execute "nnoremap <buffer> <leader>m <nop>"
  44. else
  45. execute "nnoremap <buffer> <leader>m :call AutoHotkeyMake('" . a:autohotkey_file . "')\<CR>"
  46. endif
  47. execute 'setlocal tags=' . a:tags
  48. endfunction
  49. " personal projects
  50. " OmegacompleteServer {{{
  51. augroup OmegacompleteServer
  52. autocmd!
  53. autocmd BufNewFile,BufRead,BufEnter
  54. \ C:/Users/root/Desktop/Dropbox/vim/vimfiles/bundle/omegacomplete/*
  55. \ call SetSettingsForProject(
  56. \ 4,
  57. \ 'OmegaCompletePythonModule',
  58. \ '')
  59. augroup END
  60. " }}}
  61. " platform level
  62. " OGRE {{{
  63. augroup OgreSDK
  64. autocmd!
  65. autocmd BufNewFile,BufRead,BufEnter
  66. \ C:/OgreSDK/*
  67. \ call SetSettingsForProject(
  68. \ 4,
  69. \ '',
  70. \ 'C:/OgreSDK/OgreSDK_vc9_v1-8-0/include/tags')
  71. augroup END
  72. augroup Ogre
  73. autocmd!
  74. autocmd BufNewFile,BufRead,BufEnter
  75. \ C:/SVN/Syandus_ALIVE4/Evaluations/OGRE/*
  76. \ call SetSettingsForProject(
  77. \ 4,
  78. \ 'C:/Users/root/Desktop/Dropbox/make_ogre_application.ahk',
  79. \ 'C:/OgreSDK/OgreSDK_vc9_v1-8-0/include/tags')
  80. augroup END
  81. "}}}
  82. " Groundhog {{{
  83. augroup Groundhog
  84. autocmd!
  85. autocmd BufNewFile,BufRead,BufEnter
  86. \ C:/SVN/Syandus_ALIVE3/Groundhog/*
  87. \ call SetSettingsForProject(
  88. \ 3,
  89. \ 'C:/Users/root/Desktop/Dropbox/make_groundhog.ahk',
  90. \ '')
  91. augroup END
  92. augroup ConnectionTester
  93. autocmd!
  94. autocmd BufNewFile,BufRead,BufEnter
  95. \ C:/SVN/Syandus_ALIVE3/Groundhog/ConnectionTester/*
  96. \ call SetSettingsForProject(
  97. \ 3,
  98. \ 'C:/Users/root/Desktop/Dropbox/make_connection_tester.ahk',
  99. \ '')
  100. augroup END
  101. " }}}
  102. " Platform {{{
  103. augroup Platform3
  104. autocmd!
  105. autocmd BufNewFile,BufRead,BufEnter
  106. \ C:/SVN/Syandus_ALIVE3/Platform/Source/Code/*
  107. \ call SetSettingsForProject(
  108. \ 3,
  109. \ 'SyPlatform3',
  110. \ 'C:/SVN/Syandus_ALIVE3/Platform/Source/Code/tags')
  111. augroup END
  112. augroup Platform4
  113. autocmd!
  114. autocmd BufNewFile,BufRead,BufEnter
  115. \ C:/SVN/Syandus_ALIVE4/Platform/Source/Code/*
  116. \ call SetSettingsForProject(
  117. \ 3,
  118. \ 'SyPlatform4',
  119. \ 'C:/SVN/Syandus_ALIVE4/Platform/ThirdParty/OGRE/Include/tags'
  120. \ )
  121. augroup END
  122. " }}}
  123. " backend, metrics, launcher, misc
  124. " Hub {{{
  125. augroup Hub
  126. autocmd!
  127. autocmd BufNewFile,BufRead,BufEnter
  128. \ C:/SVN/Syandus_ALIVE3/Hub/*
  129. \ call SetSettingsForProject(
  130. \ 3,
  131. \ 'C:/Users/root/Desktop/Dropbox/make_hub.ahk',
  132. \ 'C:/SVN/Syandus_ALIVE3/Hub/Source/tags')
  133. augroup END
  134. " }}}
  135. " HubWeb {{{
  136. augroup HubWeb
  137. autocmd!
  138. autocmd BufNewFile,BufRead,BufEnter
  139. \ C:/SVN/Syandus_ALIVE3/Hub/Web/*
  140. \ call SetSettingsForProject(
  141. \ 4,
  142. \ '',
  143. \ '')
  144. augroup END
  145. " }}}
  146. " SyMetrics {{{
  147. augroup SyMetrics
  148. autocmd!
  149. autocmd BufNewFile,BufRead,BufEnter
  150. \ C:/SVN/Syandus_ALIVE3/Metrics/SyMetrics/*
  151. \ call SetSettingsForProject(
  152. \ 2,
  153. \ 'SyMetrics',
  154. \ '')
  155. augroup END
  156. " }}}
  157. " SyMetricsWeb {{{
  158. augroup WebMetrics
  159. autocmd!
  160. autocmd BufNewFile,BufRead,BufEnter
  161. \ C:/SVN/Syandus_ALIVE3/Metrics/web/*
  162. \ call SetSettingsForProject(
  163. \ 4,
  164. \ 'UNUSED C:/Users/root/Desktop/Dropbox/winscp_sync.ahk',
  165. \ '')
  166. augroup END
  167. " }}}
  168. " SyLogParser {{{
  169. augroup SyLoginParser
  170. autocmd!
  171. autocmd BufNewFile,BufRead,BufEnter
  172. \ C:/SVN/Syandus_ALIVE3/Metrics/SyLoginParser/*
  173. \ call SetSettingsForProject(
  174. \ 2,
  175. \ 'C:/Users/root/Desktop/Dropbox/make_sylogparser.ahk',
  176. \ '')
  177. augroup END
  178. "}}}
  179. " SyHandleGen {{{
  180. augroup SyHandleGen
  181. autocmd!
  182. autocmd BufNewFile,BufRead,BufEnter
  183. \ C:/SVN/Syandus_ALIVE3/Tools/Source/SyHandleGen/*
  184. \ call SetSettingsForProject(
  185. \ 2,
  186. \ 'C:/Users/root/Desktop/Dropbox/make_syhandlegen.ahk',
  187. \ '')
  188. augroup END
  189. augroup SyHandleGen4
  190. autocmd!
  191. autocmd BufNewFile,BufRead,BufEnter
  192. \ C:/SVN/Syandus_ALIVE4/Tools/Source/SyHandleGen/*
  193. \ call SetSettingsForProject(
  194. \ 2,
  195. \ 'SyHandleGen',
  196. \ '')
  197. augroup END
  198. "}}}
  199. " SyRefresh {{{
  200. augroup SyRefresh
  201. autocmd!
  202. autocmd BufNewFile,BufRead,BufEnter
  203. \ C:/SVN/Syandus_ALIVE3/Tools/Source/SyRefresh/*
  204. \ call SetSettingsForProject(
  205. \ 4,
  206. \ 'C:/Users/root/Desktop/Dropbox/make_syrefresh.ahk',
  207. \ '')
  208. augroup END
  209. "}}}
  210. " SyProjectGenerator {{{
  211. augroup SyProjectGenerator
  212. autocmd!
  213. autocmd BufNewFile,BufRead,BufEnter
  214. \ C:/SVN/Syandus_ALIVE4/Tools/Source/SyProjectGenerator/*
  215. \ call SetSettingsForProject(
  216. \ 3,
  217. \ 'C:/Users/root/Desktop/Dropbox/make_syprojectgenerator.ahk',
  218. \ '')
  219. augroup END
  220. "}}}
  221. " Mac {{{
  222. augroup Mac
  223. autocmd!
  224. autocmd BufNewFile,BufRead,BufEnter
  225. \ S:/*
  226. \ call SetSettingsForProject(
  227. \ 2,
  228. \ '',
  229. \ '')
  230. augroup END
  231. " }}}
  232. " framework level
  233. " Carbon {{{
  234. augroup Carbon
  235. autocmd!
  236. autocmd BufNewFile,BufRead,BufEnter
  237. \ C:/SVN/Syandus_ALIVE3/Frameworks/Carbon/*
  238. \ call SetSettingsForProject(
  239. \ 3,
  240. \ 'C:/Users/root/Desktop/Dropbox/make_carbon.ahk',
  241. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Carbon/Source/Scripts/tags,' .
  242. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags')
  243. augroup END
  244. augroup Carbon4
  245. autocmd!
  246. autocmd BufNewFile,BufRead,BufEnter
  247. \ C:/SVN/Syandus_ALIVE4/Frameworks/Carbon/*
  248. \ call SetSettingsForProject(
  249. \ 3,
  250. \ 'Carbon',
  251. \ '')
  252. augroup END
  253. " }}}
  254. " Oxygen {{{
  255. augroup Oxygen
  256. autocmd BufNewFile,BufRead,BufEnter
  257. \ C:/SVN/Syandus_ALIVE3/Frameworks/Oxygen/*
  258. \ call SetSettingsForProject(
  259. \ 3,
  260. \ 'C:/Users/root/Desktop/Dropbox/make_carbon.ahk',
  261. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Oxygen/Source/Scripts/tags,' .
  262. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags')
  263. augroup END
  264. " }}}
  265. " simulation cores
  266. " UnbrandedSpiriva {{{
  267. augroup UnbrandedSpiriva
  268. autocmd!
  269. autocmd BufNewFile,BufRead,BufEnter
  270. \ C:/SVN/Syandus_Cores/C_Unb_COPD_01/*
  271. \ call SetSettingsForProject(
  272. \ 3,
  273. \ 'C:/Users/root/Desktop/Dropbox/make_unbrandedcopd.ahk',
  274. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Carbon/Source/Scripts/tags,' .
  275. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags'
  276. \ )
  277. augroup END
  278. " }}}
  279. " Symlin {{{
  280. augroup Symlin
  281. autocmd!
  282. autocmd BufNewFile,BufRead,BufEnter
  283. \ C:/SVN/Syandus_Cores/C_Sym_DM_01/*
  284. \ call SetSettingsForProject(
  285. \ 2,
  286. \ 'C:/Users/root/Desktop/Dropbox/make_symlin.ahk',
  287. \ 'C:/SVN/Syandus_Cores/C_Sym_DM_01/Source/Scripts/Content/tags,' .
  288. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Carbon/Source/Scripts/tags,' .
  289. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags'
  290. \ )
  291. augroup END
  292. " }}}
  293. " Sutent {{{
  294. augroup Sutent
  295. autocmd!
  296. autocmd BufNewFile,BufRead,BufEnter
  297. \ C:/SVN/Syandus_Cores/C_Sut_AE_01/*
  298. \ call SetSettingsForProject(
  299. \ 3,
  300. \ 'C:/Users/root/Desktop/Dropbox/make_sutent.ahk',
  301. \ 'C:/SVN/Syandus_Cores/C_Sut_AE_01/Source/Scripts/Content/tags,' .
  302. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Carbon/Source/Scripts/tags,' .
  303. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags'
  304. \ )
  305. augroup END
  306. " }}}
  307. " OgreLair {{{
  308. augroup OgreLair
  309. autocmd!
  310. autocmd BufNewFile,BufRead,BufEnter
  311. \ C:/SVN/Syandus_Cores/C_Ogre_Lair_01/*
  312. \ call SetSettingsForProject(
  313. \ 3,
  314. \ '',
  315. \ ''
  316. \ )
  317. augroup END
  318. " }}}
  319. " immunobiology
  320. " ImmunoSim {{{
  321. augroup ImmunoSim
  322. autocmd!
  323. autocmd BufNewFile,BufRead,BufEnter
  324. \ C:/SVN/Syandus_Cores/C_ImmunoSim_01/*
  325. \ call SetSettingsForProject(
  326. \ 3,
  327. \ 'C:/Users/root/Desktop/Dropbox/make_immunosim.ahk',
  328. \ 'C:/SVN/Syandus_Cores/C_ImmunoSim_01/Source/Scripts/Content/tags,' .
  329. \ 'C:/SVN/Syandus_ALIVE3/Frameworks/Oxygen/Source/Scripts/tags,' .
  330. \ 'C:/SVN/Syandus_ALIVE3/Platform/SDK/Include/tags'
  331. \ )
  332. augroup END
  333. " }}}
  334. augroup OgreLair
  335. autocmd!
  336. autocmd BufNewFile,BufRead,BufEnter
  337. \ C:/SVN/Syandus_Cores/C_Ogre_Lair_01/*
  338. \ call SetSettingsForProject(
  339. \ 3,
  340. \ 'OgreLair C:/SVN/Syandus_Cores/C_Ogre_Lair_01/Source/Scripts/Content/configure.bat',
  341. \ ''
  342. \ )
  343. augroup END
  344. " vim:fdm=marker:foldlevel=0