winchendonsprings
winchendonsprings

Reputation: 491

GVim defaults in command line Vim

Where are all the default plugins and color schemes form gvim located. I would like to create some sym links so that I can use them all in my command line vim.

I did a little searching before posting and saw this

Yes, it is possible to make gvim exactly match terminal Vim. (It's not always possible to go the other way, though, gvim allows more colors so you can't always make terminal vim match if you're using gvim as your base.)

EDIT: I'm on a Linux machine.

Upvotes: 0

Views: 420

Answers (2)

romainl
romainl

Reputation: 196886

They are supposed to be in the same place for GVim and Vim.

On UNIX-based systems you should put all your plugins and colorschemes in ~/.vim.

If a plugin is installed there it's available in Vim and Gvim as long as both version numbers match the plugin's requirements.

I agree with your quote: "everything" that works in Vim will work in GVim but not the other way around. Mappings, for example, can make use of more keys in GVim than in Vim. Modal windows are possible in GVim but not in Vim. Like idigas wrote, the coolest GVim themes won't work in Vim because GVim supports thousands of colours while the best terminal emulators are limited to 256.

Because I use both GVim and Vim, I always think CLI Vim first to be safe.

Upvotes: 1

Rook
Rook

Reputation: 62588

Depending on your OS, vim (and gvim ...) sources the files from several locations, in this order (on Windows)

$HOME/vimfiles
$VIM/vimfiles
$VIMRUNTIME
$VIM/vimfiles/after ... and so on

You can see the contents of each $HOME, $VIM ... variable, with echo $HOME, echo $VIM. To see the list of those locations, depending on the OS, see help vimfiles.

Note: GVim and Vim (in a terminal) use different highlighting options. GVim uses guibg/guifg... Vim, term ...

Upvotes: 0

Related Questions