2014-09-27 45 views

回答

2

您可以通过选项--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 
... 

这些命令将设置colorschemedarkblue

vim -c 'color darkblue' 
vim --cmd 'color darkblue' 
vim +'color darkblue' 
+0

作为色彩方案通常被设置在'.vimrc','--cmd'将被其覆盖。 (但其他人确实有效。) – 2014-09-27 18:09:23

相关问题