This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/r//g 删除DOS方式的回车^M | |
:%s= *$== 删除行尾空白 | |
:%s/^(.*)n1/1$/ 删除重复行 | |
:%s/^.{-}pdf/new.pdf/ 只是删除第一个pdf | |
:%s/<!--_.{-}-->// 又是删除多行注释(咦?为什么要说「又」呢?) | |
:g/s*^$/d 删除所有空行 :这个好用有没有人用过还有其他的方法吗? |