Think before you speak, read before you think.

vim buffer 查看及操作

by

in

vim 编辑的时候都是将文件放到 buffer 里

同时编辑多个文件

vim file1 file2

查看 buffer,显示正在编辑的文件及行数

:ls
  1 #    "file1"                        line 1
  2 %a   "file2"                        line 1

切到下一个文件

:bn

切到上一个文件

:bp

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *