0
我在Vim上有一个默认的配色方案,每次打开Vim时都会加载。我想在某些情况下加载不同的配色方案,通过的iTerm启动Vim的时候做这样的事情是否可以为单个vim会话指定自定义颜色方案?
VIM -custom
。这可能吗?
我在Vim上有一个默认的配色方案,每次打开Vim时都会加载。我想在某些情况下加载不同的配色方案,通过的iTerm启动Vim的时候做这样的事情是否可以为单个vim会话指定自定义颜色方案?
VIM -custom
。这可能吗?
您可以通过选项--cmd <command>
或-c <command>
或+<command>
传递命令到VIM:
$ vim --help
...
+<lnum> Start at line <lnum>
--cmd <command> Execute <command> before loading any vimrc file
-c <command> Execute <command> after loading the first file
...
这些命令将设置colorscheme
到darkblue
:
vim -c 'color darkblue'
vim --cmd 'color darkblue'
vim +'color darkblue'
作为色彩方案通常被设置在'.vimrc','--cmd'将被其覆盖。 (但其他人确实有效。) – 2014-09-27 18:09:23