Permalink
Browse files

optional sinatra support

  • Loading branch information...
1 parent 98ed040 commit ec368ec192fd7eb0beb02027261ae34ff8824169 @yuriyvolkov committed Feb 7, 2012
Showing with 6 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 Rakefile
  3. +0 −9 bundles/vim-sinatra/ftdetect/sinatra.vim
View
@@ -26,3 +26,4 @@ bundles/buffergator/
bundles/ack/
bundles/css-color/
bundles/less/
+bundles/sinatra/
View
@@ -55,6 +55,11 @@ task :rails => [:ruby, :markup] do
system("git clone git://github.com/tpope/vim-cucumber.git bundles/cucumber")
end
+desc "Installs plugin for sinatra developemtn"
+task :sinatra => [:ruby, :markup] do
+ system("git clone git://github.com/hallison/vim-ruby-sinatra.git bundles/sinatra")
+end
+
desc "Performs webservices plugin installation"
task :ws do
system("git clone git://github.com/tpope/vim-pastie.git bundles/pastie")
@@ -1,9 +0,0 @@
-autocmd BufNewFile,BufRead *rb call s:CheckForSinatraApp()
-
-function! s:CheckForSinatraApp()
- if &filetype !~ '\(^sinatra$\|\.sinatra$\|^sinatra\.\|\.sinatra\.\)'
- if search('Sinatra::Base\|require\s*[''"]sinatra[''"]', 'nwc') != 0
- let &filetype = &filetype . ".sinatra"
- endif
- endif
-endfunction

0 comments on commit ec368ec

Please sign in to comment.