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



我设置了一个热键,可以在我通过 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.

相关内容

  • 没有找到相关文章

最新更新