From 42b26a34889bf150f677ef6584d81509fa776339 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 22 Feb 2018 14:24:54 +0100 Subject: [BIG] Clean up the config --- plugin/indent.vim | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'plugin/indent.vim') diff --git a/plugin/indent.vim b/plugin/indent.vim index 1b11d92..e9063d7 100755 --- a/plugin/indent.vim +++ b/plugin/indent.vim @@ -1,34 +1,43 @@ " indent.vim " Defines indentation behavior -set softtabstop=4 -set shiftwidth=4 -set tabstop=4 +set softtabstop=2 +set shiftwidth=2 +set tabstop=2 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 javascript set omnifunc=javascriptcomplete#CompleteJS + + +"python stuff" autocmd FileType python set tabstop=4 softtabstop=4 shiftwidth=4 autocmd FileType python set textwidth=79 expandtab autoindent +autocmd FileType python set omnifunc=pythoncomplete#Complete + + + +"C/C++ stuff" +autocmd FileType c set tabstop=4 softtabstop=4 shiftwidth=4 +autocmd FileType c set expandtab autoindent +autocmd FileType cpp set tabstop=4 softtabstop=4 shiftwidth=4 +autocmd FileType cpp set expandtab autoindent + +"Html stuff +autocmd FileType html set omnifunc=htmlcomplete#CompleteTags +autocmd FileType css set omnifunc=csscomplete#CompleteCSS -set fileformat=unix au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ -" -" + -- cgit v1.2.3