Hi meino.cramer!

On So, 08 Nov 2009, [email protected] wrote:

> tag_1>text_1</tag_1>
> tag_2>text_2</tag_2>
> tag_3>text_3</tag_3>
> tag_4>text_4</tag_4>
> tag_5>text_5</tag_5>
> 
> and currently I cannot manage to remove the
> 
> 'tag_<n>>' from the beginning of each line. Unfortunately
> the tags are of different lengths so a simple visual block 
> deletion does not work here. I tried:
> 
> 
> :'<,'>s/^[^\>]\+>//g

This works for me on your sample text, you have given above. You can 
also try to use a non-greedy expression:

s/^.\{-\}>//g

Which should delete everything from line start to the first closing 
bracket > 

> with the text in a visual block but it states to not to
> find the regexp'ed text.

Alternatively, you can visually select the first column, search for > 
and then press d to delete the visual selected range.


regards,
Christian
-- 
  • "Regression testing"? What's that? If it compiles, it is good, if it boots
    up it is perfect.
       Torvalds, Linus (1998-04-08). 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to