你可以在启动 vim 时运行命令:
vim +'colorscheme blue' my_file
Run Code Online (Sandbox Code Playgroud)
见man vim:
-c {command}
{command} will be executed after the first file has been read.
{command} is interpreted as an Ex command. If the {command} contains
spaces it must be enclosed in double quotes (this depends on the shell
that is used). Example: Vim "+set si" main.c
Note: You can use up to 10 "+" or "-c" commands.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1866 次 |
| 最近记录: |