Commit fd674fe

mo khan <mo@mokhan.ca>
2013-08-04 04:48:01
set ruby ft on known config files.
1 parent 81a3236
Changed files (1)
vimrc
@@ -91,10 +91,8 @@ if has("autocmd")
   " This actually might be confusing, but the plugin +ruby+ already does
   " this, so we want to do it only if the plugin +ruby+ is disabled for
   " some reason
-  if janus#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,Guardfile,config.ru,*.rake} set ft=ruby
-  endif
+  " Set the Ruby filetype for a number of common Ruby files without .rb
+  au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,Procfile,Guardfile,config.ru,*.rake} set ft=ruby
 
   " Make sure all mardown files have the correct filetype set and setup wrapping
   au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn,txt} setf markdown
@@ -329,8 +327,8 @@ endif
 let mapleader = ","
 let localleader = "\\"
 
-nnoremap <leader>ev :vsplit $MYVIMRC.after<cr>
-nnoremap <leader>sv :source $MYVIMRC.after<cr>
+nnoremap <leader>ev :vsplit $MYVIMRC<cr>
+nnoremap <leader>sv :source $MYVIMRC<cr>
 nnoremap <leader><space> :noh<cr>
 nnoremap <tab> %
 vnoremap <tab> %