gpt4 book ai didi

bash - 我可以从命令行设置 vim colorscheme 吗?

转载 作者:行者123 更新时间:2023-11-29 09:51:57 24 4
gpt4 key购买 nike

我设置了一个热键来自动创建一些别名并在我通过 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 colorscheme 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37400174/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com