TransWikia.com

add second column next to line number column

Vi and Vim Asked by cmosig on December 28, 2021

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.

One Answer

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.

Answered by Matt on December 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP