gpt4 book ai didi

macos - OSX-Terminal.app + vim + 日晒配色方案

转载 作者:行者123 更新时间:2023-12-02 03:49:46 24 4
gpt4 key购买 nike

我知道这个话题在互联网上广泛传播,但我花了整个早上寻找解决方案,但没有任何帮助。

我想在 osx 终端中使用 vim 和 Solarized 颜色方案。

所以我下载了 Solarized.vim 文件并将其复制到/usr/share/vim/colors 并写入

   let g:solarized_termcolors=256
set background=dark
colorscheme solarized

在 .vimrc 中。

在首选项中,终端设置为xterm-256color,但颜色仍然困惑。

我所做的正是您可以找到的here .

那么,我做错了什么?

最佳答案

如果您尝试在控制台上使用 VIM,请尝试将终端主题更改为 Solarized。

您可以关注此blog post on Solarized theme for OSX :

In the Terminal.app you have a few options of color schemes that you can choose from. We are going to install the Solarized Dark and Solarized Light themes for some human eye friendly color combinations

  1. Go to http://ethanschoonover.com/solarized in your browser
  2. Download the the latest version http://ethanschoonover.com/solarized/files/solarized.zip.
  3. Unzip the package and locate the osx-terminal.app-colors-solarized folder within the extracted folder.
  4. Double click on Solarized Dark ansi.terminal and Solarized Light ansi.terminal.

If your system then complains that it is from an unidentified developer, you have to temporarily allow applications from anywhere. To do this go to: System Preferences > Security & Privacy > General > Allow applications downloaded from and select “Anywhere”. Don’t forget to change this back!

  1. Select the theme in the Terminal.app preferences under Settings > Profiles. You can press default to have it default selected.

关于macos - OSX-Terminal.app + vim + 日晒配色方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31605897/

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