From 07f6e3bb1a7729118ed84fa467e6a31a373f10aa Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 18 Oct 2018 05:31:43 -0700 Subject: add yaml settings --- .vimrc | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.vimrc b/.vimrc index 7c0fe43..0baeb69 100644 --- a/.vimrc +++ b/.vimrc @@ -284,6 +284,7 @@ autocmd FileType scss call Settings_css() autocmd FileType sh call Settings_script() autocmd FileType text call Settings_text() autocmd FileType vim call Settings_vim() +autocmd FileType yaml call Settings_script2() autocmd FileType zsh call Settings_shell() "command for reading filetype skeletons @@ -338,13 +339,8 @@ function! Settings_c() endfunction function! Settings_coffee() - "settings + call Settings_script2() setlocal foldmethod=syntax - setlocal shiftwidth=2 - setlocal tabstop=2 - setlocal softtabstop=2 - "mappings - nnoremap -- O# nnoremap -_ O######O endfunction @@ -363,12 +359,7 @@ function! Settings_css() endfunction function! Settings_elixir() - "settings - setlocal shiftwidth=2 - setlocal tabstop=2 - setlocal softtabstop=2 - "mappings - nnoremap -- O# + call Settings_script2() inoremap do endhhidoO endfunction @@ -451,6 +442,15 @@ function! Settings_script() nnoremap -- O# endfunction +function! Settings_script2() + "settings + setlocal shiftwidth=2 + setlocal tabstop=2 + setlocal softtabstop=2 + "mappings + nnoremap -- O# +endfunction + function! Settings_perl() call Settings_script() inoremap { }i{O @@ -508,4 +508,9 @@ function! Settings_vim() nnoremap -- O" endfunction +function! Settings_yaml() + call Settings_script2() + setlocal expandtab +endfunction + endif "autocmd -- cgit v1.2.3