diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-04-10 09:23:20 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-04-10 09:23:20 +0000 |
commit | 4a1a2ed3d80d1a94cca24cfea04196778b9cb2ba (patch) | |
tree | 3670e337ec5e38d8e4900f58a900bfbc0390d7d6 /vimrc | |
parent | 5578f5529e692cc4cc30b010a04e67ae77a65856 (diff) |
Fix detect ident call
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@611 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'vimrc')
-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 |