X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.vimrc;h=c4e396cc393523f8c4014a525f518d21445bbfe9;hp=b25ff63f9d891c1088edfe5d6110d9e1c475dea6;hb=8f07462da993224ab6e265a34f49915a76ddb3a4;hpb=cf1fcbf3b80158230383b27776ca768899b3a52b diff --git a/.vimrc b/.vimrc index b25ff63..c4e396c 100644 --- a/.vimrc +++ b/.vimrc @@ -612,6 +612,7 @@ if executable('chmod') echoerr 'Error running chmod: ' . v:shell_error endif checktime + autocmd! FileChangedShell endfunction function! _BufChangedCB() autocmd! FileChangedShell @@ -619,6 +620,15 @@ if executable('chmod') command! ToggleXbit if executable(expand("%:p")) | call SetExecutableBit(0) | else | call SetExecutableBit(1) | endif endif +function! Code() + setlocal tabstop=8 softtabstop=4 shiftwidth=4 expandtab +endfunction +command! Code call Code() + +function! Text() + setlocal tabstop=8 softtabstop=3 shiftwidth=3 expandtab +endfunction +command! Text call Text() " ---------- " From http://slobin.pp.ru/vim/_vimrc.html