From 8f07462da993224ab6e265a34f49915a76ddb3a4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 16 May 2019 03:53:31 +0300 Subject: [PATCH] .vimrc: Add functions `Code`/`Text` --- .vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vimrc b/.vimrc index f30bb39..c4e396c 100644 --- 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 -- 2.39.5