Permalink
Browse files

Moved filetype specific configuration to .vim/after/ftplugin/

  • Loading branch information...
1 parent 1698b0b commit a710bb2387b099c2e555a53b54628c428d26f595 @postmodern committed Apr 3, 2013
View
1 .vim/after/ftplugin/eruby.vim
View
1 .vim/after/ftplugin/eruby_surround.vim
View
1 .vim/after/ftplugin/make.vim
@@ -0,0 +1 @@
+set noexpandtab
View
2 .vim/after/ftplugin/markdown.vim
@@ -0,0 +1,2 @@
+set spell
+set textwidth=80
View
1 .vim/after/ftplugin/python.vim
@@ -0,0 +1 @@
+set noexpandtab
View
1 .vim/after/ftplugin/sh.vim
@@ -0,0 +1 @@
+set noexpandtab
View
2 .vim/after/ftplugin/txt.vim
@@ -0,0 +1,2 @@
+set spell
+set textwidth=80
View
13 .vimrc
@@ -9,20 +9,9 @@ color ir_black
syntax on
filetype plugin indent on
-" make and python use real tabs
-autocmd FileType make set noexpandtab
-autocmd FileType python set noexpandtab
-
" Thorfile, Rakefile and Gemfile are Ruby
autocmd BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} set ft=ruby
-
-" Wrap text to 80 columns for *.md and *.txt files
-autocmd BufNewFile,BufRead *.txt set textwidth=80
-autocmd BufNewFile,BufRead *.md set textwidth=80
-
-" Enable spellchecking for *.md and *.txt files
-autocmd BufNewFile,BufRead *.txt set spell
-autocmd BufNewFile,BufRead *.md set spell
+autocmd BufRead,BufNewFile *.txt set ft=txt
" md, markdown, and mk are markdown and define buffer-local preview
" au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()

0 comments on commit a710bb2

Please sign in to comment.