Visual Line Numbers puts a number on every wrapped row of the editor

Show a line number for each wrapped row in the editor.

MIT · no telemetry · core features free

Pro adds "Count folded lines" and "Highlight the current row". Pro for all 134 plugins, $15 one time

Relative line numbers on wrapped paragraphs, with zero at the cursor.
Open larger
version
1.2.4
released
downloads
215
review
Passed
health
Excellent
license
MIT
listed for
Desktop, Mobile
obsidian
1.13.4 or later

The reported checks use desktop Obsidian; no phone or tablet test establishes mobile behavior.

Directory facts fetched from community.obsidian.md/users/theluckystrike.

checked
Version 1.0.0 on 10 October 2026, in Obsidian 1.14.4 on desktop. The current version is 1.2.4, and it has no check yet.
passed
Install, free feature, Pro text, sign in, Pro stays off, network, token storage.
checked by
An automated check that the developer runs, not a review by Obsidian. See what each check means

About Visual Line Numbers

You use Vim key bindings in Obsidian, your long lines wrap, and you move with counted motions such as 5gj.

Core line numbers give a wrapped line one number. A paragraph that wraps onto five rows still counts as one, so the gutter can't tell you how far away a row is. Visual Line Numbers counts the rows that the editor draws.

In relative and hybrid mode the numbers count rows from the cursor. Map j and k to gj and gk, and 5j lands on the row that shows 5. The gutter, the four modes and the commands are free.

The numbers in the gutter change as the cursor moves down a note with wrapped paragraphs and back upPlay demo

Free features

A number on each wrapped row

Relative mode is the default. The cursor row shows 0, and the rows above and below show how many rows away they are. A paragraph that wraps onto four rows shows four numbers.

Hybrid mode

Hybrid mode gives the same counts. The cursor row shows the line number of the cursor line instead of 0, as Vim does with both options on.

Hybrid numbers with the line number 5 on the cursor row and distances on the other rows.
Open larger

Absolute mode

Absolute mode shows the line number on the first row of each line. The rows that a long line wraps onto have no number. So the gutter matches the line numbers that other tools and error messages use.

Absolute line numbers on the first row of each line, with no number on the wrapped rows.
Open larger

Commands for the gutter and the mode

Use Toggle the number gutter or Cycle number mode from the command palette. Four commands set absolute, relative, hybrid or dual numbers directly. The settings tab offers the gutter switch and number mode choice.

The settings tab with the Pro section, the Show the gutter switch and the Number mode list set to relative.
Open larger

Both number columns

Dual mode puts document line numbers on the left and wrapped row distances on the right, with 0 on the cursor row. The left column numbers only the first row of each document line. Select Dual in Number mode or run Use dual numbers.

Document line numbers appear beside distances from the cursor on wrapped rows.
Open larger

The free version has the gutter, four number modes, the commands and the settings tab.

Pro features

Pro costs $5 a month or $15 one time through GitHub Sponsors.

One payment of $15 turns on Pro in 134 NoteMods plugins.

Count folded lines Pro

Turn on Count folded lines and each line that a fold hides takes one count. The number of the row below a fold then matches the document lines between it and the cursor. With the option off, a fold counts as the one row you see.

Three folded sections with the relative numbers 2, 9 and 14, because the hidden lines are counted.
Open larger

Highlight the current row Pro

The cursor row shows its number in bold on a tinted background. It uses the accent color, or your hybrid cursor color if you chose one.

The number 3 of the cursor row on a tinted background in the gutter, in hybrid mode.
Open larger

Motion hint Pro

Hover over a number to see the Vim motion that reaches that row. A row five rows below the cursor shows 5gj, and a row three rows above shows 3gk.

The hint 5gj next to the number 5 in the gutter.
Open larger

Per-note property Pro

Turn on Per-note property, then add visual-line-numbers: false to the properties of a note to hide its gutter. Every other note keeps its gutter. Use it for notes with long prose, where numbers add noise.

A note with the property visual-line-numbers set to false and no numbers beside its text.
Open larger

A color for each mode Pro

Choose one color for absolute numbers, one for relative numbers, and one for the line number on the cursor row in hybrid mode. Without a chosen color, the numbers use the theme. Dual uses the absolute and relative colors, with the hybrid cursor color for its 0.

Relative numbers in blue and the hybrid cursor line number in orange.
Open larger

