1.vim重新加载
:edit
:e
:edit!
2.选中多行,命令状态下,v, >
3.把windows文件^M,替换了,:%s/ctl+v ctl+m/\r/g
4.二进制编辑:
:%!xxd
5.vim 如何替换?
:%s/be_replaced/string/g
6.统计一个字符数量
:%s/string//ng
7.编辑多个文件:
:bf # Go to first file.
:bl # Go to last file
:bn # Go to next file.
:bp # Go to previous file.
:bw # Close file.