Vim BufExplorer


02/24/06。  cathayan.org版权所有,保留一切权利。转载请保留此说明。谢绝商业转载。

还是从BBS上看来的,又学了一招。不过Vim 7已经直接加入这个文件列表的标签显示,暂且先用这个。以前也知道Vim有打开并编辑多个文件的功能,但只会:bn这个命令,要不就要点菜单,太不方便,就很少用这个功能,多个文件就开多个Vim来,或是在命令行上退出再来 :P 。这果然是很土的作法。

今天学到的是Vim的BufExplorer插件,把文件下来,放到runtimepath下的Plugin目录中即可,帮助文件不加入单独看也可以。

命令模式下\be或:BufExplorer进入Buffer列表,\bv或\bs分隔窗口显示这个列表。C-w就是普通的切换窗口的命令了。看来今后要熟悉gVim放全屏,然后开个Buffer窗口的方式了。只开一个文件时,这个东西没用。在列表上用d命令可以关掉一个文件。在Buffer窗口中 ? 可以显示帮助。

:cd命令切换当前目录也算方便,如果没有中文目录名的话。

02/24/06 13:48:04,由cathayan发表。目录:电脑

Comments

5条评论

fishy:

??<C-Right>?<C-Left>??:bn!?:bp!??

于 02/24/06 14:50:21 发表  http://wang.yuxuan.org/blog/

anonymous:

?????? ? :e ??

于 02/24/06 14:56:29 发表  

najja:

It is the most useful vim plugin I've ever used.

于 02/24/06 17:16:36 发表  

cathayan:

???????tabbar???Debian??Gvim?????alt+n????????Bufexplorer???tabbar??????tab????

于 02/24/06 23:18:18 发表  

Steve:

??3????????????A.C,B.C?C.BAS?vi???????vi?????3?????????

vim?????????multi-split-screen ?????????????????????:help usr_08.txt?

???????????????vi?????????

:split another-file
:vsplit another-file

???????????????screen??????????????screen,??Ctrl a + c ???????Ctrl a + p?????]?????????????????

1. Use vi to open the three file directly
for example
vi a b c

2.Then vi will open the file by the order you enter in the command line.
But current is a.
If you want to change to b, you must first save a, then press "2"
,then press "Ctl+Shift+^", for c, you must first save b, then press "3", then press "Ctrl+Shift+^".

vi a b c
:n????????:e#??????????
?????????a?:n??b,?:n??c,:e#??b,???a???:ea

????split ??????,?????yy?????????
?????????????

?????????????3?????

? ????,vi ???
???vi??????????
:sp ?????????????

????????????3?????
???? ctrl ? ??? w
?3??????
于 04/16/06 15:37:55 发表  

Add Comments

This item is closed, it's not possible to add new comments to it or to vote on it

TrackBack