Monday, June 4, 2018

Help with word motions

Hi,

I have a use case that I run into quite often, but cannot find a solution for. So I ask here.

I have an example document
```example document
foo bar
```

My cursor is at the first o character in foo. I would like to change foo to foolish, so the document becomes
```example document
foolish bar
```.

How do I place the cursor on the space between the words with a motion so I can append the "lish" part without moving around so much to adjust?

If I hit e or E I just end up on the last o character of foo. If I insert "lish" here I get "folisho bar", which is obviously not what I want. To make this correct I would have to hit the following key combination <elilish>.

If I hit w or W I end up on the b in bar. If I insert "list" here I get "foo lishbar" which is not what I want. To make this correct I would have to hit the following key combination <whilish>.

Any suggestions?

Thanks a lot in advance,
Patrik

--
--
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: