Add Number command that adds line numbers
This commit is contained in:
parent
d3ccd7e0e6
commit
b818fbf132
1 changed files with 3 additions and 0 deletions
3
vimrc
3
vimrc
|
@ -326,6 +326,9 @@ command! -range Count echo(<line2>-<line1>+1)
|
||||||
command! Closeall bufdo bdelete
|
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>
|
||||||
|
\s/^/\=printf("%0".printf("%f", floor(log10(<line2>)))."i", line("."))."\t"/
|
||||||
|
\ | noh
|
||||||
|
|
||||||
command! L lopen | set number | set norelativenumber
|
command! L lopen | set number | set norelativenumber
|
||||||
command! LAddLine call LocationAddLine(expand("%"), line("."), getline("."))
|
command! LAddLine call LocationAddLine(expand("%"), line("."), getline("."))
|
||||||
|
|
Loading…
Reference in a new issue