- set a mark at the current line ma
- find a line with a pattern x /^$/
- set a mark there mb
- find a line with pattern y /^From - /
- set a mark there mc
- write the lines a-b to file1 :'a,'b w file1
- write the lines b-c to file2 :'b,'c w file2
------------------------------------------------------------------------
or:
- find a line with pattern x /?x?x?x/
- ma
- find a line with pattern y /?y?y?y/
- mb
- move all lines with pattern z in a-b to 'a-1
----------------------------------------------------------------------
Also note that I need to be able to handle errors.
i.e. failed finds etc.
--
Rostyk
--
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