在 Vim 上设置颜色主题
Setting a color theme on Vim
我已将 vim 更新到最新版本 (8.1.39),但我仍然无法使用颜色主题。我已经将 atom.vim
下载到 ~/.vim/colors
。注意:在我的 Ubuntu 安装中,它工作正常。
而我的~/.vimrc
如下:
set t_Co=256
set background=dark
colorscheme atom
syntax on
当我 运行 :colorscheme
在 vim 它 returns atom
但仍然没有 color/syntax 突出显示。
我可能遗漏了什么?
谢谢!
您尝试使用的配色方案仅适用于 GUI Vim (GVim/MacVim) 或 可能 与 TUI Vim 但前提是 你的终端支持真彩色 and 如果你的 Vim 是用那个特性构建的 and 如果你 :set termguicolors
(可能还有其他黑客)。
见:help 'termguicolors'
。
另外,README.md
没有被调用 IGNOREME.md
是有充分理由的:
Currently Atom is GVim only. I tend to use the default colours when (infrequently) in a terminal. If you have a strong desire for added terminal support leave me a comment, drop me an email or even better: send me a pull request!
(强调我的。)
我已将 vim 更新到最新版本 (8.1.39),但我仍然无法使用颜色主题。我已经将 atom.vim
下载到 ~/.vim/colors
。注意:在我的 Ubuntu 安装中,它工作正常。
而我的~/.vimrc
如下:
set t_Co=256
set background=dark
colorscheme atom
syntax on
当我 运行 :colorscheme
在 vim 它 returns atom
但仍然没有 color/syntax 突出显示。
我可能遗漏了什么?
谢谢!
您尝试使用的配色方案仅适用于 GUI Vim (GVim/MacVim) 或 可能 与 TUI Vim 但前提是 你的终端支持真彩色 and 如果你的 Vim 是用那个特性构建的 and 如果你 :set termguicolors
(可能还有其他黑客)。
见:help 'termguicolors'
。
另外,README.md
没有被调用 IGNOREME.md
是有充分理由的:
Currently Atom is GVim only. I tend to use the default colours when (infrequently) in a terminal. If you have a strong desire for added terminal support leave me a comment, drop me an email or even better: send me a pull request!
(强调我的。)