aserebryakov / filestyle

filestyle is a Vim plugin that highlights unwanted whitespace and characters.
http://www.vim.org/scripts/script.php?script_id=5065
Apache License 2.0
30 stars 5 forks source link

Update highlights after textwidth has been changed #27

Closed Markus00000 closed 9 years ago

Markus00000 commented 9 years ago

If highlights are not updated after changing textwidth, filestyle will incorrectly highlight long lines.

aserebryakov commented 9 years ago

This action requires to recreate highlight groups. Unfortunately there is no autocommand that can be used. As a workaround at the moment call FileStyleCreateHighlightGroups() can be used.

Anyway it requires an explicit call of some funciton that will recreate highight groups and will call FileStyleCheck.

aserebryakov commented 9 years ago

There is no autocommand that can handle a case of changed textwidth, so this case can not be handled and user have to execute a command :FileStyleCheck.

Issue will not be fixed, the only thing that can be done is mention it in a plug-in documentation.