From 60cf7ac30d52c69bb8e156a309d8105a2d9025e5 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 9 Jun 2016 03:36:41 -0700 Subject: update vimrc filetype funcs --- .vimrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index b828ad4..ca3bc1b 100644 --- a/.vimrc +++ b/.vimrc @@ -223,11 +223,12 @@ autocmd BufNewFile,BufRead *.tex set filetype=tex "the FileTypes in one dict (mostly because i have no idea what i'm "doing with viml), so separate lines it is. autocmd FileType asm call Settings_asm() +autocmd FileType bash call Settings_script() autocmd FileType c call Settings_c() autocmd FileType coffee call Settings_coffee() autocmd FileType conf call Settings_conf() autocmd FileType cpp call Settings_c() -autocmd FileType css call Settings_c() +autocmd FileType css call Settings_css() autocmd FileType d call Settings_c() autocmd FileType elixir call Settings_elixir() autocmd FileType tex call Settings_tex() @@ -243,6 +244,7 @@ autocmd FileType php call Settings_html() autocmd FileType python call Settings_script() autocmd FileType ruby call Settings_script() autocmd FileType rust call Settings_rust() +autocmd FileType scss call Settings_css() autocmd FileType sh call Settings_script() autocmd FileType text call Settings_text() autocmd FileType vim call Settings_vim() @@ -280,6 +282,15 @@ function! Settings_conf() setlocal expandtab endfunction +function! Settings_css() + call Settings_c() + "settings + setlocal shiftwidth=2 + setlocal tabstop=2 + setlocal softtabstop=2 + "mappings +endfunction + function! Settings_elixir() "settings setlocal shiftwidth=2 -- cgit v1.2.3