Fix line-numbering using wrong length for numbers

This commit is contained in:
Talia 2018-08-15 09:33:46 +02:00
parent 0c262e8aa1
commit 0538cb57e8

2
vimrc
View file

@ -327,7 +327,7 @@ command! Closeall bufdo bdelete
command! Context bufdo bdelete | e . command! Context bufdo bdelete | e .
command! Kontext Context command! Kontext Context
command! -range=% Numbers <line1>,<line2> command! -range=% Numbers <line1>,<line2>
\s/^/\=printf("%0".printf("%f", floor(log10(<line2>)))."i", line("."))."\t"/ \ s/^/\=printf("%0".float2nr(ceil(log10(<line2>)))."i", line("."))."\t"/
\ | noh \ | noh
command! L lopen | set number | set norelativenumber command! L lopen | set number | set norelativenumber