:%s/\r//g 替换为空格 :%s/\r/\r/g 替换为换行 转自:http://successtheory.com/tips/vimtips.html http://www.zinkwazi.com/unix/notes/vimtips.html