From 1ff2c8bc63f34463105062aefb709e0949f9577b Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 14 Mar 2017 01:09:24 +0100 Subject: indent improvement for javascript and python code --- plugin/indent.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'plugin') diff --git a/plugin/indent.vim b/plugin/indent.vim index e5f1118..8191d82 100755 --- a/plugin/indent.vim +++ b/plugin/indent.vim @@ -8,3 +8,27 @@ set expandtab set smarttab set autoindent + + + +highlight BadWhitespace ctermbg=red guibg=red +set hlsearch + + +" make backspaces more powerfull +set backspace=indent,eol,start + + + + +"js stuff" +autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 +autocmd FileType python set tabstop=2 softtabstop=2 shiftwidth=2 +autocmd FileType python set textwidth=79 expandtab autoindent + + +set fileformat=unix + +au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ +" +" -- cgit v1.2.3