Commit 1e74fd67 authored by Elouan Martinet's avatar Elouan Martinet

vim: fix settings for any file type

parent ec990245
call DefaultFileType()
setlocal et ts=2
call DefaultFileType()
setlocal noet ts=4 tw=80 cc=+1
call DefaultFileType()
setlocal et ts=4
call DefaultFileType()
setlocal et ts=2
call DefaultFileType()
setlocal et ts=2
call DefaultFileType()
setlocal noet ts=4
call DefaultFileType()
setlocal et ts=4
call DefaultFileType()
setlocal noet ts=4
call DefaultFileType()
setlocal et ts=2
call DefaultFileType()
setlocal et ts=2
......@@ -59,6 +59,8 @@ let g:indent_guides_enable_on_vim_startup = 1
" file types
filetype plugin indent on " must be run early
set fo-=c fo-=r noet ts=4 sts=0 sw=0
function! DefaultFileType()
......@@ -69,7 +71,7 @@ endfunction
augroup filetypesconfig
autocmd!
autocmd BufReadPre,FileReadPre * call DefaultFileType()
autocmd BufNewFile,BufReadPre,FileReadPre * call DefaultFileType()
autocmd FileType * call DefaultFileType()
autocmd BufNewFile,BufReadPost *.sch setlocal ft=xml
......
syntax on
filetype plugin indent on
set autoindent
set autoread
set backspace=indent,eol,start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment