Julius Hamilton wrote:
> From trying it myself, it seems that the "find" menu option in Gvim does
> not allow entering patterns or regular expressions, such as a period to
> represent any character, or "\n" to represent a newline, but only literal,
> explicit text matching.
>
> I was curious why this is and if there is any GUI / menu way to search for
> regular expression patterns or if you must use the Vim text-based command
> "/" for this.
This was an intentional choice. The idea is that the menu would be used
by beginners, who don't know the keyboard commands yet. These users
would also not know what characters need to be escaped in a pattern.
As Christian mentioned, once you know Vim a bit you would just use
"/pattern" and ":s/from/to".
--
hundred-and-one symptoms of being an internet addict:
16. You step out of your room and realize that your parents have moved and
you don't have a clue when it happened.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/202109091742.189Hgae9114368%40masaka.moolenaar.net.
No comments:
Post a Comment