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

标签 macos vim

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

我想在 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/

相关文章:

xcode - 什么是 osx 上的 config.log 以及它在哪里?

c++ - 无法编译任何 C++ 程序;错误 : unknown type name 'uint8_t'

macos - xcode 6 swift system() 命令

macos - 在 Swift 中执行 TCP/IP 网络 I/O

javascript - 用于生成 Javascript 文档注释的 Vim 插件

vim - 如何以不同的语法语法突出显示文件的一部分?

angular - 'zsh : command not found: ng' in Visual Studio Code's integrated terminal on Mac Catalina

terminal - 光标线的颜色是在哪里定义的?

regex - VI正则表达式-使用当前行号替换

regex - 如何在 Vim 中用正则表达式匹配行尾而不是段落?