aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:12:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:12:19 +1200
commita3b40ca5c1086df59c688bba5f4896f572beec5f (patch)
tree3d63f95cf4021e4820ca98ec089033c0ef7ff8c7 /vim
parentGroup 'showmatch' and 'matchtime' meaningfully (diff)
downloaddotfiles-a3b40ca5c1086df59c688bba5f4896f572beec5f.tar.gz
dotfiles-a3b40ca5c1086df59c688bba5f4896f572beec5f.zip
Adjust commentary around indent settings
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc17
1 files changed, 9 insertions, 8 deletions
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.
"
" <https://sanctum.geek.nz/blinkenlights/spaces.webm>
"
+" 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