10

I use vi on mac os x at work and on Ubuntu at home. I like the colorscheme vim uses on the mac and I'd like to copy the corresponding file on ubuntu, but I can't find it, since there's no ~/.vim folder. Searching on the web I always find the answer "create it", but this is not the point, since I just want to see (and copy) an already installed colorscheme.

2
  • I think they're located in $HOME/.vim/colors/ and you enable the one you want by editing $HOME/.vimrc file with "colorschemes name_of_scheme" (no quotations) Commented Jun 19, 2016 at 5:59
  • As I already wrote, there's no directory with this name.
    – Enlico
    Commented Jun 19, 2016 at 9:55

4 Answers 4

10

I found the answer here: color scheme's and syntax' files can be found in /usr/share/vim/.

3

You should install new ones into

$HOME/.vim/colors/

you can run

mkdir -p ~/.vim/colors

to create it.

3
  • This is absolutely not what OP asked for.
    – fde-capu
    Commented May 1, 2022 at 0:50
  • Would you share what need to be install? "colorscheme" from Vim, vimcolorschemes.com?
    – Cloud Cho
    Commented Sep 8, 2023 at 16:04
  • Can I put any Vim plugin into this folder? I use some plugins that are color related, but not actually a colorschemes. Commented Apr 20 at 5:34
1

in macOS v 12.1 (Monterey) you can use below to list all available color schemes

ls -l /usr/share/vim/vim*/colors/
0
1

FYI, in Vim,

:h :colo

leads to (reformatting applied):

colo[rscheme] {name} Load color scheme {name}. This searches 'runtimepath' for the file "colors/{name}.vim".

and you can jump to the help for runtimepath with CTRL-] or

:h runtimepath

But this will tell you only the defaults. To view the actual, current runtimepath:

:set runtimepath

or

:set rtp

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .