question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'x' deletes past end of line

See original GitHub issue

x.Get("active", f^alse));

With caret between the f and a if you hit 20x it should stop at the end of the line, but it either goes on to other lines or starts deleting before the f:

x.Ge

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mweber26commented, Apr 30, 2018

There’s always a better command, but 25 years of vi is hard to adjust 😃

0reactions
nosamicommented, May 1, 2018

I don’t believe I ever used x with a multiplier - I had no idea it did that. I guess that’s a different issue. I’ll file it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete from cursor to end of line in `vi`
I use Dp (delete to end of line, then put it back), move to the end of some other line, then p again...
Read more >
How do I delete the last character in each line using vim
1}$// to delete 1 character off the end of each line. ... $x move to the end of a line, and delete a...
Read more >
Deleting everything from a line after the cursor except ...
Hi! I want to save some keystrokes in while working in Vim. If I need to delete everything after the cursor, except some...
Read more >
Remove the Last N Lines of a File in Linux
Using the head command, we can print all lines but the last x lines of the file by passing a number following the...
Read more >
Delete characters from the end of multiple lines in VIm
I want to delete the HTML tags from the end of the lines in Vim. The only way I thought of was a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found