From c8530d0622d11e9d4841be40627535ac5667bf22 Mon Sep 17 00:00:00 2001 From: micbou Date: Thu, 28 Sep 2017 12:15:30 +0200 Subject: [PATCH] Add instruction on how to highlight lines without Vim gutter --- README.md | 11 +++++++++-- doc/youcompleteme.txt | 10 +++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ee72af1f..3aea99dd 100644 --- a/README.md +++ b/README.md @@ -1420,8 +1420,15 @@ You can also style the line that has the warning/error with these groups: - `YcmWarningLine`, which falls back to group `SyntasticWarningLine` if it exists -Note that the line highlighting groups only work when gutter signs are turned -on. +Note that the line highlighting groups only work when the +[`g:ycm_enable_diagnostic_signs`](#the-gycm_enable_diagnostic_signs-option) +option is set. If you want highlighted lines but no signs in the Vim gutter, +ensure that your Vim version is 7.4.2201 or later and set the `signcolumn` +option to `off` in your vimrc: + +```viml +set signcolumn=off +``` The syntax groups used to highlight regions of text with errors/warnings: - `YcmErrorSection`, which falls back to group `SyntasticError` if it exists and diff --git a/doc/youcompleteme.txt b/doc/youcompleteme.txt index eab09d2d..57f98bae 100644 --- a/doc/youcompleteme.txt +++ b/doc/youcompleteme.txt @@ -1656,9 +1656,13 @@ You can also style the line that has the warning/error with these groups: - 'YcmWarningLine', which falls back to group 'SyntasticWarningLine' if it exists -Note that the line highlighting groups only work when gutter signs are turned -on. - +Note that the line highlighting groups only work when the +|g:ycm_enable_diagnostic_signs| option is set. If you want highlighted lines +but no signs in the Vim gutter, ensure that your Vim version is 7.4.2201 or +later and set the 'signcolumn' option to 'off' in your vimrc: +> + set signcolumn=off +< The syntax groups used to highlight regions of text with errors/warnings: - 'YcmErrorSection', which falls back to group 'SyntasticError' if it exists and then 'SpellBad' - 'YcmWarningSection', which falls back to group