zhyiwww
用平实的笔,记录编程路上的点点滴滴………
posts - 536,comments - 394,trackbacks - 0

我的文件内容
  a_0.html:<a href="/member/127/abc--australian-broadcasting-corporation-"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile"   /></a></div><p><a href="/member/127/abc--australian-broadcasting-corporation-">ABC (Australian Broadcasting Corporation)</a></p></div>
  a_0.html:<a href="/member/31/ac-capital-strategic-public-relations"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a  ></div><p><a href="/member/31/ac-capital-strategic-public-relations">AC Capital Strategic Public Relations</a></p></div>
  a_0.html:<a href="/member/79/aims-financial-group"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href  ="/member/79/aims-financial-group">AIMS Financial Group</a></p></div>

之后的内容:
  <a href="/member/52/knauf-plasterboard--tianjin--co--ltd-"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p  ><a href="/member/52/knauf-plasterboard--tianjin--co--ltd-">Knauf Plasterboard (Tianjin) Co. Ltd.</a></p></div>
  a_8.html:
  <a href="/member/85/kpmg-huazhen-certified-public-accountants"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></di  v><p><a href="/member/85/kpmg-huazhen-certified-public-accountants">KPMG Huazhen Certified Public Accountants</a></p></div>
  a_8.html:
  <a href="/member/7/latitude-architects-design"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href="/m  ember/7/latitude-architects-design">Latitude Architects Design</a></p></div>
  a_8.html:
  <a href="/member/86/lehmanbrown"><img src="/images/button_viewprofile.gif" title="View Profile" alt="View Profile" /></a></div><p><a href="/member/86/lehma  nbrown">LehmanBrown</a></p></div>

在vim中可以这样实现:
 :%s/html:/&\r/g





|----------------------------------------------------------------------------------------|
                           版权声明  版权所有 @zhyiwww
            引用请注明来源 http://www.blogjava.net/zhyiwww   
|----------------------------------------------------------------------------------------|
posted on 2009-10-30 17:28 zhyiwww 阅读(3917) 评论(2)  编辑  收藏 所属分类: linux

FeedBack:
# re: vim-添加换行符
2012-07-21 22:38 | Bill Z
%s/html:/&\r/g

我研究了一下子,原来&这个东西代表html:

  回复  更多评论
  
# re: vim-添加换行符
2012-07-21 22:40 | Bill Z
还有我感觉怪怪的不用\n而用\r, 用\n还真不行.  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: