Skip to content

Commit

Permalink
SetTags function sets default tag list
Browse files Browse the repository at this point in the history
  • Loading branch information
joonty committed Jun 25, 2012
1 parent 954e070 commit 0663e20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/taggatron.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ endif

au! BufWritePost * call taggatron#CheckCommandList(0)
command! TagUpdate call taggatron#CheckCommandList(1)
command! -nargs=1 SetTags call taggatron#SetTags(<f-args>)

function! taggatron#SetTags(tags)
call taggatron#debug("Setting tag files: ".a:tags)
exec "set tags=".a:tags
let g:tagdefaults = a:tags
endfunction

function! taggatron#CheckCommandList(forceCreate)
let l:cwd = getcwd()
Expand Down

0 comments on commit 0663e20

Please sign in to comment.