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 always visible

For example, if you wanted to display a menu bar, a toolbar, and always display a bottom scroll bar, you could do so by adding the following to your .vimrc:

" GUI: Enable menu bar, toolbar, always display bottom scrollbar.
set guioptions=mTb

The changes will look like this (this screenshot depicts gVim in Windows):

You can learn more about gVim-specific options by reading :help gui.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.163.58