Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
digitaltoad
· 14y ago · 0 comments
You shouldn't ever have to count lines in vim. The five line deletion example could have been done as:
10dG
Which would delete from the cursor to the tenth line.
Comments
[–]
dhimes
14y ago
d5j
delete five from where you are- inclusive
[–]
digitaltoad
OP
14y ago
This still means you would be counting 5 lines whereas I'm just specifying what line to delete to.
[–]
dhimes
14y ago
I am subtracting, but your point is valid.