I want to auto enter the insert mode after use f command how to make it?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

I want to auto enter the insert mode after use f command how to make it?

Zhe Lee
As the title said I want to edit immediately after using f command.

seems cant remap the f direct, because f need a parameter. 

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/23fcf013-ffbe-49af-b85d-cc3a32ce153dn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: I want to auto enter the insert mode after use f command how to make it?

Kyle Clark
mm.. first thing that comes to mine is that you could put an operator mapping over the f command, via jumping to the `]  created from the operator mapping and start insert mode from there

this might be as simple as creating a omap?

some resources
 :h g@
or check out the section on Vimscript the hard way on the grep operator, 


On Thursday, January 21, 2021 at 8:34:45 PM UTC-8 [hidden email] wrote:
As the title said I want to edit immediately after using f command.

seems cant remap the f direct, because f need a parameter. 

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e6b67a0c-b099-456c-829f-fe8f19d7db5bn%40googlegroups.com.