Permalink
Browse files

The virtualenv tags hack works better.

  • Loading branch information...
jeffbuttars committed Oct 11, 2012
1 parent a3b33ef commit 790f2acde7e34c1e5cab27fc748d7120d89640ec
Showing with 3 additions and 1 deletion.
  1. +3 −1 vimrc/hacks.vim
View
@@ -158,5 +158,7 @@ nnoremap <silent> ,/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>
" If a virtualenv is active, see if we have tags file in
" the virtualenv root dir. If so, add it to our tags list.
if $VIRTUAL_ENV != ''
- set tags+=system('echo "$(dirname $VIRTUAL_ENV)/tags"')
+ let b:vtag_dir = system('echo "$(dirname $VIRTUAL_ENV)/tags"')
+ " echo b:vtag_dir
+ execute 'set' 'tags+=' . b:vtag_dir
endif

0 comments on commit 790f2ac

Please sign in to comment.