Reputation: 289
I'm trying to create a simple vim plugin, and am encountering some problems. How do I edit the contents inside a line number? For example, in syntax plugins like ale, syntastic, neomake tc., they display the errors right next to the line number.
1 | ...code
>> 2 | ...code
-- 3 | ...code
Is it possible to do this in the vim python module or within VimL? If so, how would one do it? I have checked the documentation here, but couldn't find anything related to editing the contents of the line number. Any help is appreciated, like documentation or what commands are needed. Thanks!
Upvotes: 0
Views: 81
Reputation: 195169
vim has built-in sign
, you can define and remove signs to achieve that. Many plugins use sign too.
:h sign
Read it, and try some examples in the doc.
Upvotes: 3