diff options
author | katherine <shmibs@shmibbles.me> | 2018-10-18 05:31:43 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2018-10-18 05:31:43 -0700 |
commit | 07f6e3bb1a7729118ed84fa467e6a31a373f10aa (patch) | |
tree | d805607efcbb75554dce752bbdf749d09c341d8a | |
parent | 243639a43b1ef0c15230641ee9debe8eeec3952b (diff) | |
download | dotfiles-07f6e3bb1a7729118ed84fa467e6a31a373f10aa.tar.gz |
add yaml settings
-rw-r--r-- | .vimrc | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -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 |