我可以从命令行设置 vim 颜色方案吗?

Egr*_*odo 2 vim ssh bash terminal colors

我有一个热键设置为在我通过 SSH 连接到服务器时自动创建一些别名并安装脚本(为了我的工作)。有谁知道从命令行设置 vim colo 的方法,以便我可以在我的热键中使用它?谢谢!

and*_*lrc 5

你可以在启动 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)