init: Change indent settings
[vimconf.git] / init.vim
index f840aca45f21043b0d2eb2815d1035999a9c7e87..52bce1887ae08ac93c5633aeb12e6e020eed8dcf 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -7,17 +7,21 @@ set number
 set cursorline
 set scrolloff=5
 
-
 set encoding=utf-8
 
 set listchars=tab:»­,trail:·,eol:$
 set virtualedit=block
 
+filetype plugin indent on
+
 set tabstop=4
 set shiftwidth=4
 set expandtab
 set smarttab
 
+set autoindent
+set smartindent
+
 set incsearch
 set hlsearch
 
@@ -30,7 +34,6 @@ if has('nvim')
 end
 
 syntax on
-filetype plugin indent on
 runtime plugsetup.vim
 
 let g:airline_powerline_fonts=1
@@ -72,7 +75,7 @@ let g:vim_markdown_frontmatter=1
 let g:vim_markdown_math=1
 
 let g:guesslang_langs=[ 'en_US', 'de_AT']
-au FileType text,markdown,mail,tex setlocal spell
+au FileType text,markdown,mail,tex,gitcommit setlocal spell
 au BufReadPost * :DetectIndent
 
 au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.'
@@ -97,7 +100,7 @@ au Filetype tex set shiftwidth=2
 au BufRead,BufNewFile *.plt set filetype=gnuplot
 
 :let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'],
-      \ ['|', 'OBSOLETE(o)'],
+      \ ['|', 'OBSOLETE(o)', 'WONT(n)'],
       \ ['CANCELED(c)']]
 
 " Trailing whitespace