home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim45os2.zip / vim-4.5 / doc / vim_gui.txt < prev    next >
Text File  |  1996-10-15  |  23KB  |  529 lines

  1. *vim_gui.txt*   For Vim version 4.5.  Last modification: 1996 Oct 12
  2.  
  3.  
  4.                Vim's Graphical User Interface
  5.  
  6.  
  7.     1. Introduction                *gui_intro* *gui* *gvim*
  8.  
  9. 1.1 How to Start the GUI Version of Vim            *gui_start* *GUI*
  10.  
  11. First you must make sure you actually compile Vim with the GUI code
  12. included.  You can check this with the ":version" command, it should include
  13. "+GUI_Motif" or "+GUI_Athena".  Then you may run the GUI version of Vim in
  14. either of these ways:
  15.     gvim [options] [files...]
  16.     vim -g [options] [files...]
  17.  
  18. So if you call the executable "gvim", or make "gvim" a link to the
  19. executable, then the GUI version will automatically be used.  You may also
  20. start up the GUI from within the terminal version by using one of these
  21. commands:
  22.     :gui [+cmd] [-f] [files...]            *:gu* *:gui*
  23.     :gvim [+cmd] [-f] [files...]            *:gv* *:gvim*
  24.  
  25.                             *gui_fork*
  26. When the GUI is started, it does a fork() and exits the current process.
  27. When gvim was started from a shell this makes the shell accept further
  28. commands.  If you don't want this (e.g. when using gvim for a mail program
  29. that waits for gvim to exit), start gvim with "gvim -f", "vim -gf" or use
  30. ":gui -f".  Don't use "vim -fg", because "-fg" specifies the foreground
  31. color.  If you want the GUI to run in the foreground always, include the 'f'
  32. flag in 'guioptions'.  |-f|.
  33.  
  34.                             *gui_init*
  35. When the GUI starts up initializations are carried out, in this order:
  36. - If the system gvimrc exists, it is sourced.  The name if this file is
  37.   something like "/usr/local/share/vim/gvimrc".  You can check this with
  38.   ":version".
  39. - If the GVIMINIT environment variable exists and is not empty, it is
  40.   executed as an Ex command.  Otherwise, if the user gvimrc file exists, it
  41.   is sourced.  The name of this file is something like "$HOME/.gvimrc".  You
  42.   can check this with ":version".
  43. - If the 'exrc' option is set (which is NOT the default) the file ./.gvimrc
  44.   is sourced, if it exist and isn't the same file as the system or user
  45.   gvimrc file.  If this file is not owned by you, some security restrictions
  46.   apply.
  47.  
  48. You can use the gvimrc files to set up your own customised menus (see |:menu|)
  49. and initialise other things that you may want to set up differently from the
  50. terminal version.
  51.  
  52. There are a number of options which only have meaning in the GUI version of
  53. Vim.  These are 'guifont', 'guipty' and 'guioptions'.  They are documented
  54. in |vim_ref.txt| with all the other options.
  55.  
  56.  
  57. 1.2 GUI Resources                    *gui_resources*
  58.  
  59. If using the Motif or Athena version of the GUI (which are the only versions
  60. available at the moment), a number of X resources are available.  You should
  61. use Vim's class "Vim" when setting these.  They are as follows:
  62.  
  63.     Resource name    Meaning
  64.  
  65.     background        Color of background.
  66.     foreground        Color of normal text.
  67.     boldColor        Color of bold text.
  68.     italicColor        Color of italic text.
  69.     underlineColor    Color of underlined text.
  70.     cursorColor        Color of the cursor.
  71.     font        Name of font used for normal text.
  72.     boldFont        Name of font used for bold text.
  73.     italicFont        Name of font used for italic text.
  74.     boldItalicFont    Name of font used for bold, italic text.
  75.     geometry        Initial geometry to use for gvim's window (default
  76.             is same size as terminal that started it).
  77.     scrollbarWidth    Thickness of scrollbars.
  78.     menuHeight        Height of the menu bar.
  79.     borderWidth        Thickness of border around text area.
  80.     reverseVideo    Boolean: should reverse video be used?
  81.     menuBackground    Color of menu backgrounds.
  82.     menuForeground    Color of menu foregrounds.
  83.     scrollBackground    Color of trough portion of scrollbars.
  84.     scrollForeground    Color of slider and arrow portions of scrollbars.
  85.  
  86. A special font for italic, bold, and italic-bold text will only be used if
  87. the user has specified one via a resource.  No attempt is made to guess what
  88. fonts should be used for these based on the normal text font at the moment.
  89.  
  90. Note: All fonts must be of the same size!!!  If you don't do this, text will
  91. disappear.  Vim does not check the font sizes.
  92.  
  93. If any of these things are also set with Vim commands, eg with
  94. ":set guifont=Screen15", then this will override the X resources (currently
  95. 'guifont' is the only option that is supported).
  96.  
  97. Here is an example of what you might put in your ~/.Xdefaults file:
  98.  
  99. Vim*useSchemes:            all
  100. Vim*sgiMode:            true
  101. Vim*useEnhancedFSB:        true
  102. Vim.foreground:            Black
  103. Vim.background:            Wheat
  104. Vim.boldColor:            Blue
  105. Vim.italicColor:        Magenta
  106. Vim.underlineColor:        Brown
  107. Vim.cursorColor:        DarkGreen
  108. Vim*menuBar*font:        7x13
  109.  
  110. The first three of these are standard resources on Silicon Graphics machines
  111. which make Motif applications look even better, highly recommended!
  112.  
  113. Don't use "Vim*geometry" in the defaults.  This will break the menus.  Use
  114. "Vim.geometry" instead.
  115.  
  116. If you get an error message "Cannot allocate colormap entry for "gray60",
  117. try adding this to your Vim resources (change the colors to your liking):
  118.  
  119. Vim*scrollBackground:        Black
  120. Vim*scrollForeground:        Blue
  121.  
  122. The resources can also be set with arguments to vim:
  123.  
  124.     argument        meaning                *-gui*
  125.  
  126.    -display <display>    Run vim on <display>        *-display*
  127.    -iconic        Start vim iconified        *-iconic*
  128.    -background <color>    Use <color> for the background    *-background*
  129.    -bg <color>        idem                *-bg*
  130.    -foreground <color>    Use <color> for normal text    *-foreground*
  131.    -fg <color>        idem                *-fg*
  132.    -bold <color>    Use <color> for bold text    *-bold*
  133.    -italic <color>    Use <color> for italic text    *-italic*
  134.    -underline <color>    Use <color> for underlined text    *-underline*
  135.    -ul <color>        idem                *-ul*
  136.    -cursor <color>    Use <color> for cursor        *-cursor*
  137.    -font <font>        Use <font> for normal text    *-font*
  138.    -fn <font>        idem                *-fn*
  139.    -boldfont <font>    Use <font> for bold text    *-boldfont*
  140.    -italicfont <font>    Use <font> for italic text    *-italicfont*
  141.    -geometry <geom>    Use <geom> for initial geometry    *-geometry*
  142.    -geom <geom>        idem                *-geom*
  143.    -borderwidth <width>    Use a border width of <width>    *-borderwidth*
  144.    -bw <width>        idem                *-bw*
  145.                                *-scrollbarwidth*
  146.    -scrollbarwidth <width>    Use a scrollbar width of <width>
  147.    -sw <width>        idem                *-sw*
  148.    -menuheight <height>    Use a menu bar height of <height> *-menuheight*
  149.    -mh <height>        idem                *-mh*
  150.    -reverse        Use reverse video        *-reverse*
  151.    -rv            idem                *-rv*
  152.    +reverse        Don't use reverse video        *-+reverse*
  153.    +rv            idem                *-+rv*
  154.    -xrm <resource>    Set the specified resource    *-xrm*
  155.  
  156.  
  157.     2. Scrollbars                    *gui_scrollbars*
  158.  
  159. There are vertical scrollbars and a horizontal scrollbars.  You may
  160. configure which ones appear with the 'guioptions' option.
  161.  
  162. The interface looks like this (with ":set guioptions=mlrb"):
  163.  
  164.                +------------------------------+
  165.                | File  Edit              Help | <- Menu bar (m)
  166.                +-+--------------------------+-+
  167.                |^|                          |^|
  168.                |#| Text area.               |#|
  169.                | |                          | |
  170.                |v|__________________________|v|
  171.  Normal status line -> |-+ File.c              5,2  +-|
  172.  between Vim windows   |^|""""""""""""""""""""""""""|^|
  173.                | |                          | |
  174.                | | Another file buffer.     | |
  175.                | |                          | |
  176.                |#|                          |#|
  177.  Left scrollbar (l) -> |#|                          |#| <- Right
  178.                |#|                          |#|    scrollbar (r)
  179.                | |                          | |
  180.                |v|                          |v|
  181.                +-+--------------------------+-+
  182.                | |< ####                   >| | <- Bottom
  183.                +-+--------------------------+-+    scrollbar (b)
  184.  
  185. Any of the scrollbar or menu components may be turned off by not putting the
  186. appropriate letter in the 'guioptions' string.  The bottom scrollbar is
  187. only useful when 'nowrap' is set.
  188.  
  189.  
  190. 2.1 Vertical Scrollbars                    *gui_vert_scroll*
  191.  
  192. Each Vim window has a scrollbar next to it which may be scrolled up and down
  193. to move through the text in that buffer.  The size of the scrollbar-thumb
  194. indicates the fraction of the buffer which can be seen in the window.
  195. When the scrollbar is dragged all the way down, the last line of the file
  196. will appear in the top of the window.
  197.  
  198.  
  199. 2.2 Horizontal Scrollbars                *gui_horiz_scroll*
  200.  
  201. The horizontal scrollbar (at the bottom of the Vim GUI) may be used to
  202. scroll text sideways when the 'wrap' option is turned off.  The
  203. scrollbar-thumb size is such that the text of the current cursor line may be
  204. scrolled as far as possible left and right.
  205.  
  206.  
  207.     3. Mouse Control                *gui_mouse*
  208.  
  209. The mouse only works if the appropriate flag in the 'mouse' option is set.
  210. When the GUI is switched on the 'mouse' option is set to "a", enabling
  211. it for all modes except for the "hit return to continue" message. This can
  212. be changed from the "gvimrc" file.
  213.  
  214.  
  215. 3.1 Moving Cursor with Mouse                *gui_mouse_move*
  216.  
  217. Click the left mouse button where you want the cursor to go, and it does!
  218. This works in Normal mode (if 'mouse' contains 'n' or 'a'), Visual mode (if
  219. 'mouse' contains 'v' or 'a') and Insert mode (if 'mouse' contains 'i' or
  220. 'a'), if you click the mouse somewhere in a text buffer. You may use this
  221. with an operator such as 'd' to delete text from the current cursor position
  222. to the position you point to with the mouse.  That is, you hit 'd' and then
  223. click the mouse somewhere.  If you are on the ':' line (or '/' or '?'), then
  224. clicking the left or right mouse button will position the cursor on the ':'
  225. line (if 'mouse' contains 'c' or 'a').  In any situation the middle mouse
  226. button may be clicked to paste the current selection.
  227.  
  228.  
  229. 3.2 Visual Selection with Mouse                *gui_mouse_select*
  230.  
  231. The right mouse button may be clicked somewhere to extend the visual
  232. selection to the position pointed to with the mouse.  If already in Visual
  233. mode then the closest end will be extended, otherwise Visual mode is started
  234. and extends from the old cursor position to the new one.
  235.  
  236. Double clicking may be done to make the selection word-wise, triple clicking
  237. makes it line-wise, and quadruple clicking makes it rectangular block-wise.
  238.  
  239. Visual selection, however it is invoked, makes Vim the owner of the
  240. windowing system's primary selection, so that the highlighted text may be
  241. pasted into other windows.  Similarly, selected text from other windows may
  242. be pasted into Vim in Normal mode, Insert mode, or on the ':' line by
  243. clicking the middle mouse button.
  244.  
  245.  
  246. 3.3 Other Text Selection with Mouse        *gui_mouse_xterm_like*
  247.  
  248. When in Command-line mode, at the hit-return prompt or whenever the current
  249. mode is not in the 'mouse' option, a different kind of selection is used.
  250. It is more like what happens in an xterm.  Let's call this xterm-like
  251. selection.  Any text in the Vim window can be selected.  Select the text by
  252. pressing the left mouse button at the start, drag to the end and release.
  253. Right mouse button extends the selection.  Middle mouse button pasts the
  254. text.
  255.  
  256.  
  257. 3.4 Using Mouse on Status Lines                *gui_mouse_status*
  258.  
  259. Clicking the left or right mouse button on the status line below a Vim
  260. window makes that window the current window.  The mouse may then be dragged
  261. up and down to move the status line, thus resizing the windows above and
  262. below it.
  263.  
  264.  
  265. 3.5 Various Mouse Clicks                *gui_mouse_various*
  266.  
  267.     <S-LeftMouse>    Search forward for the word under the mouse click.
  268.     <S-RightMouse>    Search backward for the word under the mouse click.
  269.     <C-LeftMouse>    Jump to the tag name under the mouse click.
  270.     <C-RightMouse>    Jump back to position before the previous tag jump
  271.             (same as "CTRL-T")
  272.  
  273.  
  274. 3.6 Mouse Mappings                    *gui_mouse_mapping*
  275.  
  276. The mouse events, complete with modifiers, may be mapped.  Eg:
  277.     :map <S-LeftMouse>     <RightMouse>
  278.     :map <S-LeftDrag>      <RightDrag>
  279.     :map <S-LeftRelease>   <RightRelease>
  280.     :map <2-S-LeftMouse>   <2-RightMouse>
  281.     :map <2-S-LeftDrag>    <2-RightDrag>
  282.     :map <2-S-LeftRelease> <2-RightRelease>
  283.     :map <3-S-LeftMouse>   <3-RightMouse>
  284.     :map <3-S-LeftDrag>    <3-RightDrag>
  285.     :map <3-S-LeftRelease> <3-RightRelease>
  286.     :map <4-S-LeftMouse>   <4-RightMouse>
  287.     :map <4-S-LeftDrag>    <4-RightDrag>
  288.     :map <4-S-LeftRelease> <4-RightRelease>
  289. These mappings make selection work the way it probably should in a Motif
  290. application, with shift-left mouse allowing for extending the visual area
  291. rather than the right mouse button.
  292.  
  293. Mouse mapping with modifiers does not work for xterm-like selection.
  294.  
  295.  
  296.     4. Making GUI Selections            *gui_selections*
  297.  
  298. You may make selections with the mouse (see |gui_mouse_select|), or by using
  299. Vim's visual mode (see |v|).  If 'a' is present in 'guioptions', then
  300. whenever visual mode is invoked, or when the cursor moves while in visual
  301. mode, Vim becomes the owner of the windowing system's primary selection.
  302. There is a special register for storing this selection, it is the <"*>
  303. register.  Nothing is put in here unless the information about what text is
  304. selected is about to change (eg with a left mouse click somewhere), or when
  305. another application wants to paste the selected text.  Then the text is put
  306. in the <"*> register.  Similarly, when we want to paste a selection from
  307. another application, eg by clicking the middle mouse button, the selection
  308. is put in the <"*> register first, and then 'put' like any other register.
  309.  
  310. Note that when pasting text from one Vim into another separate Vim, the type
  311. of selection (character, line, or block) will also be copied.
  312.  
  313.  
  314.     5. Menus                    *gui_menus*
  315.  
  316. 5.1 Using Menus                        *gui_using_menus*
  317.  
  318. The default menus are quite simple at the moment.  Power Vim users won't use
  319. them much.  But the power is in adding your own menus and menu items.  They
  320. are most useful for things that you can't remember what the key sequence
  321. was.
  322.  
  323. Eventually I would like to expand the set of default menus to use pop up and
  324. other windows for confirmation, file selection etc.  Maybe have a dialogue
  325. box for browsing and choosing buffers, etc.
  326.  
  327. Motif supports Tear-off menus.  These are sort of sticky menus or pop-up
  328. menus that are present all the time.  If the resizing does not work
  329. correctly, this may be caused by using something like "Vim*geometry" in de
  330. defaults.  Use "Vim.geometry" instead.
  331.  
  332. To help you set up your own menus, you can start off with the default set.
  333. See |vim_menu.txt| for a set of menu commands that recreates the default
  334. menus.  You can insert this in your .gvimrc file and change it to your
  335. liking.
  336.  
  337. 5.2 Creating New Menus                    *gui_creating_menus*
  338.  
  339.                     *:me* *:menu* *:noremenu*
  340.                         *:nmenu* *:nnoremenu*
  341.                         *:vmenu* *:vnoremenu*
  342.                         *:imenu* *:inoremenu*
  343.                         *:cmenu* *:cnoremenu*
  344. To create a new menu item, use the ":menu" commands.  They are exactly like
  345. the ":map" set of commands but the first argument is a menu item name, given
  346. as a path of menus and submenus with a '.' between them. eg:
  347.     :menu File.Save  :w^M
  348.     :inoremenu File.Save  ^O:w^M
  349.     :menu Edit.Big\ Changes.Delete\ All\ Spaces  :%s/[ ^I]//g^M
  350.  
  351. This last one will create a new item in the menu bar called "Edit", holding
  352. the mouse button down on this will pop up a menu containing the item
  353. "Big Changes", which is a sub-menu containing the item "Delete All Spaces",
  354. which when selected, performs the operation.
  355.  
  356. Note that the '<' and 'k' flags in 'cpoptions' also apply here (when
  357. included they make the <> form and raw key codes not being recognized).
  358.  
  359.  
  360. 5.3 Showing What Menus Are Mapped To            *gui_showing_menus*
  361.  
  362. To see what an existing menu is mapped to, use just one argument after the
  363. menu commands (just like you would with the ":map" commands).  If the menu
  364. specified is a submenu, then all menus under that hierarchy will be shown.
  365. If no argument is given after :menu at all, then ALL menu items are shown
  366. for the appropriate mode (eg, Command-line mode for :cmenu).
  367.  
  368. Note that hitting <Tab> while entering a menu name after a menu command may
  369. be used to complete the name of the menu item.
  370.  
  371.  
  372. 5.4 Deleting Menus                    *gui_delete_menus*
  373.  
  374.             *:unmenu* *:nunmenu* *:vunmenu* *:iunmenu* *:cunmenu*
  375.             *:unme*   *:nunme*   *:vunme*   *:iunme*   *:cunme*
  376. To delete a menu item or a whole submenu, use the unmenu commands, which are
  377. analogous to the unmap commands.  Eg:
  378.     :unmenu! Edit.Paste
  379.  
  380. This will remove the Paste item from the Edit menu for Insert and
  381. Command-line modes.
  382.  
  383. Note that hitting <Tab> while entering a menu name after an umenu command
  384. may be used to complete the name of the menu item for the appropriate mode.
  385.  
  386. To remove all menus use:
  387.     :unmenu *    " remove all menus in Normal and visual mode
  388.     :unmenu! *    " remove all menus in Insert and Command-line mode
  389.  
  390.  
  391. 5.5 Examples for Menus
  392.  
  393. Here is an example on how to add menu items with menu's!  You can add a menu
  394. item for the keyword under the cursor.  The register "z" is used.
  395.  
  396. :nmenu Words.Add\ Var      wb"zye:menu! Words.<C-R>z <C-R>z<CR>
  397. :nmenu Words.Remove\ Var  wb"zye:unmenu! Words.<C-R>z<CR>
  398. :vmenu Words.Add\ Var      "zy:menu! Words.<C-R>z <C-R>z <CR>
  399. :vmenu Words.Remove\ Var  "zy:unmenu! Words.<C-R>z<CR>
  400. :imenu Words.Add\ Var      <Esc>wb"zye:menu! Words.<C-R>z <C-R>z<CR>a
  401. :imenu Words.Remove\ Var  <Esc>wb"zye:unmenu! Words.<C-R>z<CR>a
  402.  
  403. (the rhs is in <> notation, you can copy/paste this text to try out the
  404. mappings, or put these lines in your gvimrc; "<C-R>" is CTRL-R, "<CR>" is
  405. the <CR> key.  |<>|)
  406.  
  407.  
  408.     6. Extras                    *gui_extras*
  409.  
  410. This section describes other features which are related to the GUI.
  411.  
  412.     - With the GUI, there is no wait for one second after hitting escape,
  413.       because the key codes don't start with <Esc>.
  414.  
  415.     - Typing ^V followed by a special key in the GUI will insert "<Key>",
  416.       since the internal string used is meaningless.
  417.       Modifiers may also be held down to get "<Modifiers-Key>".
  418.  
  419.     - In the GUI, the modifiers SHIFT, CTRL, and ALT (or META) may be used
  420.       within mappings of special keys and mouse events.  eg:
  421.         :map <M-LeftDrag> <LeftDrag>
  422.  
  423.     - In the GUI, several normal keys may have modifiers in mappings etc,
  424.       these are <Space>, <Tab>, <NL>, <CR>, <Esc>.
  425.  
  426.  
  427.     7. Shell Commands                *gui_pty*
  428.  
  429. WARNING: Executing an external command from the GUI will not always work.
  430. "normal" commands like "ls", "grep" and "make" work fine.  Commands that
  431. require an intelligent terminal like "less" and "ispell" won't work.  Some
  432. may even hang and need to be killed from another terminal.  So be careful!
  433.  
  434. There are two ways to do the I/O with a shell command: Pipes and a
  435. pseudo-tty.  The default is to use pipes.  This should work on any Unix
  436. system.  The disadvantage is that some shell commands will notice that a
  437. pipe is being used and behave differently.  The ":sh" command won't show a
  438. prompt, although it will sort of work.  ":!ls" will list the files in one
  439. column.
  440.  
  441. Alternatively a pseudo-tty can be used.  Unfortunately, the implementation of
  442. this is different on every Unix system.  And many systems require root
  443. permission.  Still this might work better than pipes on some systems.  To
  444. see if this works better for you set the 'guipty' option on.  Be prepared to
  445. "kill" the started command or Vim, commands like ":r !cat" may hang!
  446.  
  447.  
  448.     8. Compiling                    *gui_compiling*
  449.  
  450. You need at least Motif version 1.2 and/or X11R5.  Motif 2.0 and X11R6 are
  451. OK.  Motif 1.1 and X11R4 don't work properly (but you might make it work
  452. with a bit of work).
  453.  
  454. By default the Makefile tries to compile Vim with the GUI.  When the Motif
  455. files cannot be found the Athena files will be searched for.  When both of
  456. them cannot be found, the GUI will be disabled.  When you have the Motif or
  457. Athena files in a directory where configure doesn't look, edit the Makefile
  458. to enter the names of the directories.  Search for "GUI_INC_LOC" for an
  459. example to set the Motif directories, "CONF_OPT_X" for Athena.
  460.  
  461. Don't try to mix files from different Motif, Athena and X11 versions.  This
  462. will cause problems.  For example, using header files for X11R5 with a
  463. library for X11R6 probably doesn't work (although the linking won't give an
  464. error message, Vim will crash later).
  465.  
  466. The Athena version uses the Xaw widget set by default.  If you have the 3D
  467. version, you might want to link with Xaw3d instead.  This will make the
  468. menus look a bit better.  Edit the Makefile and look for "XAW_LIB".  The
  469. scrollbars will remain the same, because Vim has its own, which are already
  470. 3D (in fact, they look more like Motif).
  471.  
  472.  
  473.     9. To Do List                    *gui_todo*
  474.  
  475.     - Flashes really badly in certain cases when running remotely from a
  476.       Sun.
  477.  
  478.     - When taking the geometry of the window where gvim was started, check
  479.       that the GUI window will fit on the screen.
  480.  
  481.     - Window should be redrawn when resizing at the hit-return prompt.
  482.  
  483.     - Use different cursor and mouse shapes/colors for different modes.
  484.  
  485.     - Scrollbars with Motif 1.1 are ordered upside down!  Do we care?
  486.  
  487.     - Motif steals <F10> from us, to pop up menus with the keyboard.  How do
  488.       we get it back if we want it?
  489.  
  490.     - Paste in Insert mode should not do autowrap etc.
  491.  
  492.     - Option/resource to use pointer focus from the mouse to select the
  493.       current Vim window.
  494.  
  495.     - Add a new command :highlight for specifying how various things should
  496.       be highlighted, allowing colors to be given.  Currently it's all hard
  497.       coded, the text color, bg color etc.
  498.  
  499.     - We need a nice little picture to go on the icon :-)  But how do we do
  500.       that?
  501.  
  502.     - ":menu" should take count for where the menu is inserted (for first
  503.       menu item that doesn't exist yet)
  504.  
  505.     - Would be nice if menu items can be specified for several modes at
  506.       once.
  507.  
  508.     - Make better default menus!
  509.  
  510.     - Add "Buffers" menu, list of (hidden) buffers.
  511.  
  512.     - Add menu item to "Keep Insert mode". More generally: Include a nice
  513.       way to change options.
  514.  
  515.     - When using a pseudo-tty Vim should behave like some terminal. Terminal
  516.       codes to/from shell should be translated.
  517.  
  518.     - Make it easy to specify a shorcut (key) for a menu item.
  519.  
  520.     - :mkgvimrc command, that includes menus.
  521.  
  522.     - Would it be useful to be able to quit the GUI and go back to the
  523.       terminal where it was started from?
  524.  
  525.     - Finish off the todo list!
  526.  
  527.  
  528.  vim:tw=76:ts=8:sw=4
  529.