From aa0bda76c79e33b79b4b69b553a4b11e9a215285 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 14 Aug 2011 12:07:08 -0500 Subject: [PATCH] Make ruby find ctags for gemsets --- vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index b1d5976..0443b73 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -233,6 +233,9 @@ au! FileType scss syntax cluster sassCssAttributes add=@cssColors " Thorfile, Rakefile and Gemfile are Ruby au! BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} set ft=ruby +au! FileType ruby let &l:tags = pathogen#legacyjoin(pathogen#uniq( + \ pathogen#split(&tags) + + \ map(split($GEM_PATH,':'),'v:val."/gems/*/tags"'))) au! BufRead,BufNewFile gitconfig set ft=gitconfig