Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby lang: Init.

  • Loading branch information...
commit 829cd1f608fb915e62c401ac9a9164c9c89a09c1 1 parent c7e0f06
@eMxyzptlk eMxyzptlk authored
View
3  .gitmodules
@@ -69,6 +69,9 @@
[submodule "vimius/vim/langs/nodejs"]
path = vimius/vim/langs/nodejs
url = git://github.com/mmalecki/vim-node.js.git
+[submodule "vimius/vim/langs/ruby"]
+ path = vimius/vim/langs/ruby
+ url = git://github.com/vim-ruby/vim-ruby.git
# Tools
[submodule "vimius/vim/tools/unimpaired"]
View
15 vimius/vim/core/before/plugin/plugins.vim
@@ -1,12 +1,17 @@
-" Gundo and pep8 requires Python
+" Variables
+let s:no_python_support = "Vim is compiled without python support"
+let s:no_ruby_support = "Vim is compiled without ruby support"
+
+" Plugins that requires python support
if !has("python")
- call vimius#disable_plugin("gundo", "Vim is compiled without python support")
- call vimius#disable_plugin("pep8", "Vim is compiled without python support")
+ call vimius#disable_plugin("gundo", s:no_python_support)
+ call vimius#disable_plugin("pep8", s:no_python_support)
endif
-" CommandT requires ruby
+" Plugins that requires ruby support
if !has("ruby")
- call vimius#disable_plugin("command-t", "Vim is compiled without ruby support")
+ call vimius#disable_plugin("command-t", s:no_ruby_support)
+ call vimius#disable_plugin("ruby", s:no_ruby_support)
endif
" Pep8 requires pep8 installed
View
6 vimius/vim/core/before/plugin/settings.vim
@@ -99,8 +99,10 @@ filetype plugin indent on " Turn on filetype plugins (:help filetype-plugin)
" In Makefiles, use real tabs, not tabs expanded to spaces
au FileType make set noexpandtab
-" Set the Ruby filetype for a number of common Ruby files without .rb
-au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,Procfile,config.ru,*.rake} set ft=ruby
+if vimius#is_plugin_disabled("ruby")
+ " Set the Ruby filetype for a number of common Ruby files without .rb
+ au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,Procfile,config.ru,*.rake} set ft=ruby
+endif
" Make sure all mardown files have the correct filetype set and setup wrapping
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn,txt} setf markdown | call s:setupWrapping()
1  vimius/vim/langs/ruby
@@ -0,0 +1 @@
+Subproject commit 852596f91c5044ca5d743d72af67a2cea0e9675d
Please sign in to comment.
Something went wrong with that request. Please try again.