comparison plugin/autotags.vim @ 16:c11616828595

Add an option to specify a `ctags` options file to be used. Fixed some arguments being forgotten in the Windows script.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 21 Aug 2014 11:32:32 -0700
parents b557282af215
children d48b0e48283b
comparison
equal deleted inserted replaced
15:b557282af215 16:c11616828595
46 46
47 if !exists('g:autotags_project_root') 47 if !exists('g:autotags_project_root')
48 let g:autotags_project_root = [] 48 let g:autotags_project_root = []
49 endif 49 endif
50 let g:autotags_project_root += ['.git', '.hg', '.bzr', '_darcs'] 50 let g:autotags_project_root += ['.git', '.hg', '.bzr', '_darcs']
51
52 if !exists('g:autotags_options_file')
53 let g:autotags_options_file = ''
54 endif
51 55
52 if !exists('g:autotags_exclude') 56 if !exists('g:autotags_exclude')
53 let g:autotags_exclude = [] 57 let g:autotags_exclude = []
54 endif 58 endif
55 59
304 let l:cmd .= ' -x ' . exc 308 let l:cmd .= ' -x ' . exc
305 endfor 309 endfor
306 if g:autotags_pause_after_update 310 if g:autotags_pause_after_update
307 let l:cmd .= ' -p' 311 let l:cmd .= ' -p'
308 endif 312 endif
313 if len(g:autotags_options_file)
314 let l:cmd .= ' -o "' . g:autotags_options_file . '"'
315 endif
309 if g:autotags_trace 316 if g:autotags_trace
310 if has('win32') 317 if has('win32')
311 let l:cmd .= ' -l "' . fnamemodify(l:tags_file, ':t') . '.log"' 318 let l:cmd .= ' -l "' . fnamemodify(l:tags_file, ':t') . '.log"'
312 else 319 else
313 let l:cmd .= ' > "' . fnamemodify(l:tags_file, ':t') . '.log" 2>&1' 320 let l:cmd .= ' > "' . fnamemodify(l:tags_file, ':t') . '.log" 2>&1'