$15 once. Pro tools in 134 NoteMods plugins with one GitHub sponsorship. Nothing renews.

Pro turns on right after payment. Select Sign in with GitHub in the settings of each plugin you use. Free features stay free.

Secure checkout by GitHub Sponsors - needs a GitHub login.

We email you this link once, and one reminder if you confirm. Unsubscribe any time.

Price tiers

17 of 50 founding licenses sold.

  1. Founding price · now$15licenses 1 to 50
  2. Tier 2$19licenses 51 to 150
  3. Tier 3$24licenses 151 to 300
  4. Tier 4$29licenses 301 and more

The price is set on the 1st of each month. It goes up only after a tier is full. Until then it stays $15. The next price review is on 1 December 2026.

A price change does not change a license that you paid for. The $5 a month option stays.

Get Pro with GitHub Sponsors

One sponsorship turns on the Pro features in 134 NoteMods plugins. Free features stay free.

$15 one time: Pro stays on, nothing renews. $5 a month: Pro is on while you sponsor, and stays on after you have paid $15 in total. You pay on GitHub (a GitHub login is needed), then select Sign in with GitHub in the plugin settings. All sponsor tiers

Set up Visual Line Numbers

needs

  • Obsidian 1.13.4 or later
  • Turn off Show line numbers in Settings, Editor, or two gutters of numbers show together.
  • Counted motions need Vim key bindings, with j and k mapped to gj and gk.

steps

  1. Install Visual Line Numbers from Community plugins and enable it.

  2. Open Settings, Editor and turn off Show line numbers, so two gutters of numbers don't show together.

  3. Open a note in Live Preview or Source mode and look at the left of the text.

  4. For counted motions, turn on Vim key bindings in Settings, Editor and map j and k to gj and gk.

  5. With the Vimrc Support plugin, add nmap j gj and nmap k gk to your vimrc file.

If the app can't find a new plugin yet, try again later. Obsidian says a plugin that passes the review shows in the app within 24 hours.

Why this exists

The request Numbering Visual Lines on the Relative Line Numbers plugin has been open since March 2023 and has 39 reactions. An older request on Vimrc Support, with 7 reactions, describes the same mismatch between counts and line numbers.

How to get relative line numbers on wrapped lines in Obsidian

How it compares

Core line numbers
Core line numbers give a wrapped line one number. If you map j and k to gj and gk, the gutter count doesn't match the motion.

Known limits of Visual Line Numbers

  • While Pro is off, a note with visual-line-numbers: false still shows the gutter, and nothing in the note says that the property needs Pro.
  • When the cursor is off screen, relative numbers come from estimated row heights, so they can be off until the cursor line is back in view.
  • The plugin adds its own gutter and leaves the core setting Show line numbers as it is, so two number gutters show until you turn that setting off.

Need a change for your team? I build custom Obsidian plugins and features.

Questions about Visual Line Numbers

How do I get relative line numbers for wrapped lines in Obsidian?

Core line numbers give a wrapped line one number. Visual Line Numbers puts a number on every display row, and relative mode counts rows from the cursor. Turn off Show line numbers in Settings, Editor first.

Are the numbers exact?

On screen, yes, because the counts come from the rows that the editor draws. When the cursor is off screen, the editor has only estimated heights for lines it hasn't drawn. The relative numbers are then close, and exact again once the cursor line is back on screen. Absolute mode and the hybrid cursor line number are always exact.

Does a fold count as one row?

Yes, by default. A folded section is drawn as one row, so it counts as one. With Pro, Count folded lines counts every hidden line as well.

Does Visual Line Numbers slow down long notes?

The plugin measures only the lines that the editor draws, which are the lines on screen and a margin around them. It measures again when the note, the scroll position or the window width changes.

Does it work in Reading view?

No. The gutter shows in Live Preview and in Source mode. Reading view and the canvas are out of scope.

Network use

Until you select Sign in with GitHub in the settings, the code of Visual Line Numbers sends no network request. After a successful check, the plugin waits 7 days before it asks GitHub again, and Refresh asks at once. After a failed check it tries again every 6 hours, and no check sends note content, file names or other vault data.

Read the full network disclosure

Questions or ideas?

Tell me what is broken in Visual Line Numbers, or what it should do next.

Send feedback

Visual Line Numbers 1.2.4, MIT license

MIT · no telemetry · core features free

Pro adds "Count folded lines"Pro for all 134 plugins, $15 one time

Get Pro