diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-03-09 10:40:45 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-03-09 10:40:45 +0000 |
commit | df957c62599ef8ea186a555cd241f9c6c7aca059 (patch) | |
tree | c931e00a01019491f52d1dc69f034db2498271af /misc/dotfiles/vimrc | |
parent | a4bdc09d5e6ff3643aef9daff94931def6942fae (diff) | |
download | infra-df957c62599ef8ea186a555cd241f9c6c7aca059.tar.gz infra-df957c62599ef8ea186a555cd241f9c6c7aca059.tar.bz2 infra-df957c62599ef8ea186a555cd241f9c6c7aca059.zip |
Limit git commit messages width to 72 characters
Diffstat (limited to 'misc/dotfiles/vimrc')
-rw-r--r-- | misc/dotfiles/vimrc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/dotfiles/vimrc b/misc/dotfiles/vimrc index ac02df6..3dd8336 100644 --- a/misc/dotfiles/vimrc +++ b/misc/dotfiles/vimrc @@ -7,14 +7,14 @@ 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 -" 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 @@ -23,6 +23,9 @@ 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 + " Disable incremental search. set noincsearch |