Friday, May 12, 2017

Re: unexpected result


On May 12, 2017 11:57 AM, "stosss" <stosss@gmail.com> wrote:
I typed f2u expecting the cursor to jump to the 2nd "u" on the line but the command deleted my last "p"ut command.

2fu did what I expected. Did f2u do what it was supposed to do?


f finds the next character. You issued two commands with f2u:

1. Find a 2.
2. Undo the last edit.

The correct way to find the second u is, as you've discovered, to preface the entire command with the count: 2fu

Salman

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment