]> gitweb.factorcode.org Git - factor.git/commit
[misc] vim: Hygenic text width highlights
authorDusk <me@bb010g.com>
Fri, 29 May 2020 23:47:22 +0000 (16:47 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 7 Jun 2020 00:10:18 +0000 (00:10 +0000)
commit710b54869abb5077e7feb348b9d31fead79649e9
tree6dcf246da4dd154640b6b4d28c17227500d9f3a5
parent35681032d9a615db4e2b5b1646fc2bcf64f401b0
[misc] vim: Hygenic text width highlights

This lets Factor's overly long line highlighting avoid bleeding over
into documentation source buffers, or buffers of other non-Factor file
types entirely. Also, by taking `:2match` instead of `:match`,
clobbering of most user matches (or vice versa) can be avoided.

Unfortunately, the highlighting effects all windows in a multi-buffer
split setup, but since we can't reasonably make this a `:syntax match`
group, it'll have to do. (And this behavior isn't new.)
.gitattributes
misc/vim/ftdetect/factor.vim
misc/vim/ftplugin/factor-docs.vim [new file with mode: 0644]
misc/vim/ftplugin/factor.vim