diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 00:12:19 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 00:12:19 +1200 |
commit | a3b40ca5c1086df59c688bba5f4896f572beec5f (patch) | |
tree | 3d63f95cf4021e4820ca98ec089033c0ef7ff8c7 /vim | |
parent | Group 'showmatch' and 'matchtime' meaningfully (diff) | |
download | dotfiles-a3b40ca5c1086df59c688bba5f4896f572beec5f.tar.gz dotfiles-a3b40ca5c1086df59c688bba5f4896f572beec5f.zip |
Adjust commentary around indent settings
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 |