diff options
| author | Spenser Truex <greetings@spensertruex.com> | 2023-05-25 03:40:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-25 03:40:55 +0000 |
| commit | ce1f0bfa0597881a640ef32b5334087425d65d16 (patch) | |
| tree | fdc47b0e731936f86bde19bc32a8ca528e02427b /.config | |
| parent | 0a29cfbf4facff29569535040a4ce90f2f033dd3 (diff) | |
| download | eibhear-ce1f0bfa0597881a640ef32b5334087425d65d16.tar.gz eibhear-ce1f0bfa0597881a640ef32b5334087425d65d16.tar.zst eibhear-ce1f0bfa0597881a640ef32b5334087425d65d16.zip | |
Re-add whitespace to some buffer types as needed. (#1333)
Very arcane.
C ANSI standard requires a newline at the end. GCC will complain.
Email signatures should have a space after the -- according to the
standard. Neomutt does this automatically for you if you have a
signature.
Co-authored-by: Spenser Truex <truex@equwal.com>
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/init.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index d9c6fe6..5b0bd4e 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -117,6 +117,8 @@ set noshowcmd autocmd BufWritePre * let currPos = getpos(".") autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\n\+\%$//e + autocmd BufWritePre *.[ch] %s/\%$/\r/e " add trailing newline for ANSI C standard + autocmd BufWritePre *neomutt* %s/^--$/-- /e " dash-dash-space signature delimiter in emails autocmd BufWritePre * cal cursor(currPos[1], currPos[2]) " When shortcut files are updated, renew bash and ranger configs with new material: |
