[Vim] Syntax highlighting more than 3000 characters : Editors
This is a discussion on [Vim] Syntax highlighting more than 3000 characters within the Editors forums in Theory and Concepts category; Hello. Vim stops its syntax hightlighting after the 3000th character of a line. This is a very sensible setting, and I wouldn't want to change the default. However, some files (for example, minified JavaScript files) only have a single long line, which makes them very hard to read. Sometimes I'd like to increase the 3000 character limit after opening such a file, if it isn't too long. Is there a setting to change the limit, similar to "syn sync minlines"? - Conrad...
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| Vim stops its syntax hightlighting after the 3000th character of a line. This is a very sensible setting, and I wouldn't want to change the default. However, some files (for example, minified JavaScript files) only have a single long line, which makes them very hard to read. Sometimes I'd like to increase the 3000 character limit after opening such a file, if it isn't too long. Is there a setting to change the limit, similar to "syn sync minlines"? - Conrad |
|
#2
| |||
| |||
| On 02/11/08 21:52, Conrad Lender wrote: > Hello. > > Vim stops its syntax hightlighting after the 3000th character of a line. > This is a very sensible setting, and I wouldn't want to change the > default. However, some files (for example, minified JavaScript files) > only have a single long line, which makes them very hard to read. > Sometimes I'd like to increase the 3000 character limit after opening > such a file, if it isn't too long. > > Is there a setting to change the limit, similar to "syn sync minlines"? > > > - Conrad see :help 'synmaxcol' Best regards, Tony. -- Accidents cause History. If Sigismund Unbuckle had taken a walk in 1426 and met Wat Tyler, the Peasant's Revolt would never have happened and the motor car would not have been invented until 2026, which would have meant that all the oil could have been used for lamps, thus saving the electric light bulb and the whale, and nobody would have caught Moby Dick or Billy Budd. -- Mike Harding, "The Armchair Anarchist's Almanac" |
|
#3
| |||
| |||
| On 2008-11-02 22:06, Tony Mechelynck wrote: >> Is there a setting to change the limit, similar to "syn sync minlines"? > see :help 'synmaxcol' Thanks! - Conrad |


