From a3b40ca5c1086df59c688bba5f4896f572beec5f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 9 Jun 2019 00:12:19 +1200 Subject: Adjust commentary around indent settings --- vim/vimrc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 0fd6dea9..bdee108d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -148,18 +148,19 @@ if exists('##SourceCmd') \|endif endif -" Global indent and other whitespace-related settings go here. Filetype -" indent plugins will often refine these settings for individual buffers. For -" example, 'expandtab' is not appropriate for Makefiles, nor for the Go -" programming language. For another, two-space indents are more traditional -" for Vim script. " -" In general, however, I prefer spaces to tabs as a default, and I like to use -" four of them, for a more distinct visual structure. Should you happen to -" disagree with this, I cordially invite you to fite me irl. +" Next, we'll adjust the global indentation settings. In general and as +" a default, I prefer spaces to tabs, and I like to use four of them, for +" a more distinct visual structure. Should you happen to disagree with this, +" I cordially invite you to fite me irl. " " " +" Filetype indent plugins will often refine these settings for individual +" buffers. For example, 'expandtab' is not appropriate for Makefiles, nor for +" the Go programming language. For another, two-space indents are more +" traditional for Vim script. +" set autoindent " Use indent of previous line on new lines set expandtab " Insert spaces when tab key is pressed in insert mode set shiftwidth=4 " Indent command like < and > use four-space indents -- cgit v1.2.3