Martín Fixman
Martín Fixman

Reputation: 9585

How can I compile gVim under Ubuntu?

I am trying to install the codecheck plugin for gVim, but to do so I must compile gVim with the plugin.

On apt, every apt-get source to a gVim package downloads the normal Vim source, so I guess compiling the GUI must be a configure option. However, I can install the plugin on Vim but I can't compile gVim (since when I make there appears no gVim executable).

Any help compiling gVim?

Upvotes: 7

Views: 6672

Answers (4)

silvenon
silvenon

Reputation: 2197

It seems this is a more updated version: http://vim.wikia.com/wiki/Building_Vim

Upvotes: 1

rossipedia
rossipedia

Reputation: 59387

I'm pretty sure you can just add --enable-gui=gtk2 when configureing. At least, that's how I remember doing it.

Upvotes: 8

Nate W.
Nate W.

Reputation: 9249

After you've got your dependencies installed and you can't find the gvim executable, then try vim -g from the terminal - that's the flag for starting in GUI mode. It's always worth a shot.

Upvotes: 2

jamessan
jamessan

Reputation: 42667

  1. apt-get build-dep vim to install the build dependencies for Vim.
  2. Read src/INSTALL, as explained in the README.txt in the top-level directory of the source, to see how to configure and compile it.

Upvotes: 4

Related Questions