diff options
| author | jdhao <jdhao@hotmail.com> | 2022-10-15 11:26:13 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-10-15 11:28:15 +0800 |
| commit | 3539207913f6ecf8ce11a9d59f35ab82349a399b (patch) | |
| tree | 84e9962983e6bb399cfdd522281df2471981ce34 /after/ftplugin/cpp.vim | |
| parent | d8b92965e891c5d05f65542383c087871175c27f (diff) | |
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.
Diffstat (limited to 'after/ftplugin/cpp.vim')
| -rw-r--r-- | after/ftplugin/cpp.vim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/after/ftplugin/cpp.vim b/after/ftplugin/cpp.vim index 170aa5f..a8f76f3 100644 --- a/after/ftplugin/cpp.vim +++ b/after/ftplugin/cpp.vim @@ -1,10 +1,5 @@ set commentstring=//\ %s -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 - " Disable inserting comment leader after hitting o or O or <Enter> set formatoptions-=o set formatoptions-=r |
