所以在 GVIM 中,我将配色方案更改为
desert
但我一直不明白如何找到这条线
:colorscheme desert
所以我可以把它放在
/root/.vimrc
文件。
我在哪里可以找到“ :colorscheme desert”?
你可以阅读帮助(它很长而且很详细)
:h
打开 vim 的主要帮助。在入门下,您将看到以下内容。您可能需要向下滚动一点(使用Control+f向下翻页)
usr_toc.txt   Table Of Contents
Getting Started
usr_01.txt  About the manuals
usr_02.txt  The first steps in Vim
usr_03.txt  Moving around
usr_04.txt  Making small changes
usr_05.txt  Set your settings
usr_06.txt  Using syntax highlighting
usr_07.txt  Editing more than one file
usr_08.txt  Splitting windows
usr_09.txt  Using the GUI
usr_10.txt  Making big changes
usr_11.txt  Recovering from a crash
usr_12.txt  Clever tricks
这似乎usr_06.txt  与语法突出显示有关,因此可能值得一读。因此,当您的光标位于该文件顶部时,请键入:h usr_06.txt或<c-]>( Control+ ) 以跳转到该文件。]
一旦你在那里,你可以再次查看目录。
06.1  Switching it on
06.2  No or wrong colors?
06.3  Different colors
06.4  With colors or without colors
06.5  Printing with colors
06.6  Further reading
不同的颜色似乎是你想要的。所以输入:h 06.3(or <c-]>) 并且第一段谈论改变颜色方案。
Control+]跳转到一个标签并在:h tagsrch.txt(并且在您打开时立即在“跳转到主题”这一行上:h)进行讨论
该帮助具有自动完成功能。
所以你可以输入,:help color然后是Ctrl+ d。您不必找到蝙蝠的良好进入权,但它应该让您走上正确的轨道。它会告诉你一个colorscheme选择。
另一种方法是使用:helpgrep.  :helpgrep color应该给你一个包含字符串的帮助文件列表color。
在 Debian Linux 上,它是vim-runtime软件包的一部分,位于/usr/share/vim/vim73/colors/desert.vim. 您可以列出此目录的内容以获得更多选项。我不认为他们在 vim 本身中有硬编码的配色方案,所以 vim help 不会为你列出它们。
我想像大多数其他 vim 插件一样,自定义配色方案也可以放在~/.vim目录中。