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. --- after/ftplugin/python.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'after/ftplugin/python.vim') diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index adda6d4..185aa6e 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -8,5 +8,10 @@ set sidescroll=5 set sidescrolloff=2 set colorcolumn=100 +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 expandtab " expand tab to spaces so that tabs are spaces + " For delimitMate let b:delimitMate_matchpairs = "(:),[:],{:}" -- cgit v1.2.3