From 3539207913f6ecf8ce11a9d59f35ab82349a399b Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 15 Oct 2022 11:26:13 +0800 Subject: use 2 spaces for tabs by default This removes a lot of code duplication. If we want to use 4 spaces, we can set it separately in their ftplugin settings. --- core/options.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/options.vim') diff --git a/core/options.vim b/core/options.vim index 13a0133..79757a8 100644 --- a/core/options.vim +++ b/core/options.vim @@ -44,9 +44,9 @@ set backup " create backup for files set backupcopy=yes " copy the original file to backupdir and overwrite it " General tab settings -set tabstop=4 " number of visual spaces per TAB -set softtabstop=4 " number of spaces in tab when editing -set shiftwidth=4 " number of spaces to use for autoindent +set tabstop=2 " number of visual spaces per TAB +set softtabstop=2 " number of spaces in tab when editing +set shiftwidth=2 " number of spaces to use for autoindent set expandtab " expand tab to spaces so that tabs are spaces " Set matching pairs of characters and highlight matching brackets -- cgit v1.2.3