1

I would like to create a second column next to the line number column. It shall behave identical to the line number column, i.e., move up and down when scrolling. Ideally its content should be customizable using vimscript during runtime, because I want to display custom information in there. Where would I need to start looking? How is this column called? Is this possible?

Edit: Customizing how the line numbers are displayed, i.e. cheating in a second column by extending the first is also fine. Though I have not found a command for that.

2

It's called "sign column". The dedicated help file is :h sign.txt

If you want some sort of higher level API you should look for plugins. Maybe, vim-signature, or something like that.

1
  • thanks, that plugin looks great
    – cmosig
    Jul 24 '20 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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