From 7b3a596232bacafc2e2fa01866c872f0337ab68b Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 29 Apr 2024 21:20:11 +0800 Subject: [PATCH] feat(vimrc): tab=2 for c,cpp,nix,yaml --- .vimrc2 | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc2 b/.vimrc2 index 271c162..059c6c9 100644 --- a/.vimrc2 +++ b/.vimrc2 @@ -16,6 +16,7 @@ set autoindent set smartindent set expandtab "spaces instead of tabs set tabstop=4 softtabstop=4 shiftwidth=4 +autocmd FileType c,cpp,nix,yaml setlocal tabstop=2 softtabstop=2 shiftwidth=2 set backspace=indent,eol,start set number "line numbers set history=1000