aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc15
1 files changed, 3 insertions, 12 deletions
diff --git a/vimrc b/vimrc
index dbac504..0c4099e 100644
--- a/vimrc
+++ b/vimrc
@@ -119,18 +119,9 @@ source ~/.vim/bundles.vim
filetype plugin indent on
""
-" Filetypes
-
-" Some rules regarding indentation on different languages.
-autocmd FileType ruby set shiftwidth=2
-autocmd FileType perl set shiftwidth=4 tabstop=4
-autocmd FileType c set shiftwidth=4 tabstop=4
-autocmd FileType yacc set shiftwidth=4 tabstop=4
-autocmd FileType go set shiftwidth=4 tabstop=4
-autocmd FileType go autocmd BufWritePre <buffer> Fmt
-
-" Clean up trailing whitespaces on save.
-autocmd BufWritePre * :%s/\s\+$//e
+" Everything regarding filetypes: indentation rules, gofmt & friends.
+
+source ~/.vim/autocmd.vim
""
" Re-mappings