editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.13k stars 137 forks source link

Change line colorcolumn setting to not overwrite #164

Closed kmoschcau closed 1 year ago

kmoschcau commented 3 years ago

This changes the modification of the 'colorcolumn' setting to not be overwritten, but instead expanded when g:EditorConfig_max_line_indicator is set to "line". This will preserve the previously set value. Also instead of calculating the column ourselves, we let Vim do it, by adding "+1" to the colorcolumn setting.

This should fix issue #158.