Learn Vimscript the Hard Way
keep same column when navigating by pages
VIM学习笔记
Vim 配置入门
Open vimrc file in Vim
Make Vim show ALL white spaces as a character
^@ symbol in vim
Power of g
Vim Regular Expressions 101
Vim how to delete all words and characters not matching a pattern
Vim - Adding empty line between lines
参考上面链接里的内容,
可以使用下面的替换操作,
删除文件中多余的换行符。
思路:如果\n后面没有空白字符\s,就删除这个换行符(实际上是保留换行符之前的内容)。
%s/\(.\+\)\(\n\)\s\@!/\1/
Vim快捷键和键盘映射-Vim入门教程(30)
How to comment out a block of Python code in Vim
没有评论:
发表评论