home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / amiga / vim46bin.lha / vim-4.6 / doc / vim_gui.txt < prev    next >
Encoding:
Text File  |  1997-03-12  |  21.9 KB  |  539 lines

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