Add instruction on how to highlight lines without Vim gutter

This commit is contained in:
micbou 2017-09-28 12:15:30 +02:00
parent 113787cc20
commit c8530d0622
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05
2 changed files with 16 additions and 5 deletions

View File

@ -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 - `YcmWarningLine`, which falls back to group `SyntasticWarningLine` if it
exists exists
Note that the line highlighting groups only work when gutter signs are turned Note that the line highlighting groups only work when the
on. [`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: The syntax groups used to highlight regions of text with errors/warnings:
- `YcmErrorSection`, which falls back to group `SyntasticError` if it exists and - `YcmErrorSection`, which falls back to group `SyntasticError` if it exists and

View File

@ -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 - 'YcmWarningLine', which falls back to group 'SyntasticWarningLine' if it
exists exists
Note that the line highlighting groups only work when gutter signs are turned Note that the line highlighting groups only work when the
on. |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: - The syntax groups used to highlight regions of text with errors/warnings: -
'YcmErrorSection', which falls back to group 'SyntasticError' if it exists and 'YcmErrorSection', which falls back to group 'SyntasticError' if it exists and
then 'SpellBad' - 'YcmWarningSection', which falls back to group then 'SpellBad' - 'YcmWarningSection', which falls back to group