O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

gVim-specific configuration

gVim is a standalone application, and lets you configure more than out-of-the box Vim does. In fact, gVim supports having its own configuration file (in addition to reading .vimrc): .gvimrc.

The primary option for managing how the GUI looks is guioptions. This configuration string takes a set of letters, which enable options. Some relevant settings might include the following:

  • a and Pautomatically yank the visual selection into the system clipboard (for * and + registers respectively, see Registers in Chapter 2, Advanced Editing and Navigation)
  • cuse console dialogs instead of pop-ups
  • edisplay tabs using GUI components
  • mdisplay a menu bar
  • Tinclude a toolbar
  • r, l, and bmake right, left, and bottom scroll bars ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required