在每行开始加入“<a href=” vim 命令: :%s/^/<a href=/g
在每行尾加入 “</a>” vim命令 : :%s/$/<\/a>/g
vim在行首和 行尾加
原文:http://www.cnblogs.com/thrillerz/p/4095720.html