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("."))