Fix line-numbering using wrong length for numbers
This commit is contained in:
parent
0c262e8aa1
commit
0538cb57e8
1 changed files with 1 additions and 1 deletions
2
vimrc
2
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue