diff options
author | katherine <shmibs@shmibbles.me> | 2018-11-23 00:39:33 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2018-11-23 00:39:33 -0700 |
commit | 5a1a09f659b79725d187f56227ccc49d24c12347 (patch) | |
tree | acb4dded730354ed2ab1dcd2a71b2eb5e8715caa | |
parent | 36dac6212b2b656b731298bed1eb6332a40babdf (diff) | |
download | dotfiles-5a1a09f659b79725d187f56227ccc49d24c12347.tar.gz |
more file handling
-rw-r--r-- | .vim/ftdetect/tex.vim | 2 | ||||
-rw-r--r-- | .vimrc | 12 |
2 files changed, 8 insertions, 6 deletions
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 @@ -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 <buffer> -- O" endfunction -function! Settings_yaml() - call Settings_script2() - setlocal expandtab -endfunction - function! Settings_z80() "settings setlocal shiftwidth=6 |