Permalink
Browse files

:Rtags creates tmp/ if missing

Closes #151.
  • Loading branch information...
1 parent 4e37d9a commit 0eda69f5e7f156c80aaff65e9d67df19a33bb380 @tpope committed Apr 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 autoload/rails.vim
View
@@ -1043,6 +1043,9 @@ function! s:app_tags_command() dict
else
return s:error("ctags not found")
endif
+ if !isdirectory(self.path('tmp'))
+ call mkdir(self.path('tmp'), 'p')
+ endif
exe '!'.cmd.' -f '.s:escarg(self.path("tmp/tags")).' -R --langmap="ruby:+.rake.builder.rjs" '.g:rails_ctags_arguments.' '.s:escarg(self.path())
endfunction

0 comments on commit 0eda69f

Please sign in to comment.