MacOS – where is ~/.vim folder? and how to install themes

macosmacvimxcode

I downloaded color sample pack from http://vim.sourceforge.net/scripts/script.php?script_id=625

it says i should unzip and place it into ~/.vim
but where is this folder?
I tried unzip it to my usr/share/.vim folder but it is not working, I don't see themes added to gvim Edit>color scheme menu, and i tried
"colorscheme sometheme",
"color sometheme"
in my gvimrc.
Both not working for new themes

Isn't the ~/.vim should be the .vim folder in use/share? or I should create a new folder under home?

Note:there is a folder vim73 in my .vim, I guess this doesn't affect anything

thanks for any help!

Best Answer

~ always is your home folder (/Users/rororo for instance). If ~/.vim exists, that's where you'll find it. Unless you've used vim before, the folder likely will not already exist, so to create the folder, open Terminal.app and type

cd ~
mkdir .vim

Assuming you downloaded ColorSamplerPack.zip to your Downloads folder you can then proceed with

cd .vim
unzip ~/Downloads/ColorSamplerPack.zip

to unpack the content into the folder. A restart of gvim may be required afterwards.


On second thought, the same result can be accomplished by just opening Terminal.app and executing

unzip ~/Downloads/ColorSamplerPack.zip -d ~/.vim