Select lines by pattern and write to a file(should exist):
:!touch file
:g/_pattern_/ .w >> file
On Wed, Apr 7, 2010 at 1:31 PM, Aman Jain <amanjain.nitrkl@gmail.com> wrote:
Hi
After doing '[I' - (left bracket followed by capital i) which is meant
for displaying all lines that contain the keyword under cursor, how
can I save those results.
The output was not available in any registers.
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
To unsubscribe, reply using "remove me" as the subject.
--
--
Vladimir A. Rybas
Ruby on Rails Developer
Equelli Ltd.
Omsk, Russia
cell: +7(913)967-62-37
skype: vladimir_rybas
mailto: vladimir.rybas@equelli.com
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