我设置了一个热键,每当我通过 SSH 连接到服务器(用于我的工作)时,就会自动创建一些别名并安装脚本。有谁知道如何从命令行设置 vim colo 以便我可以在热键中使用它?谢谢!
最佳答案
启动 vim 时可以运行命令:
vim +'colorscheme blue' my_file
参见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.
关于bash - 我可以从命令行设置 vim 颜色方案吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37400174/