vim的一些使用问题

多文件切换

    通过vim打开多个文件(可以通过ctags或者cscope)
    ":ls"查看当前打开的buffer(文件)
    ":b num"切换文件(其中num为buffer list中的编号)

可以用到的命令有
":bn" -- next buffer in the buffer list
":bp" -- previous buffer in the buffer list
":b#" -- previous buffer you was in

在windows上使用gvim 配色方案可选择elflord, 比较好用
显示行号命令为set nu
将这两行加入到_vimrc,基本能满足基本要求,语句是:
colorscheme elflord
set nu
这样每次启动时就会采用这个方案,还不错。

猜你喜欢

转载自cyzhang999.iteye.com/blog/1597250