On 24/05/12 22:14, Christian Brabandt wrote:
> Hi Bob!
> 
> On Do, 24 Mai 2012, Bob von Knobloch wrote:
> 
>> Hi, I've searched all over but can't find an answer. How can one perform
>> commands like ':%s/\n/\r\r/g' (replacing newlines or tabs etc.) in the
>> gui's 'find and replace' dialogue?
> 
> Not possible, the replace text is escaped:
> 
> ,----[ gui.c ]-
> |5276  ga_concat(&ga, (char_u *)"/");
> |5277                                         /* escape / and \ */
> |5278  p = vim_strsave_escaped(repl_text, (char_u *)"/\\");
> `----
> 
> Here is an experimental patch against the gtk gui, that adds an extra 
> flag, and allows to replace with special chars ,e.g. \t for Tab
> 
> Looking at the dialog, it could possibly also get some more 
> possibilities, e.g. a confirm/undo button, perhaps even more.
> 
> regards,
> Christian
> 
Thanks Christian,
I really wanted to know if I had missed something. This demonstrates
that the gui cannot replace these characters. I don't want to build my
own version, mainly because I can use the command line. It's when I try
to explain to others (who have the 'standard' issue gvim), that it seems
strange that the 2 input methods are different. However, that's how it is.
Thanks very much for you efforts.

Bob

-- 
The Sun is out, the sky is blue. It's time to drive the MR2.

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

Reply via email to