]> git.phdru.name Git - dotfiles.git/commitdiff
.vimrc: Add functions `Code`/`Text`
authorOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 00:53:31 +0000 (03:53 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 00:53:31 +0000 (03:53 +0300)
.vimrc

diff --git a/.vimrc b/.vimrc
index f30bb3991f16349fa1028cb9b8e9e83b072a7671..c4e396cc393523f8c4014a525f518d21445bbfe9 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -620,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