From 5a1a09f659b79725d187f56227ccc49d24c12347 Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 23 Nov 2018 00:39:33 -0700 Subject: more file handling --- .vim/ftdetect/tex.vim | 2 ++ .vimrc | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .vim/ftdetect/tex.vim diff --git a/.vim/ftdetect/tex.vim b/.vim/ftdetect/tex.vim new file mode 100644 index 0000000..de66b8f --- /dev/null +++ b/.vim/ftdetect/tex.vim @@ -0,0 +1,2 @@ +"mips asm suffixed with .mips +au! BufRead,BufNewFile *.tex set filetype=tex diff --git a/.vimrc b/.vimrc index d55f0bb..382f661 100644 --- a/.vimrc +++ b/.vimrc @@ -290,7 +290,7 @@ if has("autocmd") au FileType coffee call Settings_coffee() au FileType conf call Settings_conf() au FileType cpp call Settings_c() - au FileType crystal call Settings_script2() + au FileType crystal call Settings_crystal() au FileType cs call Settings_c() au FileType css call Settings_css() au FileType d call Settings_c() @@ -392,6 +392,11 @@ function! Settings_conf() setlocal expandtab endfunction +function! Settings_crystal() + call Settings_script2() + setlocal expandtab +endfunction + function! Settings_css() call Settings_c() "settings @@ -562,11 +567,6 @@ function! Settings_vim() nnoremap -- O" endfunction -function! Settings_yaml() - call Settings_script2() - setlocal expandtab -endfunction - function! Settings_z80() "settings setlocal shiftwidth=6 -- cgit v1.2.3