From 3b14041185c96f3e3fe420e50f69c84f8a82b565 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 11 Feb 2014 16:01:50 +0400 Subject: [PATCH] Indents for sh-files added --- .vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.vimrc b/.vimrc index 6fc4855..a8af793 100644 --- a/.vimrc +++ b/.vimrc @@ -33,6 +33,12 @@ function! CppIndent() setlocal noexpandtab endfunction +" Setup for the Sh coding format standard +function! ShIndent() + setlocal shiftwidth=4 + setlocal tabstop=4 + setlocal noexpandtab +endfunction " Setup for the Vala coding format standard function! ValaIndent() @@ -42,6 +48,7 @@ endfunction au FileType c call GnuIndent() au FileType cpp call CppIndent() au FileType vala,vapi call ValaIndent() +au FileType sh call ShIndent() " отключение бэкапов set nobackup