Added rules for bash scripts

This commit is contained in:
Serĉanto de Scio 2018-01-17 16:29:03 +10:00
parent 6e0a0205e7
commit 9b0bc5f034
No known key found for this signature in database
GPG key ID: B41FA6FF04CE4B93

12
.vimrc
View file

@ -114,7 +114,7 @@ function! MuttSettings()
set shiftwidth=4 set shiftwidth=4
set expandtab set expandtab
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead mutt-* :call MarkdownSettings() autocmd BufNewFile,BufFilePre,BufRead mutt-* :call MuttSettings()
" Settings for my C environment: " Settings for my C environment:
function! CSettings() function! CSettings()
@ -133,3 +133,13 @@ function! YAMLSettings()
set textwidth=79 set textwidth=79
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead *.yaml :call YAMLSettings() autocmd BufNewFile,BufFilePre,BufRead *.yaml :call YAMLSettings()
" Settings for my Python environment:
function! BashSettings()
set tabstop=4
set shiftwidth=4
set expandtab
set textwidth=79
set spell!
endfunction
autocmd BufNewFile,BufFilePre,BufRead *.sh :call BashSettings()