Auto merge of #3302 - micbou:highlight-lines-without-gutter, r=puremourning
[READY] Add instruction on how to highlight lines without Vim gutter Closes https://github.com/Valloric/YouCompleteMe/issues/765. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3302) <!-- Reviewable:end -->
This commit is contained in:
commit
10f7dea123
11
README.md
11
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
|
- `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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user