summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-04-20 19:34:31 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-04-20 19:34:31 +0100
commit82fff2912a2835f1b8391aff4efdd8f6c63ab588 (patch)
tree2f9f4ac407d80655bd3ebaa13d44d9a80602d60c
parentcb59e9a5107f85e3bc0e11acd782ae5af515f11c (diff)
downloadinfra-82fff2912a2835f1b8391aff4efdd8f6c63ab588.tar.gz
infra-82fff2912a2835f1b8391aff4efdd8f6c63ab588.tar.bz2
infra-82fff2912a2835f1b8391aff4efdd8f6c63ab588.zip
Wrap text at 72 width for mail messages
-rw-r--r--misc/dotfiles/vimrc15
1 files changed, 9 insertions, 6 deletions
diff --git a/misc/dotfiles/vimrc b/misc/dotfiles/vimrc
index 3dd8336..2b78b0e 100644
--- a/misc/dotfiles/vimrc
+++ b/misc/dotfiles/vimrc
@@ -7,25 +7,28 @@ syntax on
" Expand tabs to spaces.
set expandtab
-" In Makefiles, don't expand tabs to spaces, since we need the actual tabs.
-autocmd FileType make setlocal noexpandtab
-
" Use four-space indentation by default.
set tabstop=4
set softtabstop=4
set shiftwidth=4
+" Limit text width.
+set textwidth=79
+
+" In Makefiles, don't expand tabs to spaces, since we need the actual tabs.
+autocmd FileType make setlocal noexpandtab
+
" Use two-space indentation for yaml files.
autocmd FileType yaml setlocal tabstop=2
autocmd FileType yaml setlocal softtabstop=2
autocmd FileType yaml setlocal shiftwidth=2
-" Limit text width.
-set textwidth=79
-
" Limit width to 72 columns for git commit messages.
autocmd FileType gitcommit setlocal textwidth=72
+" And mail messages as well.
+autocmd FileType mail setlocal textwidth=72
+
" Disable incremental search.
set noincsearch