开发者

Use a preset vim colorscheme in bash (Mac OSX)

开发者 https://www.devze.com 2023-02-28 00:22 出处:网络
I\'m trying to use the desert colorscheme for vim in bash on my Mac OS X.I changed my .vimrc file to include the line

I'm trying to use the desert colorscheme for vim in bash on my Mac OS X. I changed my .vimrc file to include the line

colorscheme desert

There was no .vim directory in my home directory, so i made one and made a colors directory inside that. Then I downloaded desert.vim开发者_JAVA百科 and put it in the colors directory. The colorscheme is still not working. Any experienced vimmers know what I might have missed?


You have to set a VIM varible for it to work. Add this line to your .vimrc:

let $VIM ='~/.vim/'

In fact this line tells vim to check for folder "~/.vim/" to load plugins, colors, syntaxes, etc ...


This should work, or there is an important piece of information missing. Note that the desert colorscheme comes with the vim provided by OS X so you shouldn't even need to install it.

0

精彩评论

暂无评论...
验证码 换一张
取 消