Skip to content

Commit

Permalink
Moved filetype specific configuration to .vim/after/ftplugin/
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Apr 3, 2013
1 parent 1698b0b commit a710bb2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
1 change: 0 additions & 1 deletion .vim/after/ftplugin/eruby.vim

This file was deleted.

1 change: 0 additions & 1 deletion .vim/after/ftplugin/eruby_surround.vim

This file was deleted.

1 change: 1 addition & 0 deletions .vim/after/ftplugin/make.vim
@@ -0,0 +1 @@
set noexpandtab
2 changes: 2 additions & 0 deletions .vim/after/ftplugin/markdown.vim
@@ -0,0 +1,2 @@
set spell
set textwidth=80
1 change: 1 addition & 0 deletions .vim/after/ftplugin/python.vim
@@ -0,0 +1 @@
set noexpandtab
1 change: 1 addition & 0 deletions .vim/after/ftplugin/sh.vim
@@ -0,0 +1 @@
set noexpandtab
2 changes: 2 additions & 0 deletions .vim/after/ftplugin/txt.vim
@@ -0,0 +1,2 @@
set spell
set textwidth=80
13 changes: 1 addition & 12 deletions .vimrc
Expand Up @@ -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.