aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-10-18 05:31:43 -0700
committerkatherine <shmibs@shmibbles.me>2018-10-18 05:31:43 -0700
commit07f6e3bb1a7729118ed84fa467e6a31a373f10aa (patch)
treed805607efcbb75554dce752bbdf749d09c341d8a
parent243639a43b1ef0c15230641ee9debe8eeec3952b (diff)
downloaddotfiles-07f6e3bb1a7729118ed84fa467e6a31a373f10aa.tar.gz
add yaml settings
-rw-r--r--.vimrc29
1 files 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 <buffer> -- O#<Space>
nnoremap <buffer> -_ O###<CR><C-u>###<Esc>O<C-u>
endfunction
@@ -363,12 +359,7 @@ function! Settings_css()
endfunction
function! Settings_elixir()
- "settings
- setlocal shiftwidth=2
- setlocal tabstop=2
- setlocal softtabstop=2
- "mappings
- nnoremap <buffer> -- O#<Space>
+ call Settings_script2()
inoremap <buffer> do<CR> end<Esc>hhido<CR><Esc>O
endfunction
@@ -451,6 +442,15 @@ function! Settings_script()
nnoremap <buffer> -- O#<Space>
endfunction
+function! Settings_script2()
+ "settings
+ setlocal shiftwidth=2
+ setlocal tabstop=2
+ setlocal softtabstop=2
+ "mappings
+ nnoremap <buffer> -- O#<Space>
+endfunction
+
function! Settings_perl()
call Settings_script()
inoremap <buffer> {<CR> }<Esc>i{<CR><Esc>O
@@ -508,4 +508,9 @@ function! Settings_vim()
nnoremap <buffer> -- O"
endfunction
+function! Settings_yaml()
+ call Settings_script2()
+ setlocal expandtab
+endfunction
+
endif "autocmd