Wednesday, August 31, 2011

Search and write

If you have a search statement something like this:

/[0-9]

And want to write :w the matching content to a file. How to do? I've
seen examples similar to this:

/[0-9] . w >> my.txt

But exactly this doesn't work for me.

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

No comments:

Post a Comment