diff options
author | shmibs <shmibs@gmail.com> | 2015-06-01 22:51:16 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2015-06-01 22:51:16 -0700 |
commit | 02d3a86a1107814616ac0da7b54d7a38cfc47ea7 (patch) | |
tree | 9413ed62becfc492963073453f22946855dd7f5e | |
parent | 0ad8bff89d05dab2f4d3d1f7badcec93bb5e9c43 (diff) | |
download | dotfiles-02d3a86a1107814616ac0da7b54d7a38cfc47ea7.tar.gz |
add filetype text
-rw-r--r-- | .vimrc | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -135,8 +135,11 @@ let g:c_no_if0_fold = 1 autocmd FileType asm call Settings_asm() autocmd FileType c call Settings_c() autocmd FileType cpp call Settings_c() +autocmd FileType css call Settings_c() autocmd FileType tex call Settings_tex() autocmd FileType haskell call Settings_haskell() +autocmd FileType html call Settings_html() +autocmd FileType xhtml call Settings_html() autocmd FileType make call Settings_script() autocmd FileType matlab call Settings_matlab() autocmd FileType nim call Settings_nim() @@ -145,6 +148,7 @@ autocmd FileType python call Settings_script() autocmd FileType ruby call Settings_script() autocmd FileType rust call Settings_rust() autocmd FileType sh call Settings_script() +autocmd FileType text call Settings_text() autocmd FileType vim call Settings_vim() autocmd FileType zsh call Settings_script() @@ -160,6 +164,7 @@ function! Settings_c() setlocal foldmethod=syntax setlocal shiftwidth=4 setlocal tabstop=4 + setlocal softtabstop=4 "mappings nnoremap <buffer> -- O<Space>*/<Esc>hhi/*<Space> endfunction @@ -170,6 +175,16 @@ function! Settings_haskell() nnoremap <buffer> -- O--<Space> endfunction +function! Settings_html() + "settings + setlocal foldmethod=syntax + setlocal shiftwidth=4 + setlocal tabstop=4 + setlocal softtabstop=4 + "mappings + nnoremap <buffer> -- O<Space>--><Esc>hhhi<!--<Space> +endfunction + function! Settings_matlab() "settings "mappings @@ -195,6 +210,7 @@ function! Settings_script() "settings setlocal shiftwidth=4 setlocal tabstop=4 + setlocal softtabstop=4 "mappings nnoremap <buffer> -- O#<Space> endfunction @@ -211,18 +227,28 @@ function! Settings_tex() setlocal nosmartindent setlocal shiftwidth=4 setlocal tabstop=4 - setlocal spell - let g:tex_comment_nospell=1 + setlocal softtabstop=4 "mappings nnoremap <buffer> -- O%<Space> nnoremap <buffer> <Leader>c :!latex -output-format=pdf "%"<CR><CR> nnoremap <buffer> <Leader>C :!latex -output-format=pdf "%"<CR> endfunction +function! Settings_text() + setlocal formatoptions+=ta + setlocal noautoindent + setlocal nocindent + setlocal nosmartindent + setlocal tabstop=4 + setlocal softtabstop=4 + setlocal spell +endfunction + function! Settings_vim() "settings setlocal shiftwidth=4 setlocal tabstop=4 + setlocal softtabstop=4 "mappings nnoremap <buffer> -- O" endfunction |