3
1
I have textwidth
set to 80 characters, and I have it set to 75 characters for gitcommit
files.
The thing is, the git commits at my company always have a last line that indicates some metadata about the commit (whether to bump the version number, the ticket associated, etc...). What I'd like to do is turn off the textwidth for this last line. This last line will always begin with "(patch)", "(minor)", or "(major)" (for semver autopublishing).
I currently have it so that this metadata line is highlighted, using the following in my syntax file:
syn match autoPublishLine "^\((patch)\|(minor)\|(major)\).*"
hi def link autoPublishLine Special
This works as I expect it to, but what I'd really like to do is also unset the textwidth for this line, so it doesn't wrap words for this one line.
Any idea how I might go about this?
Awesome. That plugin was exactly what I was looking for. Thank you! – jwir3 – 2017-10-13T17:23:39.463