Hi,
I have large document. Sample of text file is:
This is some <text> I would like to replace.
I would like to replace each character inside <> brackets with character x
Text after replace should be:
This is some <xxxx> I would like to replace.
Is there a way to replace a text with substitute command. I tried the following:
%s/<.\{-}>/x/g
but it obviously doesn't work correctly, because it replaces whole string with only one x.
Thanks
--
--
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.
Tuesday, December 15, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment