Y
Hacker News
new
|
ask
|
show
|
jobs
by
digitaltoad
5024 days ago
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.
1 comments
dhimes
5024 days ago
d5j
delete five from where you are- inclusive
link
digitaltoad
5024 days ago
This still means you would be counting 5 lines whereas I'm just specifying what line to delete to.
link
dhimes
5023 days ago
I am subtracting, but your point is valid.
link
delete five from where you are- inclusive