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

标签 bash vim ssh colors terminal

我设置了一个热键,每当我通过 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/

相关文章:

bash - Oozie Shell Action无法运行Docker容器

linux - 从日志文件中搜索值和计数

bash - 无法通过 Bash 创建文件

vim - 为这段代码寻找正确的cinoptions

vim - 无法在 VIM 中正确映射 Asterisk (*) 键

ssh - Amazon LightSail 上的权限被拒绝

同时为 2 个文件夹编写 Linux bash 脚本

Vim:在默认vim中打开当前文件的功能

在 Windows 上使用 PuTTY 的 git push 失败(致命的 : The remote end hung up unexpectedly)

通过http ://does not clone all tags Git克隆