From b818fbf13225bfe65ae00417e75281d111225507 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 2 Aug 2018 13:49:05 +0200 Subject: [PATCH] Add Number command that adds line numbers --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index 29c2fe7..7004192 100644 --- a/vimrc +++ b/vimrc @@ -326,6 +326,9 @@ command! -range Count echo(-+1) command! Closeall bufdo bdelete command! Context bufdo bdelete | e . command! Kontext Context +command! -range=% Numbers , + \s/^/\=printf("%0".printf("%f", floor(log10()))."i", line("."))."\t"/ + \ | noh command! L lopen | set number | set norelativenumber command! LAddLine call LocationAddLine(expand("%"), line("."), getline("."))