diff options
-rw-r--r-- | vimrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -34,7 +34,12 @@ set wildmode=longest,list:longest,list:full set spellfile=~/.vim.spell.en.add :nmap <F8> :set invspell<return> :imap <F8> <C-O>:set invspell<return> -:autocmd BufReadPost * if exists(":DetectIndent") | :DetectIndent | endif +function WeaselDoIdent() + if exists(":DetectIndent") + DetectIndent + endif +endfunction +:autocmd BufReadPost * exec WeaselDoIdent() " "hi Search cterm=NONE ctermfg=white ctermbg=darkgreen hi Search cterm=NONE ctermfg=yellow ctermbg=19 |