vim中输入多个命令

来源:百度知道 编辑:UC知道 时间:2024/06/14 19:52:15
我是在linux下使用vim, 我想一次输入多个命令, 比如先set syntax=cpp, 再syntax on.
我记得分隔符好像是:, 也就是set syntax=cpp:syntax on, 试验了一下发现不对. 正确的做法是怎样呢?

I can give you the answer, use "|".

You can learn more vim tips from :help
And the answer correspond to you request can be found at :help cmdline

好像一般都是直接在 .vimrc 或.gvimrc里面设置..