commit d89fe82d3669fed1a8b04d0428f092d591e1ed07
parent 38c680c47836de4f3571d715cf205e1d6ff9c4f1
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 22 Jun 2020 12:22:16 +0200
vim: indentation settings
Former-commit-id: ca561fb54ce71c21eefb8987f31bfede039ac22a
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -598,10 +598,10 @@ set relativenumber
set smarttab
" and 1 tab == 2 spaces
-set tabstop=4 " visual length of \t in spaces
+set tabstop=8 " visual length of \t in spaces, should be left at 8
set expandtab " use spaces instead of tabs
+set softtabstop=4 " 4 spaces inserted when TAB pressed
set shiftwidth=2 " 2 spaces when >>
-set softtabstop=2 " and when pressing TAB
set shiftround " always shift by multiple of shiftwidth
" Auto indent when starting new line