Questions tagged [line-numbers]

Vim can output the number of each line on the left side of the screen. Questions about customizing this behavior.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
599 views

Highlight line number of folded lines

I want to have uniform highlighting of line numbers (provided by the LineNr and CursorLineNr hl-groups) but the line numbers of folded lines don't obey a particular group (as far as I know), but obey ...
4
votes
1answer
611 views

How to show the sign column to the right side of the line number column?

I want Vim's sign column displayed to the right side of the line number column, I have it by default on the left. Here is a screenshot showing the sign column enabled and showing a + to indicate a ...
2
votes
0answers
98 views

Add vertical line between line numbers and file contents

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, ...
2
votes
0answers
83 views

Vimdiff : highlight line numbers differently

I use relative line numbers thanx to the following settings in my vimrc: set number set relativenumber Since I don't want to wrap lines in diff mode, it's sometimes hard to tell which line include a ...
2
votes
0answers
330 views

How to display all line numbers in Vim?

In my .vimrc i have added this line set number But it only displays the line number for the lines that exist in the buffer, and not beyond this; after this it just shows ~. How can I show line ...
1
vote
0answers
36 views

Truncate line numbers when they are too large

So I'm using Vim's line numbering with set number set numberwidth=4 But I find that if line numbers exceed 999, then the gutter is automatically expanded to accommodate them. I actually don't want ...
1
vote
0answers
37 views

How to make Vim not be a line editor

Vim is famously (or infamously) a child of line-based editing. For many cases this is acceptable. But I wish to use it primarily as an academic tool with large amounts of text. I want the experience ...
1
vote
0answers
49 views

Why is Neovim highlighting the cursor line numbers after the cursor has moved off?

I have turned on CursorLineNr highlighting as shown in this init.vim file. When I have my cursor on a line that wraps, it highlights all the individual "lines" on that line, as usual. However once my ...
1
vote
0answers
1k views

How can I have more space between line number and code?

Bascially, I want to increase the space between line number and code. Other line number plugin is also acceptable. From this: to this:
0
votes
1answer
27 views

line numbers in vim -H reversed

Recently I installed vim 8.2 on Windows 10 and vim 8.1.2269 on Linux Ubuntu. Both are compiled with +rightleft option. When I use gvim -H or vim -H (without vimrc file) and run :set number, I get line ...
0
votes
0answers
53 views

jump to line via letters instead of relative numbers

I currently use relative numbers to jump from my current line to another one. But since typing letters is easier then numbers, i wanted to know if there is a way to replace the line numbers with ...