Added rules for bash scripts
This commit is contained in:
parent
6e0a0205e7
commit
9b0bc5f034
12
.vimrc
12
.vimrc
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue