Skip to content

Commit

Permalink
Move make filetype settings to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
bergman committed Sep 26, 2011
1 parent 22f7a6d commit 7353df4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -174,6 +174,15 @@ vim_plugin_task "command_t", "http://s3.wincent.com/command-t/releases/co
end
end

vim_plugin_task "make_tabs" do
File.open(File.expand_path("../ftplugin/make_tabs.vim", __FILE__), "w") do |file|
file.puts <<-VIM.gsub(/^ +/, "")
" make uses real tabs
setlocal noexpandtab
VIM
end
end

vim_plugin_task "janus_themes" do
# custom version of railscasts theme
File.open(File.expand_path("../colors/railscasts+.vim", __FILE__), "w") do |file|
Expand Down
3 changes: 0 additions & 3 deletions vimrc
Expand Up @@ -64,9 +64,6 @@ function s:setupMarkup()
map <buffer> <Leader>p :Hammer<CR>
endfunction

" make uses real tabs
au FileType make set noexpandtab

" Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby

Expand Down

0 comments on commit 7353df4

Please sign in to comment.