mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
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>
This commit is contained in:
parent
0a29cfbf4f
commit
ce1f0bfa05
@ -117,6 +117,8 @@ set noshowcmd
|
|||||||
autocmd BufWritePre * let currPos = getpos(".")
|
autocmd BufWritePre * let currPos = getpos(".")
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
autocmd BufWritePre * %s/\n\+\%$//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])
|
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
|
||||||
|
|
||||||
" When shortcut files are updated, renew bash and ranger configs with new material:
|
" When shortcut files are updated, renew bash and ranger configs with new material:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user