From aab02ca1d3f40c91d39222f5ee84dab187d8da0e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 12:01:59 +1300 Subject: Remove setting for 'tabstop' :help 'tabstop' says that setting it may be a bad idea: > Note: Setting 'tabstop' to any other value than 8 can make your file > appear wrong in many places (e.g., when printing it). On thinking about it, it's actually probably better to show literal tabs as eight screen spaces, as it will make it very obvious when there are tabs in the file. --- vim/config/indent.vim | 3 --- 1 file changed, 3 deletions(-) (limited to 'vim/config/indent.vim') diff --git a/vim/config/indent.vim b/vim/config/indent.vim index f6dfd416..aba4bbf7 100644 --- a/vim/config/indent.vim +++ b/vim/config/indent.vim @@ -11,9 +11,6 @@ set shiftwidth=4 " Insert four spaces when Tab is pressed set softtabstop=4 -" How many spaces to show for a literal tab when 'list' is unset -set tabstop=4 - " Indent intelligently to 'shiftwidth' at the starts of lines with Tab, but " use 'tabstop' everywhere else set smarttab -- cgit v1.2.3 From c3b2cf6b18d1ae408ff7f0eb685bf4a2281f39bf Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 13:19:54 +1300 Subject: Merge join,indent.vim into whitespace.vim --- vim/config/indent.vim | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 vim/config/indent.vim (limited to 'vim/config/indent.vim') diff --git a/vim/config/indent.vim b/vim/config/indent.vim deleted file mode 100644 index aba4bbf7..00000000 --- a/vim/config/indent.vim +++ /dev/null @@ -1,21 +0,0 @@ -" Adopt the indent of the last line on new lines; interestingly, plugins that -" do clever things with indenting will often assume this is set -set autoindent - -" Use spaces instead of tabs -set expandtab - -" Indent with four spaces when an indent operation is used -set shiftwidth=4 - -" Insert four spaces when Tab is pressed -set softtabstop=4 - -" Indent intelligently to 'shiftwidth' at the starts of lines with Tab, but -" use 'tabstop' everywhere else -set smarttab - -" When indenting lines with < or >, round the indent to a multiple of -" 'shiftwidth', so even if the line is indented by one space it will indent -" up to 4 and down to 0, for example -set shiftround -- cgit v1.2.3