I was training in my Vim (gVim on Windows) that suddenly I saw this arrow notation ( >> ) in the start of some lines. When I oppend a javascript file, these appears to me. Do you know what are these and when they will show?

enter image description here

Some of them are green and some of them are red. But I don't know what is the meaning of these colors? I think I installed a plugin and this is for that.

  • Could you tell us which version of Vim you are using (:version). Depending of the version you are using Coc can use some Vim functionalities to give more hints about these warning and errors. Mar 1, 2023 at 4:41
  • 1
    VIM - Vi Imroved 9.0 ( 2022 Jun 28, compiled Jun 28 2022 13:9:53 ) MS-Windows 32-bit GUI version with OLE support Mar 1, 2023 at 4:56

1 Answer 1


They are column signs set by Coc to highlight warnings or errors detected by the language server.

You can control their appearance using the :CocConfig command that let you edit the ~\vimfiles\coc-settings.json:

    "diagnostic.errorSign": "⚡",
    "diagnostic.warningSign": "▲",
    "diagnostic.infoSign": "?",
    "diagnostic.hintSign": "!",

If you have the following settings in your _vimrc:

nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)

you can navigate the warnings and errors detected by the language server using the ]g, [g key combination.

When you navigate through the diagnostic (you can also navigate with the cursor) you get hints about the diagnostics:

Diagnostic Hint

You can get also a list of all the diagnostic with the following commands:

:CocList diagnostics

Coc Diagnostics

  • 5
    Excellent answer. I'd like to highlight that vim calls these things "signs" so :h sign will give more information.
    – Friedrich
    Mar 1, 2023 at 7:17
  • 2
    Thanks, you solved my problem completely. Mar 1, 2023 at 8:43
  • 1
    How did you find out that it was CoC?
    – D. Ben Knoble
    Mar 1, 2023 at 14:34
  • The same user has asked other questions here or here where he mentioned he is using Coc. Mar 1, 2023 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.