Skip to content
Browse files

Moving filetype specific stuff out of the vimrc and into ftplugins

  • Loading branch information...
1 parent 28a832d commit 4a991624cc47913f17c6ed346ce247de17a2ee7b Christopher Davis committed May 30, 2012
Showing with 10 additions and 8 deletions.
  1. +3 −0 vim/ftplugin/cpp.vim
  2. +3 −0 vim/ftplugin/css.vim
  3. +4 −0 vim/ftplugin/make.vim
  4. +0 −8 vimrc.link
View
3 vim/ftplugin/cpp.vim
@@ -0,0 +1,3 @@
+setlocal softtabstop=2
+setlocal tabstop=2
+setlocal shiftwidth=2
View
3 vim/ftplugin/css.vim
@@ -0,0 +1,3 @@
+setlocal softtabstop=2
+setlocal tabstop=2
+setlocal shiftwidth=2
View
4 vim/ftplugin/make.vim
@@ -0,0 +1,4 @@
+setlocal noexpandtab
+setlocal softtabstop=8
+setlocal tabstop=8
+setlocal shiftwidth=8
View
8 vimrc.link
@@ -30,11 +30,3 @@ else
let g:solarized_visibility="low"
colorscheme solarized
endif
-
-" ---------
-" Filetype specific fun
-" ---------
-if has('autocmd')
- autocmd FileType make setlocal noexpandtab " Use tabs in makefiles
- autocmd FileType css setlocal ts=2 sts=2 sw=2
-endif

0 comments on commit 4a99162

Please sign in to comment.
Something went wrong with that request. Please try again.