comparison runtime/doc/gui.txt @ 2033:de5a43c5eedc

Update documentation files.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 20:52:26 +0100
parents 5232b9862f23
children b9e314fe473f
comparison
equal deleted inserted replaced
2032:592032e9e167 2033:de5a43c5eedc
1 *gui.txt* For Vim version 7.2. Last change: 2008 Jun 14 1 *gui.txt* For Vim version 7.2. Last change: 2009 Jan 22
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
33 gvim [options] [files...] 33 gvim [options] [files...]
34 34
35 The X11 version of Vim can run both in GUI and in non-GUI mode. See 35 The X11 version of Vim can run both in GUI and in non-GUI mode. See
36 |gui-x11-start|. 36 |gui-x11-start|.
37 37
38 *gui-init* *gvimrc* *.gvimrc* *_gvimrc* 38 *gui-init* *gvimrc* *.gvimrc* *_gvimrc* *$MYGVIMRC*
39 The gvimrc file is where GUI-specific startup commands should be placed. It 39 The gvimrc file is where GUI-specific startup commands should be placed. It
40 is always sourced after the |vimrc| file. If you have one then the $MYGVIMRC 40 is always sourced after the |vimrc| file. If you have one then the $MYGVIMRC
41 environment variable has its name. 41 environment variable has its name.
42 42
43 When the GUI starts up initializations are carried out, in this order: 43 When the GUI starts up initializations are carried out, in this order:
44 - The 'term' option is set to "builgin_gui" and terminal options are reset to 44 - The 'term' option is set to "builtin_gui" and terminal options are reset to
45 their default value for the GUI |terminal-options|. 45 their default value for the GUI |terminal-options|.
46 - If the system menu file exists, it is sourced. The name of this file is 46 - If the system menu file exists, it is sourced. The name of this file is
47 normally "$VIMRUNTIME/menu.vim". You can check this with ":version". Also 47 normally "$VIMRUNTIME/menu.vim". You can check this with ":version". Also
48 see |$VIMRUNTIME|. To skip loading the system menu include 'M' in 48 see |$VIMRUNTIME|. To skip loading the system menu include 'M' in
49 'guioptions'. *buffers-menu* *no_buffers_menu* 49 'guioptions'. *buffers-menu* *no_buffers_menu*
471 |:unmenu-all|. You can also avoid the default menus being loaded by adding 471 |:unmenu-all|. You can also avoid the default menus being loaded by adding
472 this line to your .vimrc file (NOT your .gvimrc file!): > 472 this line to your .vimrc file (NOT your .gvimrc file!): >
473 :let did_install_default_menus = 1 473 :let did_install_default_menus = 1
474 If you also want to avoid the Syntax menu: > 474 If you also want to avoid the Syntax menu: >
475 :let did_install_syntax_menu = 1 475 :let did_install_syntax_menu = 1
476 If you do want the Syntax menu but not all the entries for each available 476 The first item in the Syntax menu can be used to show all available filetypes
477 syntax file (which take quite a bit of time to load): > 477 in the menu (which can take a bit of time to load). If you want to have all
478 :let skip_syntax_sel_menu = 1 478 filetypes already present at startup, add: >
479 :let do_syntax_sel_menu = 1
480
479 < 481 <
480 *console-menus* 482 *console-menus*
481 Although this documentation is in the GUI section, you can actually use menus 483 Although this documentation is in the GUI section, you can actually use menus
482 in console mode too. You will have to load |menu.vim| explicitly then, it is 484 in console mode too. You will have to load |menu.vim| explicitly then, it is
483 not done by default. You can use the |:emenu| command and command-line 485 not done by default. You can use the |:emenu| command and command-line