Skip to content

Instantly share code, notes, and snippets.

@runar
Created April 2, 2014 13:29
Show Gist options
  • Select an option

  • Save runar/9934106 to your computer and use it in GitHub Desktop.

Select an option

Save runar/9934106 to your computer and use it in GitHub Desktop.
Patch to left align line numbers in vim.
--- src/screen.c 2013-04-24 10:55:11.000000000 +0200
+++ src/new_screen.c 2013-04-24 10:56:06.000000000 +0200
@@ -2339,7 +2339,7 @@
if (num == 0)
{
num = lnum;
- fmt = "%-*ld ";
+ fmt = "%*ld ";
}
}
@@ -3514,7 +3514,7 @@
if (num == 0)
{
num = lnum;
- fmt = "%-*ld ";
+ fmt = "%*ld ";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment