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/vim.vim | 5 ----- 1 file changed, 5 deletions(-) (limited to 'after/ftplugin/vim.vim') diff --git a/after/ftplugin/vim.vim b/after/ftplugin/vim.vim index 77022da..4e9a2a4 100644 --- a/after/ftplugin/vim.vim +++ b/after/ftplugin/vim.vim @@ -12,9 +12,4 @@ set foldmethod=expr foldexpr=utils#VimFolds(v:lnum) foldtext=utils#MyFoldText() " see `:h K` and https://stackoverflow.com/q/15867323/6064933 set keywordprg=:help -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 - nnoremap :source % -- cgit v1.2.3