AnswerBun.com

Add vertical line between line numbers and file contents

Vi and Vim Asked by Quasímodo on July 25, 2020

I have set number in my ~/.vimrc, which enables line numbers. Generally they are quite useful, but it can be a bit tricky to discern the actual contents of a numerical data file from the line numbers, even if the line numbers have a different color.

Is there something like a vertical line to separate line numbers from file contents? For example, image on the left is the original state, and in the right the desired result after enabling the vertical line:

How it is  
How I would like it to be

The line does not need to be the perfect, continuous line depicted. It could be an ASCII line formed by pipe characters (|), for example, which I guess to be more reasonable in a terminal or Gvim.

Add your own answers!

Related Questions

Options from external commands in vim?

1  Asked on August 25, 2020 by mtheorylord

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP