home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim53os2.zip / vim-5.3 / doc / todo.txt < prev    next >
Text File  |  1998-08-30  |  113KB  |  2,108 lines

  1. *todo.txt*      For Vim version 5.3.  Last modification: 1998 Aug 30
  2.  
  3.  
  4.           VIM REFERENCE MANUAL    by Bram Moolenaar
  5.  
  6.  
  7.                               TODO list for Vim            *todo*
  8.  
  9. This is a veeeery long list of known bugs, current work, and desired
  10. improvements.  To make it a little bit accessible, the items are grouped by
  11. subject.  In the first columns of the line a classification is used to be
  12. able to look for "the next thing to do":
  13.  
  14. Priority classification:        Amount of work expected:
  15. 9    next point release            q    quick fix
  16. 8    next release                s    small change
  17. 7    as soon as possible            l    a little work
  18. 6    soon                        w    some work
  19. 5    should be included            b    big change
  20. 4    nice to have                m    major change
  21. 3    consider including            ?    on hold (don't know how to fix it)
  22. 2    maybe not                    -    unclassified
  23. 1    probably not
  24. -    unclassified
  25.  
  26.                                                         *known-bugs*
  27. -------------------- Known bugs and current work -----------------------
  28.  
  29. Win32 GUI known bugs:
  30. 8    ":set lines=30" in $VIM/_gvimrc, lines becomes 32 (Negri)
  31. 8    MessageBox used for error messages can be too big.    There is no way to
  32.     scroll it, or even hit the OK button (but you can hit return).
  33. 8    Win32 GUI: 'mousefocus' is disabled until the next mouse click, when
  34.     trying to exit by hitting the X in the title bar. (Webb)
  35. 8    When the 'shell' cannot be executed, should give an appropriate error msg.
  36. 8    Add a flag to ignore error messages for shell commands (for mappings).
  37. 9    Using the mouse wheel on a Logitech mouse, a scroll up sometimes doesn't
  38.     work properly.    When syntax highlighting is off, it's OK.  Timing problem?
  39.     Or is cursor position not updated correctly?  Also seems to happen when
  40.     dragging a status line, causing the text to scroll the wrong direction.
  41. 9    Scrollbar width doesn't change when selecting other windows appearance.
  42. 9    With 'nowrap', the bottom scrollbar sometimes shows a small thumb. (Webb)
  43. 8    Drawing text transparantly doesn't seem to work (when drawing part cursor).
  44. 8    The compose key doesn't work properly (Cepas).
  45. 8    CTRL key doesn't always work in combination with ALT key.  It does work
  46.     for function keys, not for alphabetic characters.
  47. 8    CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY.  How do we
  48.     know which keyboard is being used?
  49. 9    Clipboard doesn't work as it should:
  50.     - When pasting, interrupting with CTRL-C or CTRL-Break doesn't work.
  51.     - Selecting text while editing a command-line, or output of ":set", has an
  52.       implied copy to the clipboard.  Remove this, and add a command character
  53.       to copy/cut/delete the selected text.
  54.     --> Add 'o' flag to 'guioptions': When included, the unnamed buffer is
  55.     copied to the clipboard, and the other way around.    When excluded, only
  56.     the "* register equals the clipboard. (Shan)
  57. 9    Screen redraw problems when: ":split file" (or CTRL-W ^), causing the
  58.     ATTENTION message.    Also when there are two windows and using ":recover".
  59.     (Webb)    'dir' must have more than one directory.
  60. 8    When using ":se guifont=Courier_New" bold chars leave pixels behind, in
  61.     front of a character, after a TAB.  (McRae)
  62. 8    When cursor blinking is off, using "zt" on the first character of a line,
  63.     which is not blank, the cursor isn't shown. (Webb)
  64. 8    When scrolling, and a background color is dithered, the dither pattern
  65.     doesn't always join correctly between the scolled area and the new drawn
  66.     area (Koloseike).
  67. 8    Resizing the window at the hit-return prompt doesn't redraw.
  68. 8    When selecting a bigger font, window can become larger than the screen.
  69.     But on a click in the window, it resizes.  (Aaron)
  70. 7    File/Print uses notepad, which puts the name of the temp file on top of
  71.     each page.  How do we get the actual file name there?
  72. 7    Dialog buttons can't be selected properly with cursor keys, when the
  73.     default is not the first button. Tsindlekht has a solution, but then the
  74.     pointer is not on the default button.
  75. 8    install.exe, vimrun.exe and ctags are not build from Gvim_vc.mak.  When
  76.     added, check that this works from the command line and from the IDE.
  77. 8    ":r !mycommand" doesn't pass the environment to the external command.
  78. 7    In compatible mode, ":set sm", cursor doesn't move to matching (.  After
  79.     ":set cpo-=m" it works.  Need a flush-output somewhere?  (Glauber)
  80.  
  81.  
  82. Vi incompatibility:
  83. 8    Check wildcard handling:
  84.     :file {\*}         -- '*' (always)             '*', if '*' exists
  85.                                                  '{\*}', otherwise
  86.     :file {\\}         -- '\'                         '{\}', complains "Missing }"
  87.                                                  even if '\' does exist
  88. 9    Implement 'tagstack' option: when off, disable pushing tags onto the
  89.     stack (Vi compatible).  Useful for mappings.
  90. 8    With undo/redo only marks in the changed lines should be changed.  Other
  91.     marks should be kept.  Vi keeps each mark at the same text, even when it
  92.     is deleted or restored. (Webb)  Also: A mark is lost after: make change,
  93.     undo, redo and undo.
  94. 8    When using ":n" ":rew", the prev. context mark is in the same place as the
  95.     cursor, not on the first line.
  96. 8    text is put in register 1 when using "c" and "d" with a motion character:
  97.     <control-A>   %   (   ) `<character>   /   ?   N n     {     }
  98.     (from Nvi manual).
  99. 8    When stdin is not a tty, and Vim reads commands from it, an error should
  100.     make Vim exit.
  101. 8    Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
  102.     (currently you can continue typing, but it's truncated later anyway).
  103. 8    When loading a file in the .exrc, Vi loads the argument anyway.  Vim skips
  104.     loading the argument if there is a file already. When no file argument
  105.     given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
  106. 8    Add 'swapignore' option? (Tsirkin)
  107. 8    In insert mode, when using <BS> or <Del>, don't wipe out the text, but
  108.     only move back the cursor.    Behaves like '$' in 'cpoptions'.  Use a flag
  109.     in 'cpoptions' to switch this on/off.
  110. 8    In Ex silent mode or when reading commands from a file, what exactly is
  111.     not printed and what is?  Check ":print", ":set all", ":args", ":vers",
  112.     etc.  At least there should be no prompt. (Smulders)
  113.     --> Make a difference between informative messages, prompts, etc. and
  114.         error messages, printing text, etc.
  115. 7    When interrupting reading a file, Vi considers the buffer modified.  Add a
  116.     'cpoptions' flag for this?
  117. 7    CTRL-L is not the end of a section?  It is for Posix!  Make it an option.
  118. 7    Implement 'prompt' option.    Init to off when stdin is not a tty.
  119. 7    CTRL-T in insert mode inserts 'shiftwidth' of spaces at the cursor.  Add a
  120.     flag in 'cpoptions' for this.
  121. 7    Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
  122. 7    "z3<CR>" should still use the whole window, but only redisplay 3 lines.
  123. 7    ":tag xx" should move the cursor to the first non-blank.  Or should it go
  124.     to the match with the tag?    Option?
  125. 7    Implement 'autoprint'/'ap' option.
  126. 7    Support enctrypted files (-x option).  See also -z.
  127. 6    After ":cd", meaning of file names for existing buffers changes.  Do we
  128.     care?
  129. 7    Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
  130.     (Sayre).
  131. 7    Add flag in 'cpoptions' that makes operator (yank, filter) not move the
  132.     cursor, at least when canceled. (default vi compatible).
  133. 7    Make "5dd" on last-but-one-line not delete anything (vi compatible).
  134.     Change cursor_down()???  Many other commands will change too: "5j", "c5j",
  135.     etc.  Add flag in 'cpoptions'?
  136. 7    This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
  137.     In Vi you can edit in visual mode, and when doing "Q" you jump to the next
  138.     match.  Nvi can do it too.
  139. 7    Support '\' for line continuation in these commands: (Luebking)
  140.         g/./a\                g/pattern1/ s/pattern2/rep1\\
  141.         line 1\                line 2\\
  142.         line 2\                line 3\\
  143.         .                    line4/
  144.  
  145.  
  146. GUI:
  147. 8    Motif Dialog: Pointer should be moved to the default button.  Accelerators
  148.     don't work yet.
  149. 8    Motif Popup menu isn't working yet:
  150.     - Adding PopUp menu stops keyboard input until any menu is used.
  151.     - Using ":set guioptions-=m" pops up the menu, even though there is no
  152.       code for it...
  153. 8    Menu priority for sub-menus for: Amiga, Mac, VMS, Athena, BeOS.
  154. 8    Add menu separators.  Start and end with '-'?  Must be some way to remove
  155.     each separately.  ":amenu -1-", ":amenu -2-"?
  156.     (Win32: ../../patches/geddes_separator)
  157. 8    Add dialog for search/replace to other GUIs?  Tk has something for this,
  158.     use that code?  Or use Native dialog.
  159. 9    Basic flaw in the GUI code: NextScreen is updated before calling
  160.     gui_write(), but the GUI code relies on NextScreen to represent the state
  161.     of where it is processing the output.
  162. 9    When running an external program, it can't always be killed with CTRL-C.
  163.     e.g. on Solaris 5.5, when using "K" (Keech).  Other 'guipty' problems on
  164.     Solaris 2.6. (Marley)
  165. 9    gui_check_colors() is not called at the right moment.  Do it much later,
  166.     to avoid problems.
  167. 9    On Solaris: Using a "-geometry" argument, bigger than the window where Vim
  168.     is started from, causes empty lines below the cmdline. (raf)
  169. 9    When selecting the output from ":vers", including the hit-return message,
  170.     it works OK, unless another window is clicked on.
  171.     When getting window focus, and there is a Visual selection, grab the
  172.     selection again?  We somehow loose the selection when moving another
  173.     window to front.  Check how xterm does this.
  174. 9?    GUI Athena: When using "menu a.b.c.d lll", the "b" submenu does not
  175.     disappear.
  176. 9    Athena: Popup menu is shown on button up.  Should be shown on button down,
  177.     but then it doesn't work properly.
  178. 9?    Athena: Use one of the Syntax menu items.  Then ":aunmenu Syntax", Vim
  179.     crashes.
  180. 8    Athena GUI has extra stripes here and there. (Zeitlin).
  181. 9?    Athena: When using ":unmenu" in menu item, the reversing of menu items
  182.     is wrong.  Happens with Syntax/manual.    Problem with not removing the
  183.     reversed text when destroying the menu item?  For Rochholz Vim crashes.
  184.     After removing a menu completely, then adding another menu: The removed
  185.     menu reappears, but doesn't do anything.
  186. 9    gui_update_cursor() is called for a cursor shape change, even when there
  187.     are mappings to be processed.  Only do something when going to wait for
  188.     input.    Or maybe every 100 ms?
  189. 9    Between version 5.0h and 5.0i the Home and End keys stopped working for
  190.     Micheal Schulz (Linux and AIX).  Cannot reproduce it!
  191. 9    Adding many menu items, making two rows, still doesn't work properly on
  192.     HPUX (Motif 1.2).
  193. 8    X11: When the window size is reduced to fit on screen, there are blank
  194.     lines below the text and bottom scrollbar.  "gvim -geometry 80x78+0+0".
  195.     When the "+0+0" is omitted it works.
  196. 8    X11: <M-BS> doesn't work. (Riehm)
  197. 8    When the character cell of some fonts is different (ascent/descent), the
  198.     cursor leaves an underline behind (Hiebert).
  199. 8    When starting an external command, and 'guipty' set, BS and DEL are mixed
  200.     up.  Set erase character somehow?
  201. 8    A dead circumflex followed by a space should give the '^' character
  202.     (Rommel).  Look how xterm does this.
  203. 8    When trying to start GUI while $DISPLAY is invalid, falls back to vim with
  204.     the options set to gvim values.
  205.     - Reset everything and redo the initializations?
  206.     - Check for valid $DISPLAY before trying to start the GUI?
  207.     - Try connecting to the X server early.  Maybe with XtOpenDisplay()?
  208.     Also: gives strange error messages when repeating ":gui" (free() already
  209.     freed flashes by?).
  210.     Error message is followed by strange characters (starting with '$').
  211. 7    The compiled-in highlight defaults allocate colors, which will never be
  212.     freed.  Move them to a startup script?  Only use bold and underline for
  213.     the compiled-in defaults.
  214. 7    The cursor in an inactive window should be hollow.  Currently it's not
  215.     visible.
  216. 7    Under Linux, gvim with Lesstif crashes when using a menu.
  217. 7    GUI with Lesstif: adding a menu item that doesn't fit crashes Vim.
  218. 7    GUI with Lesstif: Tear-off menu's don't work.  Lesstif problem?
  219. 8    Motif: Tear-off menu item crashes Vim on some machines.  (Netherton)  It
  220.     works fine for me, maybe it's a Motif problem.
  221. 8    With non-Visual text selection in Insert mode, the character under the
  222.     cursor is not drawn correctly.
  223. 8    With non-Visually selected text, moving the start/end of the area with a
  224.     right mouse drag, should also move the cursor position, so that the cursor
  225.     is always at the start/end of the area
  226. 7    GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
  227.     hollow, after window lowered/raised it's OK. (Godfrey)
  228. 8    Problem in Athena, when "j" or "k" repeated quickly, display is messed up
  229.     (Lauther).
  230. 8    Athena: When dragging last status line with the mouse, small black lines
  231.     appear in the command line pseudo-scrollbar (only when status line moved
  232.     quickly).
  233. 8    When starting GUI with ":gui" while 'writedel' is non-zero, escape
  234.     sequences are split up.
  235. 8    When starting GUI with ":gui", and window is made smaller because it
  236.     doesn't fit on the screen, there is an extra redraw.
  237. 8    When setting font with .Xdefaults, there is an extra empty line at the
  238.     bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
  239. 8    When font shape changes, but not the size, doing ":set font=" does not
  240.     redraw the screen with the new font.  Also for Win32.
  241.     When the size changes, on Solaris 2.5 there isn't a redraw for the
  242.     remaining part of the window (Phillipps).
  243. 8    Window should be redrawn when resizing at the hit-return prompt.
  244. -    Flashes really badly in certain cases when running remotely from a Sun
  245.  
  246.  
  247. MSDOS/DJGPP:
  248. 9    Under "old" Windows 95, ":e filename/" deletes an existing "filename".
  249.     (Kim)  Is this fixed now?
  250. 8    Vim busy waits for new characters or mouse clicks.    Should put in some
  251.     sort of sleep, to avoid eating 50% of the CPU time.  Test on an unpatched
  252.     Windows 95 system!
  253. 9    DOS: Make CTRL-Fx and ALT-Fx work.    Use bioskey(2) to get modifier mask.
  254.     CTRL-F1 = CE-5E, CTRL-F2 = CE-5F, .., CTRL-F10 = CE-67
  255.     ALT-F1 = CE-68, ALT-F2 = CE-69, .., ALT-F10 = CE-71
  256.     <M-x> also doesn't work: produces a two-byte code.
  257.     Shifted cursor keys produce same codes as unshifted keys.
  258. 7    F11 and F12 under MSDOS don't work.  Can this be fixed?  Check the
  259.     interrupt list for a BIOS function for an extended keyboard.
  260. -    Hitting CTRL-P twice quickly (e.g. in keyword completion) on a 8088 machine,
  261.     starts printer echo! (John Mullin).
  262. -    Mapping things like <M-A> doesn't work, because it generates an extended
  263.     key code.  Use a translation table?
  264. -    MSDOS 16 bit version can't work with COMSPEC that has an argument, e.g.:
  265.     COMSPEC=C:\WINDOWS\COMMAND.COM /E:4096      (Bradley)
  266.     Caused by BCC system() function (Borland "make" has the same problem).
  267. 9    Check if with DJGPP 2.01 the problem of a path starting with a backslash is
  268.     still present.
  269. 9    Can't read an opened swap file when the "share" command has not been used.
  270.     At least ignore the swap files that Vim has opened itself.
  271. 8    Mouse: handle left&right button pressed as middle button pressed.  Add
  272.     modifier keys shift, ctrl and alt.
  273. 7    When too many files are open (depends on FILES), strange things happen.
  274.     The Dos16 version runs out of memory, in the Dos32 version "!ls" causes a
  275.     crash.  Another symptom: .swp files are not deleted, existing files are
  276.     "[New file]".
  277.  
  278.  
  279. MSDOS, OS/2 and Win32:
  280. 9    OS/2: Intro message doesn't work!?
  281. 9    ml_setname() contains code to handle ":!cd dir", but mf_do_open() doesn't.
  282.     Is this a bug?    How can the ":!cd dir" problem be reproduced anyway (Webb).
  283. 9    In MSDOS version(s): typing ESC three or four times crashes Vim, when
  284.     'visualbell' is set (Kielhorn).
  285. 8    Environment variables in DOS are not case sensitive.  Make a define for
  286.     STRCMP_ENV(), and use it when comparing environment var names.
  287.     Also: dos16 and dos32 need toupper() before getenv().
  288.  
  289.  
  290. Windows 95:
  291. -    Win32 version: changes font size in DOS box? (Man)
  292. -    There is an occasional lockup when repeating a key while scrolling.  Vim
  293.     unlocks when resizing the window.  Might be a Windows 95 problem.
  294. 8    Editing a file by it's short file name and writing it, makes the long file
  295.     name disappear.  Use Unix method for making a backup file?    Better: make
  296.     the way the backup file is made (copy or rename) an option, not a #define
  297.     (also needed for OS/2, the icon goes to the backup file).
  298.     Use FindFirstFile()->cAlternateFileName in fname_case() (George).
  299. 8    Doing wildcard expansion, will match the short filename, but result in the
  300.     long filename (both DJGPP and Win32).
  301.  
  302.  
  303. Win32:
  304. 9    Add an option (command line?) not to switch console buffers.  Required for
  305.     telnetd (Ford).  Change termcap_mode_start() and termcap_mode_end().
  306. 9    Mapping <C-S-Tab> on Win32 doesn't work correctly.
  307. 9    tmpnam() uses file in root of file system: "\asdf".  That doesn't work on
  308.     a Netware network drive.  Use same function as for Win32 GUI?
  309. -    Re-install the use of $TERM and support the use of different terminals,
  310.     besides the console.
  311. 8    When dropping a shortcut on gvim (.lnk file) edit the target, not the
  312.     shortcut itself.
  313. -    Under NT, these abbreviations don't always work correctly (Shahar):
  314.     :ca head split ../h/%<.h
  315.     :ca srcf split ../cpp/%<.cpp
  316. -    When exiting, sends ^M^M^J to the console in raw mode (Webb).
  317.  
  318.  
  319. Amiga:
  320. 9    Expanding file name for syntax files doesn't work correctly? (Campbell).
  321. 8    Executing a shell, only one option for 'shell' is separated.  Should do
  322.     all options, using white space separation.
  323.  
  324.  
  325. "Small" problems:
  326. 8    CTRL-A can't handle big "long" numbers, they become negative.  Check for
  327.     "-" character, if not present, use unsinged long.
  328. 8    ":let a = expand("`xterm`&")" starts an xterm asynchronously, but gives an
  329.     error message.  ":let a = expand("`xterm&`")" runs the xterm
  330.     synchronously.  What is happening here?
  331. 9    Check handling of overwriting of messages (start of edit(), in normal()).
  332.     Completely new policy?    Message history?
  333.     Wrong now: errors in c.syn cause wait_return for each message.
  334.     Very wrong: errors while redrawing cause endless loop.
  335.     "Vim normal.c", with an existing swap file, there is no hit-return for
  336.     the warning message.
  337.     Wrong: "!ls<CR>:pwd", output of "pwd" is removed by redraw.
  338.     Improvement:  When writing and reading a file (with ":wn" or 'autowrite'),
  339.     write the file messages after each other on the same line.    That's what Vi
  340.     does.
  341.     When exiting, with xterm changing screens, there is an extra empty line
  342.     (was included to get prompt in col 0 after error message).
  343.     Starting with "ex filename", file message is overwritten with "entering Ex
  344.     mode" message.
  345.     - Add flag to 'shortmess' to allow overwriting of all informative
  346.       messages, so the hit-return isn't shown that often.
  347.     - When termcap has been stopped, and swapping screens, should not do any
  348.       cursor positioning, only '\n' and '\r'.
  349. 9    On non-Unix systems it's possible to write over a readonly file, when
  350.     'readonly' is not set.  Need to check the file permissions explicitly.
  351.     Add a mch_writable(perm) function for each OS.
  352. 8    Make it possible to disable the special meaning of "#" in the first column
  353.     for ">>".
  354. 8    When doing ":qa", and there is a change in a buffer that is being edited
  355.     in another window, the current window will also be editing the buffer with
  356.     the change.  Should jump to the window with the changed buffer.
  357. 8    Should replace "screen_Columns" with "Columns", and use "new_Columns" for
  358.     the value to be used for Columns.  Same for "Rows".  Helps when using a
  359.     GUI with threads.
  360. 8    Add suspending with CTRL-Z at the "more" prompt, and when executing a long
  361.     script in do_cmdline().
  362. 8    When using 'hidden', many files will be open.  When Vim runs into the
  363.     maximum number of open files, error messages will appear.  Detect that
  364.     this problem is present, and close any hidden files that don't have
  365.     changes.
  366. 8    With 'viminfo' set such that the ".viminfo" file is written on a FAT
  367.     filesystem, an illegal file name may be created: ".vim".
  368. 8    "dd" on the last line of the file, causes the last but one line to be
  369.     redrawn.  Should not be necessary.
  370. 8    Using "gqj" near the last line of the window, makes the window scroll up,
  371.     even though this isn't necessary.
  372. 8    When backspacing, start of Insert should be adjusted.  E.g.,
  373.     "iasdf<Esc>aasdf<C-W><C-W>asdfasdfasdf<C-W>" stops at start of Insert,
  374.     while this is not logical.
  375. 9    In replace mode, when 'expandtab' and 'smarttab' are set, and inserting
  376.     Tabs, backspacing doesn't work correctly for Tabs inserted at the start of
  377.     the line (unless 'sts' is set too!).
  378. 9    incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
  379.     isn't updated).
  380. 9    '[ and '] should be set to start/end of line when using a linewise operator
  381.     (e.g., ":w").
  382. -    Redraw bug: After /pat, "." doesn't always redraw (when line gets longer?).
  383. -    These mappings don't work with the Win32 version: (Bradley)
  384.     nmap ,p {<Right>V}<Left>
  385.     nmap ,> ,p,>
  386.     vmap ,> >
  387. 8    Should be able to compile Vim in another directory, with $(srcdir) set to
  388.     where the sources are. Add $(srcdir) in the Makefile in a lot of places.
  389.     (Netherton)
  390. 7    For xterm, can get the title with "<Esc>[21t", no need to use X11 calls.
  391.     This returns "<Esc>]l<title><Esc>\".
  392. 7    Add 'titlerestored' option, to set the text for the title when Vim has
  393.     exited (copy of "oldtitle").
  394. 8    Support ACLs (Access Control Lists, Security Descriptor in WinNT).    Check
  395.     with Windows NT or HPUX 10.*?  Add configure check for it, add code for
  396.     when overwriting a file (viminfo or ":w" command) that copies the ACL to
  397.     the new file.  Use info from Maximo: GetNamedSecurityInfo and
  398.     SetNamedSecurityInfo.
  399. 7    In xterm, recognize both vt100 and vt220 cursor keys.  Change
  400.     add_termcode() to not remove an existing entry for a name, when it's
  401.     needed.
  402. 8    core dump within signal function: gdb doesn't show stack backtrace!  option
  403.     to skip catch_signals()?
  404. 8    Pasting with the mouse in Replace mode inserts the text, instead of
  405.     overwriting, when it is more than one line.
  406. 8    When using search history, the trailing '/' or '?' needs to be changed
  407.     depending on the search command.  When there was no '/' or '?', add one, so
  408.     flags can be added easily?
  409. 8    CTRL-F at the end of the file, when 'so' is set, redraws twice.  When the
  410.     window is small (< 2 * 'so') it behaves differently.
  411. 8    CTRL-E and CTRL-Y don't work in small window when 'so' is 4
  412.     (Acevedo/in.226).  E.g., when using CTRL-E, window height 7, window might
  413.     actually scroll down when last line of buffer is displayed.
  414.     --> Remember if the previous command was "cursor follows screen" or
  415.     "screen follow cursor" and use this in cursupdate().
  416. 7    tilde_replace() can only handle "~/", should also do "~user/".
  417. 8    If writing to the swap file fails, should try to open one in another
  418.     directory from 'dir'.  Useful in case the file system is full.
  419. 8    Add 'o' flag to 'mouse'?
  420. 9    Make 'A', 'N' and 'I' flags for 'mouse' work for non-GUI.
  421. 8    When dragging status line with mouse, sometimes a jump when first clicking
  422.     on the status line (caused by 'winheight').  Select window on button up,
  423.     instead of on button down.
  424. 9    term_console is used before it is set (msdos, Amiga).
  425. 8    There are often a few <CR> on a row sent to the screen, should not be
  426.     necessary.
  427. -    Text is scrolled up and down: (acevedo)
  428.      - set scrolloff to something >1 (i always use "set so=4")
  429.      - set the win. hegiht to scrolloff + 1  (i'd do ^W5_)
  430.      - load a file with scrolloff + 2 lines
  431.      - put the cursor in line scrolloff +1    (5G)
  432.      - if you move the cursor along the line (h, l, insert text, etc)
  433.      the text is crolled with each keystroke (once up, once down,...)
  434.      sometimes with <Esc> the text is scrolled up and down whitout stop!!!!
  435. 8    When performing incremental search, should abort searching as soon as a
  436.     character is typed.
  437. 8    Make CTRL-C on Unix generate a signal, avoid using select() to check for a
  438.     CTRL-C (it's slow).
  439. 8    When writing viminfo file, handle CTRL-J in filename (needs to be escaped
  440.     with CTRL-V). (Acevedo)
  441. 8    When starting Vim, switch terminal to RAW mode asap, so typeahead is
  442.     handled correctly (without the need for a <CR>).
  443. 8    Now that the swap file is hidden for DOS (not anymore!), it's difficult to
  444.     delete.  Add a command in Vim to delete a swap file?  Maybe something like
  445.     "vim -r -delete", which promts with a choice of swap files to delete?
  446. 9    Perl interface: Check for errors.  Vim crashes when using illegal window
  447.     number?
  448. 8    When the value of $MAKE contains a path, configure can't handle this.
  449.     It's an autoconf bug.  Remove the path from $MAKE to work around it.
  450. 8    How to set VIMRC_FILE to \"something\" for configure?  Why does this not
  451.     work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
  452. 8    The temporary file is sometimes not writable.  Check for this, and use an
  453.     alternate name when it isn't.  Or add the 'temptemplate' option: template
  454.     for the temp file name ":set temptemplate=/usr/tmp/?????.tmp".
  455. 7    Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
  456.     Don't check when compiling, check while matching.
  457. 7    When switching to Daylight Saving Time, Vim complains that a file has been
  458.     changed since last read.  Use another function to get the file time stamp?
  459. 7    When doing ":new" you get the message "Empty Buffer".  That's not useful,
  460.     and can cause a hit-return prompt.  Remove that message.
  461.  
  462.  
  463. I can't reproduce these:
  464. -    With backupdir=~/tmp,/tmp nowritebackup nobackup patchmode=.smr and the
  465.     patchmode file exists, backup files in the tmp directory are left lying
  466.     around - they should be deleted! (Riehm)
  467. 9?    Crash when changing fonts in Athena (Hiebert).    gui_mch_set_scrollbar_pos
  468.     gets an "sb" argument that points to all zero entries...?
  469. 9?    Crash in Motif GUI, when pasting text with middle mouse button while in
  470.     insert mode.  SunOS 4.1.3 only? (Janssen).
  471. -    On Diamond Viper 132x43 mode crash on exit (John Lange)
  472.  
  473. [These have been reported for version 3.0, they may not appear in this version]
  474. -    MSDOS: After writing on a network the 'w' bit for others is set.
  475.  
  476.  
  477. Problems that will (probably) not be solved:
  478. -    Moving the cursor removes color in color-xterm.  This is a color-xterm
  479.     problem!  color-xterm ver. 6.1 beta 3 and later work properly.
  480. -    In zsh, "gvim&" changes the terminal settings.    This is a zsh problem.
  481.     (Jennings)
  482. -    Problem with HPterm under X: old contents of window is lost (Cosentino).
  483. -    Amiga: When using quickfix with the Manx compiler we only get the first 25
  484.     errors. How do we get the rest?
  485. -    Amiga: The ":cq" command does not always abort the Manx compiler. Why?
  486. -    Linux: A file with protection r--rw-rw- is seen readonly for others. The
  487.     access() function in GNU libc is probably wrong.
  488. -    MSDOS: When using smartdrive with write-back buffering, writing to a
  489.     readonly floppy will cause problems.  How to test for writable floppy
  490.     first?
  491. -    When doing a CTRL-Z and typing a command for the shell, while Vim is busy
  492.     (e.g. writing a file), the command for the shell is sometimes eaten by Vim,
  493.     because the terminal mode is changed from RAW to CBREAK.
  494. -    An old version of GNU tgoto can't handle the terminfo code for "AF".  The
  495.     "%p1" is interpreted as "%p" and "1", causing color not to be working.
  496.     Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
  497.     (Benzinger).
  498.  
  499.  
  500.                                                     *extensions-improvements*
  501. ---------------------  extensions and improvements ----------------------
  502.  
  503. Considered for release 5.4:
  504. 8    Include patches from wittig, for AIX and dtterm clipboard stuff.
  505. 7    Add (some of) the 'mousepointer' patch from Ralston.
  506. 5    Add command to jump to next defined mark (see patch from Sieger).
  507. -    Add 'bindsidescroll' option: patches/locksidescroll.
  508.     Change: 'scrollbind' option for each window, 'scrollopt' list of flags for
  509.     how to bind windows: 'h'orizontal, 'v'ertical, 's'earch, 'r'elative, etc..
  510.     Also 'e'xecute some commands (search, vertical movements) in all bound
  511.     windows.
  512. -    Use "patches/selectfile.tgz" as a base for a file selector in Vim.
  513. 8    Add $CDPATH patch from Raf?  Change it a little: add 'cdpath' option,
  514.     which is filled from $CDPATH.  "." is dir of current file, "" is current
  515.     directory.  Suggestion in docs to change it when it's wrong:
  516.         let &cdpath=substitute(substitute($CDPATH,',','\\,','g'),':',',','g')
  517. -    Use a current directory per window?  See patches from Chen.  Does a
  518.     "chdir" when switching to another window.  ":lcd" only works for the
  519.     current window, ":cd" for all windows.
  520. -    Consider adding patches/list_indent (indenting for bullet lists).
  521. -    cursor up/down in insert mode moves to column where insert started.  Use
  522.     different commands for this "<C-G><UP>" and "<C-G><Down>"?    Use
  523.     set_curswant or not? (patch from Lord)
  524. -    Include VSEL, perhaps? (Bigham)
  525. -    Add patches from Burgnara for { and } in Ex address?  Also "[[" and "]]"?
  526. -    Patch from Airey to add buffer menu (../../patches/airey.buffer_menu).
  527. -    Scope arguments for ":tag", e.g.: ":tag class:cPage open", like Elvis.
  528. -    Add language settings in the syntax files.  With "if want_syntax" and "if
  529.     start_language".  And to switch language off: "if stop_language".
  530.  
  531.  
  532. Considered for release 6.0:
  533. -    Folding.
  534. -    Vertically splitting the screen.  Show differences between files.
  535. -    Editing the command line with Normal mode Vi commands.
  536. -    Further support for editing files in projects (see ":idselect").
  537.  
  538.  
  539. Documentation:
  540. -    Replace <a-z> by {a-z}, to avoid confusion with <C-S> as CTRL-S.
  541. -    Replace an <Esc> that is the escape key, not five characters, with {Esc}?
  542. -    Use tags sorting from ctags.c when making vim_tags for non-unix machines.
  543. -    Make a few sample menu sets (.gvimrc files) for novice vi users, novice
  544.     Vim users, C programmers, ...
  545. -    Check text editor compendium for vi and Vim remarks.
  546.  
  547.  
  548. Tests:
  549. -    Find a way to skip tests that can't be done.  For non-Unix systems, but
  550.     also for e.g. the Perl interface.
  551.  
  552.  
  553. Highlighting:
  554. 8    2html.vim: correct tabs when 'ts' is not 8 (do ":retab! 8" in new window).
  555. 8    When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
  556.     sequences.    Add remark in docs that :if 'term' == "term-name" should be
  557.     used.
  558. 8    When listing syntax items, try to sort the keywords alphabetically.  And
  559.     re-insert the [] if possible.
  560. 8    Make it possible to use color of text for Visual highlight group (like for
  561.     the Cursor).
  562. 8    Keep more context for syncing, but not for every line.  Make this settable
  563.     with some command ":syn sync context=1000 skip=10" (store state for 1000
  564.     lines, every 10 lines).
  565.     Store the context with the window, instead of the buffer.  Useful when
  566.     there are two windows on the same buffer.
  567. 8    Highlight non-printable characters with "SpecialChar", linked to
  568.     "Special".  Display them with the digraph characters, if possible.
  569. 8    Reduce the number of regexp in c.vim (for speed).
  570. 8    Add a flag to temporarily disable highlighting.  Set it while dragging the
  571.     status line.
  572. 8    Add an option to restrict the updating of syntax highlighting to the
  573.     current line while in Insert mode.
  574. 8    When guessing value of 'background', the syntax file has already been
  575.     loaded (from the .gvimrc).    After changing 'background', load it again?
  576. 8    Add ":syn resync" command, to re-parse the whole file until the current
  577.     display position.
  578. 8    Should support "me" offset for a region start pattern.  To be used to
  579.     allow searching for the end pattern inside the match of the end pattern.
  580.     Example: syn region pikeXX start="([^{]" end=")" should work on "()".
  581. 8    When using a regexp for "contains=", should delay matching with it until
  582.     redrawing happens.  Set a flag when a group is added, check this flag when
  583.     highlighting starts.
  584. 7    Add "semitrans": Add highlighting.  E.g., make the text bold, but keep the
  585.     colors.  And add colors, so that Green+Red becomes Yellow.
  586. 6    Not possible now: Two regions that add up.  E.g. for this html:
  587.         <B> bold text <I> italic+bold text </B> italic text </I>
  588. 7    Add an explanation how a list of words can be used to highlight misspelled
  589.     words.
  590. 7    Should find a better way to parse the :syntax and :highlight commands.
  591.     Use tables or lists that can be shared by parsing for execution and
  592.     completion?
  593. 7    Add a few sets of colors (e.g. Borland Turbo C one).  With a menu to
  594.     select one of the sets.
  595. 8    Add offsets to sub-matches: "\(a*\) *"he=e1-1
  596.     'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
  597.     2, etc.
  598. 8    Add more command line completion for :syntax.
  599. 8    Add more command line completion for :highlight.
  600. 8    In Insert mode, when there are typeahead characters, postpone the
  601.     highlighting (for "." command).
  602. 8    Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
  603.     For example: What about a line that starts with / / and contains * /?
  604. 8    Ignore / * and    * / inside strings, when syncing.
  605. 8    Add possibility to sync on something else, when the syncing in one way
  606.     doesn't find match.  For HTML: When no <script> is found, try looking for
  607.     a '<'.    (Fleiner)
  608. 8    Replace the synchronizing method with a state machine specification.
  609.     Should be able to start at any line in the file, search forwards or
  610.     backwards, and use the result of matching a pattern.
  611. 7    Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
  612.     ISP, LDL, Icon, ratfor.  And check "nedit/source/highlight.c".
  613. -    Make it possible to add "contains" items for all items in a group.    Useful
  614.     when extending an already existing syntax file.
  615. -    Allow the use of "blink".  Make a new attr when it's used.
  616. -    Add line-continuation pattern for non-syncing items too?
  617. -    Allow "\a" in end (and skip) pattern, use first sub-match of start
  618.     pattern.  To be used in e.g.: 'start="[/=+]" end="\a"'
  619.     No, can't use "\a", because "\b" means backspace.  Use "\#1" instead?
  620. 8    Add cursor-column highlighting.  Enable it with 'cursorcolumn' option, set
  621.     highlighting with "CursorColumn" group.  Useful for aligning text.
  622.     Also cursor-row highlighting.
  623. -    Add possibility to highlight specific columns (for Fortran).
  624. -    Add possibility to highlight the whole line, including the right margin
  625.     (for comment blocks).
  626. -    Add 'hlmatch' option: List of flags:
  627.     'c': highlight match for character under the cursor.
  628.     'b': highlight the previous (, and its match.
  629.     'a': highlight all text from the previous ( until its match.
  630.          Also for {}, <>, etc.?
  631.     'e': highlight all braces without a match (slow?)
  632. 7    Make it possible to use all words in the tags files as Keyword.
  633.     Can also be done with a script (but it's slow).
  634. 7    Make it possible to call a ":" command when a match is found.  Should
  635.     allow for adding keywords from the text (e.g. variables that are set).
  636.     And allows for sections with different highlighting.
  637. 7    Add highlight group for commandline: "Commandline".  Make sure it
  638.     highlights the command line while typing a command, and any output from
  639.     messages.  And external commands?
  640. 8    Make a version that works like less, but with highlighting: read stdin for
  641.     text, exit at end of file, don't allow editing, etc.  moreim?  lessim?
  642.  
  643.  
  644. Built-in script language:
  645. 9    Add a way to catch errors:
  646.         :try
  647.         :  [commands that can fail]
  648.         :catch [error-type]
  649.         :  [error handling]
  650.         :endtry
  651. 8    Add functions:
  652.         append(lnum, string)    append a text line
  653.         bufwinnr({expr})        return window number of buffer {expr}
  654.         match({pat}, {string}, [count]) get index of count'th match
  655.         stridx(bigstr, smallstr)  return index of first smallstr in bigstr
  656.         strridx(bigstr, smallstr)  return index of last smallstr in bigstr
  657.         sprintf(format, arg, ..) How to prevent a crash???
  658.         chistory(nr)            command history line
  659.         shistory(nr)            search history line
  660.         rhistory(nr)            redo history line
  661.         attributes()            return file protection flags "drwxrwxrwx"
  662.         perl(cmd)                call Perl and return string
  663.         shorten(fname)            shorten a file name, like home_replace()
  664.         getoption({bufid}, {name})        get value of option {name} in buffer
  665.                                         {bufid}
  666.         setoption({bufid}, {name}, {value})        idem, but set to {value}
  667.         fnamemod({fname}, {mod})    {mod} can be ":p:h" etc., to be applied to
  668.                                 {fname}
  669.         getmap({name}, {mode})    get the rhs of a mapping, "" if not present.
  670. 8    Completion for function names after ":function" and ":delfunction".
  671. 8    ":onerror"/":enderror" command in user functions: handle error situations.
  672. 7    Add optional arguments to user functions:
  673.         :func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)
  674. 6    User functions: Functions local to buffer "b:func()"?
  675. 8    Add ":let var[{expr}] = {expr}".
  676. 8    Add variable that contains the current/previous Visual mode?
  677. 8    The "= register should be writable, if followed by the name of a variable,
  678.     option or environment variable.
  679. 8    ":let &option" should list the value of the option.
  680. 8    ":echo $VIM" should use the internal value of $VIM.
  681. 7    Add synIDlist(), making the whole list of syntax items on the
  682.     stack available (separated with '\n').
  683. 8    Add ":silent <cmd>", silently run a command: no echoing, no hit-return
  684.     prompt.  Use ":silent!" to also skip error messages.  Should work for
  685.     ":silent !cmd" (instead of "!~cmd").  Still do the messages for ":redir"?
  686. 9    Make last message available "msg" variable (like "errmsg")?
  687. 8    Add autocommand-event for when a variable is changed:
  688.         :au VarChanged <varname> <commands>
  689. 9    Add per-buffer and per-window variables:
  690.         b4:xxx    buffer 4 variable
  691.         b4:&yyy    buffer 4 option 'yyy'
  692.         w2:xxx    window 2 variable
  693. 8    Add command line completion for ":let" and ":if"
  694. 8    Add "has("gui_capable")", to check if the GUI can be started.
  695. 8    Add possibility to use variables like registers: characterwise (default),
  696.     linewise (when ending in '\n'), blockwise (when ending in '\001').    reg0,
  697.     rega, reg%, etc.  Add functions linewise({expr}), blockwise({expr}) and
  698.     charwise({expr}).
  699. 8    Support using '\' at the end of the line for continuation.    For all
  700.     :sourced files?
  701. 7    Add variable that contains the return value of the last external command.
  702. 7    Make it possible to do any command on a string variable (make a buffer
  703.     with one line, containing the string).    Maybe add an (invisible) scratch
  704.     buffer for this?
  705.         result = scratch(string, command)
  706.         result = apply(string, command)
  707.         result = execute(string, command)
  708.     "command" would use <> notation.
  709. 7    Add function to generate unique number (date in milliseconds).
  710. 6    "g{if cond}" "g{while cond}", etc. in Normal mode, for mappings.
  711. 6    Like Lotus: <IF cond>commands<ELSE>commands<ENDIF> (in any mode, handle in
  712.     vgetorpeek())
  713.       ":map _a athe term is <IF $TERM=="xterm">xterm<ELSE>unknown<ENDIF>.<Esc>"
  714.       Use "<IF expression>commands<ELSE>commands<ENDIF>
  715. 6    Add catching errors for a block of commands ":try" - ":endtry"?  When
  716.     error has occurred, errmsg variable will have been set.
  717.  
  718.  
  719. Performance:
  720. 9    Check out-of-memory for ":g/^/,$/s//@/" on 1000 lines.  Vim hangs because
  721.     of all the error messages.
  722. 7    Include turbo_loader patches, speeding up reading a file?
  723. 7l    do_cmdline(): Avoid that the command line is copied to allocated memory
  724.     and freed again later all the time.  For while loops, and for when called
  725.     with an argument that can be messed with.
  726.     Generic solution: Make a struct that contains a pointer and a flag that
  727.     indicates if the pointer should be freed when replaced.
  728. -    Further improve finding mappings in maphash[] in vgetorpeek()
  729. 8    Dragging the status line doesn't scroll but redraw.
  730. 8    Syntax highlighting is slow when deleting lines.
  731. 8    "p" and "P" redraw everything after the put text.  Should insert lines.
  732. -    "out of memory" after deleting (1,$d) and changing (:%s/^/> /) a lot of
  733.     lines (27000) a few times.  Memory fragmentation?
  734. -    Do profiling on:
  735.     - :g/pat/normal cmd
  736.     - 1000ii<Esc>
  737.     - deleting 10Mbyte worth of lines (netscape binary)
  738.     - ":g/^/m0" on a 450Kbyte file.  And the "u".
  739.     - highlighting "~/vim/test/longline.tex", "~/vim/test/scwoop.tcl" and
  740.       "~/vim/test/lockup.pl".
  741.     - loading a syntax file to highlight all words not from a dictionary.
  742. 7    Screen updating can be further improved by only redrawing lines that were
  743.     changed (and lines after them, when syntax highlighting was used, and it
  744.     changed).
  745.     - On each change, remember start and end of the change.
  746.     - When inserting/deleting lines, remember begin, end, and line count.
  747. -    Use macros/duarte/capicua for profiling.  Nvi 1.71 is the fastest!
  748. -    When using a file with one long line (1Mbyte), then do "$hhhh", is still
  749.     very slow.  Avoid calling getvcol() for each "h"?
  750. -    Executing a register, e.g. "10000@@" is slow, because ins_typebuf has to
  751.     move the previous commands forward each time.  Pass count from
  752.     normal_cmd() down to do_execreg().
  753. -    Repeating insert "1000i-<Esc>" displays --INSERT-- all the time, because of
  754.     the <Esc> at the end.  Make this work faster (disable redrawing).
  755. -    Avoid calls to plines() for cursor line, use w_cline_height.
  756. -    When only need to redraw the status lines in status_redraw_all(), need to
  757.     update NOT_VALID to force the redraw.  Should detect that only the status
  758.     lines need to be redrawn (add STATUSLN between VALID and NOT_VALID?).
  759. -    After :set nowrap remove superflous redraw with wrong hor. offset if cursor
  760.     is right of the screen.
  761.  
  762.  
  763. Code size:
  764. -    Put getline() and cookie in a struct, so only one argument has to be
  765.     passed to do_cmdline() and other functions.
  766. 8    move common files between os_unix.c and os_vms.c to one file?
  767.  
  768.  
  769. Screen updating:
  770. -    screen_line():
  771.     - insert/delete character stuff.
  772.     - improve delete rest of line (spaces at end of line).
  773. -    When moving or resizing window, try to avoid a complete redraw (esp. when
  774.     dragging the status line with the mouse).
  775. -    When 'lazyredraw' set, don't echo :ex commands?  Need a flag to redraw when
  776.     waiting for a character.
  777.  
  778.  
  779. Autoconf:
  780. 8    Should use acconfig.h to define prototypes that are used by autoheader.
  781. -    Autoconf: Use @datadir@ for the system independent files.  Make sure the
  782.     system dependend and system independed files are separated. (Leitner).
  783. -    Add autoconf check for waitpid()/wait4().
  784. -    Remove fcntl() from autoconf, all systems have it?
  785. -    Set default for 'dictionary', add search for dictionary to autoconf.
  786.  
  787.  
  788. Perl interface:
  789. 8    Rename typemap file to something else?
  790. 7    Make it possible to compile with non-ANSI C?
  791. 6    Tcl/Tk has the "load" command: load a shared library (.so or .dll).
  792. 7    When $VIM is not set, set it.  Useful for Perl (Waggoner).
  793.  
  794.  
  795. Shared libraries:
  796. 6    Add support for loading shared libraries, and calling functions in it.
  797.         :libload internal-name libname
  798.         :libunload internal-name
  799.         :liblist
  800.         :libcall internal-name function(arg1, arg2, ...)
  801.         :libcall function(arg1, arg2, ...)
  802. 6    Have a look on how Perl handles loading dynamic libraries.
  803.  
  804.  
  805. Tags:
  806. 8    When output of ":tselect" is long, getting the more-prompt, should be able
  807.     to type the tag number directly.
  808. 8    Add "**" wildcard from 'path' to 'tags': search a tree for tags files.
  809.     And some way to search directories upwards in the tree:
  810.     "./.../tags;$HOME", where the part after ';' tells where to stop.
  811. 7    Add 'tagingnorecase' option from Vile: ignore case for tags.
  812. 7    Make output of ":tselect" a bit nicer.  Use highlighting?
  813. 7    Highlight the "tag 1 of >2" message.  New highlight group, or same as "hit
  814.     bottom" search message.
  815. 7    When using ":tag" at the top of the tag stack, should add another entry,
  816.     so CTRL-T can bring you back to where you are now AND to where you were
  817.     before the previous ":tag" command. (Webb)
  818. 7    When using CTRL-] on someClass::someMethod, separate class from method and
  819.     use ":ta class:someClass someMethod".
  820.     Include C++ tags changes (Bertin).    Change "class::func" tag into "func"
  821.     with "class=class"?  Docs in oldmail/bertin/in.xxx.
  822. 7    Add ":tagargs", to set values for fields:
  823.         :tagargs class:someclass file:version.c
  824.         :tagargs clear
  825.     These are then the default values (changes the order of priority in tag
  826.     matching).
  827. 7    Support for "gtags" and "global"?  With ":rtag" command?  See
  828.     ~/src/global".  There is an example for how to do this in Nvi.
  829.     Or do it like Elvis: 'tagprg' and 'tagprgonce' options. (Yamaguchi)
  830. 7    Disallow changing the buffer for commands from a tags file.  Also for
  831.     commands from a local .vimrc?  Sort of strict secure mode.
  832. 7    Support "col:99" extra field, to position the cursor in that column.  With
  833.     a flag in 'cpoptions' to switch it off again.
  834. 7    Better support for jumping to where a function or variable is used.  Use
  835.     the id-utils, with a connection to "gid" (Emacs can do it too).  Add
  836.     ":idselect", which uses an "ID" database (made by "mkid") like "tselect".
  837. 6    Don't store the search pattern from a tag command in the search history
  838.     (with an option)?
  839.  
  840.  
  841. Win32 GUI:
  842. 8    Could keep console open to run multiple commands, to avoid the need to hit
  843.     return in every console.
  844.     Also: Look at how Emacs does runs external commands:
  845.         http://www.cs.washington.edu/homes/voelker/ntemacs.html.
  846. 9    Need a separate PopUp menu for modeless selection.  Need two new commands:
  847.     Copy selection to clipboard, Paste selection (as typed text).
  848. 8    Dropping a file on a gvim that edits a modified buffer splits the window.
  849.     Make an option to replace the current file (use ":e" instead of ":sp")?
  850.     When dropping multiple files, display the first one and adjust the
  851.     arglist.  Or make it an option for the user to chose betwen ":e" and ":sp"?
  852. 7    Keep the console for external commands open.  Don't wait for a key to be
  853.     hit.  Re-open it when the user has closed it anyway.  Or use a prepended
  854.     command: ":nowait {cmd}", or ":quiet", which executes {cmd} without any
  855.     prompts.
  856. 7    Should be able to set an option so that when you double click a file that
  857.     is associated with Vim, you can either get a new instance of Vim, or have
  858.     the file added into an already running Vim.
  859.  
  860.  
  861. GUI:
  862. 8    When NO_CONSOLE is defined, more code can be excluded.
  863. 8    Visual highlighting should keep the same font (bold, italic, etc.).
  864. 8    Add possibility to set pointer shape (for different modes).
  865. 8    Add flag to 'guioptions' to not put anything in the clipboard at all?
  866. 8    Should take font from xterm where gvim was started (if no other default).
  867. 8    Should support a way to use keys that we don't recognize yet.  Add a
  868.     command that adds entries to special_keys somehow.    How do we make this
  869.     portable (X11, Win32, ..)?
  870. 7    Add a flag to 'guioptions' that tells not to remove inactive menu items.
  871.     For systems where greying-out or removing menu items is very slow.  The
  872.     menu items would remain visibly normally, but not do anything.
  873. 7    Add ":minimize" and ":maximize", which iconize the window and back.
  874.     Useful when using gvim to run a script (e.g. 2html.vim).
  875. 7    X11: Is it possible to free allocated colors, so that other programs can
  876.     use them again?  Otherwise, allow disabling allocating the default colors.
  877.     Or allocate an own colormap (check UAE).  With an option to use it.  For
  878.     the commandline, "-install" is mostly used for X11 programs.
  879. 6    Big change: Move GUI to separate program "vimgui", to make startup of vim a
  880.     lot faster, but still be able to do "vim -g" or ":gui".
  881. 7    Should support multi-column menus.
  882. 6    Make it possible to "drag the text" (grab a character and move it
  883.     up/down).  Use Alt-LeftMouse for this?  (Goldfarb)
  884. 7    More explicit mouse button binding instead of 'mousemodel'?
  885. 7    Add option to set the position of the window on the screen.  'windowpos',
  886.     which has a value of "123,456": <x>,<y>.
  887. 7    Add toolbar for non-Win32 GUIs.
  888. 7    Make it possible to put the toolbar on top, left, right and/or bottom of
  889.     the window?  Allows for softkey-like use.
  890. 6m    Separate the part of Vim that does the editing from the part that runs the
  891.     GUI.  Communicate through a pseudo-tty.  Vim starts up, creates a
  892.     pty that is connected to the terminal.    When the GUI starts, the pty is
  893.     reconnected to the GUI process.  When the GUI stops, it is connected to
  894.     the terminal again.  Also use the pty for external processes, it looks
  895.     like a vt100 terminal to them.    Vim uses extra commands to communicate GUI
  896.     things.
  897. -    Motif steals <F10> from us, to pop up menus with the keyboard.    How do we
  898.     get it back if we want it?
  899. -    Paste in Insert mode should not do autowrap etc.  Or maybe this should be
  900.     changeable with an option?
  901. -    Put a nice picture in the icon (but how do we do that?).
  902. -    Should add option for where to put the "Help" menu: like Motif at the far
  903.     right, or with the other menus (but still at the right).
  904. -    Add menu item to "Keep Insert mode". More generally: Include a nice way to
  905.     change options.
  906. 7    When using a pseudo-tty Vim should behave like some terminal (vt52 looks
  907.     simple enough). Terminal codes to/from shell should be translated.
  908. 8    ":mkgvimrc" command, that includes menus.
  909. -    Would it be useful to be able to quit the GUI and go back to the terminal
  910.     where it was started from?
  911. 7    Add ":confirm" and ":browse" for Athena and ":confirm" for Motif.
  912.     Requester in Motif is called MessageBox.  Tsirkin has file selector for
  913.     Athena.
  914.  
  915.  
  916. Autocommands:
  917. 9    ":au {event} *" should also be executed for "No File" buffers.
  918. 8    Autocommand for when modified files have been found, when getting input
  919.     focus again (e.g., FileChangedFocus).
  920.     Check when: getting focus, jumping to another buffer, ...
  921.     What to do: if buffer not changed, reload it (with a warning), if buffer
  922.     changed give a warning, when overwriting ask if you really want this.
  923. 8    Add autocommands, user functions and user commands to ":mkvimrc".
  924. 8    Autocommands should not change registers.  And anything else?
  925. 7    Add file type in front of file pattern: <d> for directory, <l> for link,
  926.     <x> for executable, etc.  <&xxx> for Risc OS.  With commas to separate
  927.     alternatives.  The autocommand is only executed when both the file type
  928.     AND the file pattern match. (Leonard)
  929. 5    Add option that specifies extensions which are to be discarded from the
  930.     file name.  E.g. 'ausuffix', with ".gz,.orig".  Such that file.c.gz will
  931.     trigger the "*.c" autocommands.  (Belabas)
  932. 7    Add something to break the autocommands for the current event, and for
  933.     what follows.  Useful for a "BufWritePre" that wants to avoid writing the
  934.     file.
  935. 8    Detect textmode after executing the autocommands, otherwise the .gz
  936.     autocommands don't work for MS-DOS.  Needs to be able to remove the ^Ms at
  937.     the end of each line.  Alternative: don't use a filter command, write the
  938.     file, gunzip, set nobin, delete the lines, read the file.
  939. -    Add events to autocommands:?
  940.     Error         - When an error happens
  941.     NormalEnter  - Entering Normal mode
  942.     InsertEnter  - Entering Insert mode
  943.     ReplaceEnter - Entering Replace mode
  944.     CmdEnter     - Entering Cmdline mode
  945.     VisualEnter  - Entering Visual mode
  946.     losefocus     - Losing window focus (needs to be queued?)
  947.     getfocus     - Getting window focus (needs to be queued?)
  948.     SearchPost   - After doing a search command (e.g. to do "M")
  949.     BufModified  - When a buffer becomes modified, or unmodified (for putting
  950.                    a [+] in the window title).
  951.     BufReadAction - replaces reading a file
  952.     BufWriteAction - replaces writing a file
  953. -    Add autocommand to be executed every so many seconds?  For writing the
  954.     file now and then ('autosave').
  955.                                   *'autosave'* *'as'* *'noautosave'* *'noas'*
  956.     'autosave' 'aw' number    (default 0)
  957.             Automatically write the current buffer to file N seconds after the
  958.             last change has been made and when |'modified'| is still set.
  959.             Default: 0 = do not autosave the buffer.
  960.  
  961.  
  962. Insert mode expansion:
  963. -    Add CTRL-X command in insert mode like CTRL-X CTRL-N, that completes WORDS
  964.     instead of words.
  965. -    Make it possible to search include files in several places.  Use the
  966.     'path' option?    Can this be done with the dictionary completion (use
  967.     wildcards in the file name)?
  968. -    Make CTRL-X CTRL-K do a binary search in the dictionary (if it's sorted).
  969. -    Speed up CTRL-X CTRL-K dictionary searching (don't use a regexp?).
  970. -    Set a mark at the postition where the match was found (file mark, could be
  971.     in another file).
  972. -    Add CTRL-A command in CTRL-X mode: show all matches.
  973. -    Make CTRL-X CTRL-L use the 'complete' option?
  974. -    Add command in CTRL-X mode to add following words to the completed string
  975.     (e.g. to complete "Pointer->element" with CTRL-X CTRL-P CTRL-W CTRL-W)
  976. -    CTRL-X CTRL-F: Use 'path' to find completions.
  977. -    Add option 'isexpand', containing characters when doing expansion (so that
  978.     "." and "\" can be included, without changing 'iskeyword'). (Goldfarb)
  979.  
  980.  
  981. Command line completion:
  982. -    Add command line completion for ":ilist" and friends, show matching
  983.     identifiers (Webb).
  984. 6    Add command line completion with CTRL-X, just like Insert mode completion.
  985.     Useful for ":s/word/xx/".
  986. -    Add command to go back to the text as it was before completion started.
  987.     Also to be used for <Up> in the command line.
  988. -    Add 'wildlongest' option: Key to use to find longest common match for
  989.     command line completion (default CTRL-L), like 'wildchar'. (Cregut)
  990.     Also: when there are several matches, show them line a CTRL-D.
  991. 7    With command line completion after '%' and '#', expand current/alternate
  992.     file name, so it can be edited.
  993. 7    Make `command` expansion work for non-Unix systems.
  994.  
  995.  
  996. Command line history:
  997. 7    Add ":history" command for command lines and search patterns.
  998. -    Add "KeyWasTyped" flag: It's reset before each command and set when a
  999.     character from the keyboard is consumed. Value is used to decide to put a
  1000.     command line in history or not. Put line in history if it didn't completely
  1001.     resulted from one mapping.
  1002.  
  1003.  
  1004. Command-line editing:
  1005. 7    Add commands (keys) to delete from the cursor to the begin or the end of
  1006.     the command line.
  1007. -    Korn-shell or tcsh like command line editing (like editing a single line
  1008.     with vi). Use :cmap! for mappings. Can be implemented like a buffer
  1009.     containing command lines.  Use CTRL-O instead of <Esc>, to remain
  1010.     vi-compatible?  See remarks from Steve (oldmail/kirkendall/in.012).
  1011. -    Add 'cedit' option like Nvi: editing commandline in a window?
  1012.     NO!  It's too confusing (e.g. when using ^W^W to go to another window, when
  1013.     doing ":" and starting another commandline edit windows, etc.).
  1014.     YES!  Some people like it anyway (forbid ^W^W).
  1015.     Use Elvis's method too (commandline is like a one-line window into a buffer
  1016.     that contains the commandline history).
  1017. -    Add flags to 'whichwrap' for command line editing (cursor right at end of
  1018.     lines wraps to start of line).
  1019.  
  1020.  
  1021. Insert mode:
  1022. -    In Insert mode (and command line editing?): Allow undo of the last typed
  1023.     character.    This is useful for CTRL-U, CTRL-W, delete and backspace, and
  1024.     also for characters that wrap to the next line.
  1025. -    Use CTRL-G in Insert mode for an extra range of commands, like "g" in
  1026.     Normal mode.
  1027. 8    Make it possible to toggle 'paste' in Insert mode.
  1028. -    Make 'paste' work without resetting other options, but override their
  1029.     value.  Avoids problems when changing files and modelines or autocommands
  1030.     are used.
  1031. -    When typing CTRL-V and a digit higher than 2, only expect two digits.
  1032. -    Insert binary numbers with CTRL-V b.
  1033.  
  1034.  
  1035. 'cindent', 'smartindent':
  1036. 9    "case xx: {", or in general: any { with text before it, a matching }
  1037.     should not line up with the {, but with the indent at that position.
  1038. 8    Two labels below each other, second one is not handled correctly:
  1039.     {
  1040.     label1:
  1041.         label2:
  1042.     }
  1043. 8    Handle a comment halfway the line: "if (/* foo */ bar)".    Adjust
  1044.     isterminated().  Or: always search backwards through the line, and skip
  1045.     from a "(" to the matching ")".  Also when the line does not start with
  1046.     "if" or "while).  Try this out on function calls split over several lines:
  1047.          int fooRet = foo(pBar1, false /*fKillTheBar*/,
  1048.              true /*fPreserveTheBar*/, 3 /*nTimes*/, false /*fDieOnFailure*/);
  1049.             f() {
  1050.                 for ( i = 0;
  1051.                         i < m;
  1052.                         /* c */ i++ ) {
  1053.                         a = b;
  1054.             }
  1055.             }
  1056. 8    This is indented wrong:
  1057.         if (1) {i += 4;}
  1058.             where_am_i;
  1059.         return 0;
  1060. 6    Make indenting more flexible, like syntax highlighting.
  1061. -    "[p" and "]p" should use 'cindent' code if it's on (only for the first
  1062.     line).
  1063. -    Add option to 'cindent' to set indent for comments outside of {}?
  1064. -    Make a command to line up a comment after a code line with a previous
  1065.     comment after a code line.    Can 'cindent' do this automatically?
  1066. 7    Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
  1067. -    Add setting for K&R paren style?  Should be used for this:
  1068.         case xx: {
  1069.                     some_cmd;
  1070.         }
  1071. -    formatting of struct/array inits:
  1072.     The lines used to initialise the struct or array above should not be
  1073.     considered 'continuation' lines just because the previous one does not end
  1074.     with ';'.  If you go back line by line I think it should be possible to
  1075.     tell the difference.  If you find a line that ends in ';', then it's OK to
  1076.     have continuation lines.  If you find a "{", and the character before it
  1077.     (not counting space & comments) is either ',' or '=', then there should
  1078.     not be continuation lines.    If the character before the "{" is another
  1079.     "{", then you have to check before that one too.
  1080. -    "case a: case b:" (two case statements in one line) aligns with the second
  1081.     case, but should use one 'sw' for indent. (Webb)
  1082. -    When 'cindent'ing a '}', showmatch is done before fixing the indent.  It
  1083.     looks better when the indent is fixed before the showmatch. (Webb)
  1084. -    Add option to make indenting work in comments too (for commented-out
  1085.     code), unless the line starts with "*".
  1086. -    Don't use 'cindent' when doing formatting with "gq"?
  1087. -    When formatting a comment after some text, insert the '*' for the new line
  1088.     (indent is correct if 'cindent' is set, but '*' doesn't get inserted).
  1089. -    Make smartindenting configurable. Add 'sioptions', e.g. '#' setting the
  1090.     indent to 0 should be switched on/off.
  1091. -    For smartindent: When typing 'else' line it up with matching 'if'.
  1092. -    'smartindent': allow patterns in 'cinwords', for e.g. TeX files, where
  1093.     lines start with "\item".
  1094. -    {
  1095.         func(/*comment*/);
  1096.         func2();        /* this line is not indented correctly */
  1097.     }
  1098. -    Support this style of comments (with an option): (Brown)
  1099.         /* here is a comment that
  1100.         is just autoindented, and
  1101.         nothing else */
  1102.  
  1103.  
  1104. Text objects:
  1105. 8    Add test script for text object commands "aw", "iW", etc.
  1106. 8    Add "gp" and "gP" commands: insert text and make sure there is a single
  1107.     space before it, unless at the start of the line, and after it, unless at
  1108.     the end of the line or befor a ".".
  1109. 7    Add "g{" and "g}" to move to the first/last character of a paragraph
  1110.     (instead of the line just before/after a paragraph as with "{" and "}").
  1111. 6    Ignore comment leaders for objects.  Make "das" work in reply-email.
  1112. 5    Make it possible to use syntax group matches as a text object.    For
  1113.     example, define a "ccItem" group, then do "da<ccItem>" to delete one.
  1114.     Or, maybe just define "dai", delete-an-item, to delete the syntax item the
  1115.     cursor is on.
  1116.  
  1117.  
  1118. Select mode:
  1119. 7    Alt-leftmouse starts block mode selection in MS Word.
  1120. 7    Add Cmdline-select mode.  Like Select mode, but used on the command line.
  1121.     - Change gui_send_mouse_event() to pass on mouse events when 'mouse'
  1122.       contains 'C' or 'A'.
  1123.     - Catch mouse events in ex_getln.c.  Also shift-cursor, etc., like in
  1124.       normal_cmd().
  1125.     - remember start and end of selection in cmdline_info.
  1126.     - Typing text replaces the selection.
  1127.  
  1128.  
  1129. Visual mode:
  1130. 7    Don't move the cursor when scrolling?  Needed when the selection should
  1131.     stay the same.  Scroll to the cursor at any movement command.  With an
  1132.     option!
  1133. 7    In Visual block mode, need to be able to define a corner on a position
  1134.     that doesn't have text?  Also: when using the mouse, be able to select
  1135.     part of a TAB.  Even more: Add a mode where the cursor can be on a screen
  1136.     position where there is no text.  When typing, add spaces to fill the gap.
  1137. 7    With blockwise Visual mode and "c" command, insert same text in every line.
  1138.     With "r" replace all chars in visual area witht the next char. With "C"
  1139.     replace each line with entered text (go to next line with <CR>).  With "i"
  1140.     insert the same text in front of the block in each line, with "a" append
  1141.     after every line.
  1142. 7    For Visual mode: Command to do a search for the string in the marked area.
  1143.     Only when less than two lines. Use "g/" and "g?".
  1144. 7    Filtering a block should only apply to the block, not to the whole lines.
  1145.     When the number of lines is increased, add lines. When decreased, padd with
  1146.     spaces or delete? Use ":`<,`>" on the command line.
  1147. 7    CTRL-V :s should substitute only in the block.
  1148. 7    CTRL-V > should move the block, not whole lines.
  1149. 7    CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
  1150.     current buffer.
  1151. 7    CTRL-A and CTRL-X should increase/decrease all numbers in the Visual area.
  1152. 7    "gCTRL-G" should count the number of characters in the Visual area.
  1153. 7    Support clipboard from xterm.
  1154. 6    "I" should insert the same text in front of the selected text, in each
  1155.     line.
  1156. 6    "A" should append the same text after the selected text, in each line.
  1157. 6    "p" should replace the Visual area with the contents of a register (swap
  1158.     register contents with Visual text).
  1159. 6    ":'<,'>source" should read the selected lines and ":source" them.
  1160. 6    When in blockwise visual selection (CTRL-V), allow cursor to be placed
  1161.     right of the line. Could also allow cursor to be placed anywhere on a TAB
  1162.     or other special character.
  1163. 6    Add commands to move selected text, without deselecting.
  1164. 6    Add visual command to swap selected text with unnamed register.
  1165. 6    Add visual command to do rot13 encoding.
  1166.  
  1167.  
  1168. Incsearch:
  1169. -    Add a limit to the number of lines that are searched for 'incsearch'?
  1170. -    When incsearch used and hitting return, no need to search again in many
  1171.     cases, saves a lot of time in big files. (Slootman wants to work on this?)
  1172.     When not using special characters, can continue search from the last match
  1173.     (or not at all, when there was no match).  See oldmail/webb/in.872.
  1174. -    With incsearch, use CTRL-N/CTRL-P to go to next/previous match, some other
  1175.     key to copy matched word to search pattern (Alexander Schmid).
  1176.  
  1177.  
  1178. Quickfix:
  1179. 9    'fileformat' problem with "%f" that includes a "C:/".  Common problem when
  1180.     using ":grep".  Remove scanf() and do it manually?
  1181. 8    Quickfix mode: column number should be interpreted with an 8-character
  1182.     tabstop.
  1183. 8    Allow a range for the ":clist" command.
  1184. 8    When doing ":cn" which jumps in another file, which is already displayed
  1185.     in another window, jump to that window (instead of loading the file into
  1186.     the current window, so you end up with two windows editing the same file).
  1187. 7    Add ":cnfile" command: go to first error in next file.
  1188. 6    Show quickfix lines (same as ":cl!") in a window.  Use a command to
  1189.     jump to the error (perhaps CTRL-], like with tags).  Does this open a new
  1190.     window, or use an existing window?
  1191. 6    Add parsing of multi-line error messages, where one of the lines contains a
  1192.     "^" at the column number (Campbell).  Maybe with a Perl script?
  1193. 6    Add parsing of change-directory lines in 'errorformat', for gmake:
  1194.       make[1]: Entering directory `/tmp/tools/tools-2.16/example'
  1195. 5    Add joining of lines to 'errorformat' at "\n".
  1196.  
  1197.  
  1198. More advanced repeating commands:
  1199. -    Add "." command for visual mode: redo last visual command (e.g. ":fmt").
  1200. -    Add "." command after operator: repeat last command of same operator. E.g.
  1201.     "c." will repeat last change, also when "x" used since then (Webb).
  1202.     "y." will repeat last yank.
  1203.     Also: keep history of Normal mode commands, add command to list the history
  1204.     and/or pick an older command.
  1205.  
  1206.  
  1207. Mappings and Abbreviations:
  1208. 9    Add ":amap", like ":amenu".
  1209. 8    ":unab" gives "no such mapping" emsg.  That's confusing.
  1210. 8    Allow mapping of CTRL-C in Visual mode (for Windows).
  1211. 7    Allow mapping "Q" and "Q}" at the same time.  Need to put a flag with "Q",
  1212.     that it needs an extra character before it can match. See Vile 'maplonger'
  1213.     option.
  1214. 7    When someone tries to unmap with a trailing space, and it fails, try
  1215.     unmapping without the trailing space.  Helps for ":unmap xx | unmap yy".
  1216. 7    Local mappings for a buffer. Useful for autocmds. Count for map command is
  1217.     buffer number. ":0map bar foo" = enter mapping for current buffer.
  1218.     Same for abbreviations.
  1219. 7    Make it possible to map 'wildchar', but only when it's a special character
  1220.     (like CTRL-E).  Currently it's only recognized when typed.  Useful for
  1221.     mapping a key to do something and then completion.
  1222. -    Add mappings that take arguments.  Could work like the ":s" command.  For
  1223.     example, for a mouse escape sequence:
  1224.         :mapexp  <Esc>{\([0-9]*\),\([0-9]*\);    H\1j\2l
  1225. -    Make it possible to have an empty rhs for a mapping in a vimrc file.
  1226. -    Add the possibility to enter mappings which are used whenever normal text
  1227.     could be enetered.  E.g., for "f" command.  But not in Normal mode.  Sort
  1228.     of opposite of 'langmap'.  Use ":tmap" command?
  1229. -    Make it possible to include a <Nul> in the lhs and rhs of a mapping.
  1230. -    Add command to repeat a whole mapping ("." only repeats the last change in
  1231.     a mapping).  Also: Repeat a whole insert command, including any mappings
  1232.     that it included.  Sort-of automatic recording?
  1233. -    Make it possible to undo all the commands from a mapping, including a
  1234.     trailing unfinished command, e.g. for ":map K iX^[r".
  1235. -    Add an option to ":map" that makes it display the special keys in
  1236.     <> notation (e.g. <CR> instead of ^M).    Or just always do this?
  1237. -    Include an option (or flag to 'cpoptions') that makes errors in mappings
  1238.     not flush the rest of the mapping (like nvi does).
  1239. -    Use context sensitiveness of completion to switch abbreviations and
  1240.     mappings off for :unab and :unmap.
  1241. 6    When using mappings in Insert mode, insert characters for incomplete
  1242.     mappings first, then remove them again when a mapping matches.    Avoids
  1243.     that characters that are the start of some mapping are not shown until you
  1244.     hit another character.
  1245. 5    completion of existing mappings for ":unmap", ":unab", etc.
  1246. -    Add optional <Number> argument for mappings:
  1247.     :map <Number>q             ^W^W<Number>G
  1248.     :map <Number>q<Number>t  ^W^W<Number1-1>G<Number2>l
  1249.     :map q<Char>            :s/<Char>/\u\0/g
  1250.     Or implicit:
  1251.     :map q                        <Register>d<Number>$
  1252. -    Add mappings for replace mode: ":rmap".  How do we then enter mappings for
  1253.     non-replace insert mode?
  1254. -    Add separate mappings for Visual-character/block/line mode?
  1255. 6    Alias for Normal mode commands, works like :substitute?  Would allow
  1256.     mappings with arguments.
  1257. -    Add 'mapstop' command, to stop recursive mappings.
  1258. -    List mappings that have a raw escape sequence both with the name of the key
  1259.     for that escape sequence (if there is one) and the sequence itself.
  1260. -    List mappings: Once with special keys listed as <>, once with meta chars as
  1261.     <M-a>, once with the byte values (octal?). Sort of "spell mapping" command?
  1262. -    When entering mappings: Add the possibility to enter meta keys like they
  1263.     are displayed, within <>: <M-a>, <~@> or <|a>.
  1264. -    Allow multiple arguments to :unmap.
  1265. -    Error message for ambiguous mapping: Include the arguments.
  1266. -    Command to show keys that are not used and available for mapping
  1267.     ":freekeys".
  1268. -    Allow any character except white space in abbreviations lhs (Riehm).
  1269.  
  1270.  
  1271. Searching:
  1272. 8    "/:/e+1" gets stuck on a match at the end of the line.    Do we care?
  1273. -    Add <group-name> flag for search string, to restrict the search to a
  1274.     specific highlight group.  Use "/./<Group>" to find the start of a group.
  1275. -    Add flags to search command:
  1276.     i    ignore case
  1277.     I    use case
  1278.     p    use Perl regexp syntax (or POSIX?)
  1279.     v    use Vi regexp syntax
  1280.     Perl uses these too:
  1281.     e    evaluate the right side as an expression (Perl only)
  1282.     m    multiple line expression
  1283.     o    compile only once (Perl only)
  1284.     s    single line expression
  1285.     x    extended regexp
  1286.     When used after ":g" command, backslash needed to avoid confusion with the
  1287.     following command.
  1288.     Add 'searchflags' for default flags (replaces 'gdefault').
  1289. -    Add command to display the current search pattern, substitute pattern and
  1290.     last used pattern. (Margo) Maybe make it accessible through a register ("/
  1291.     for search string)?  Also make "/ register writable (Maxi)
  1292.     How to take care of the flags (offset, magic)?
  1293. 7    Should notice that "\(a\|ab\|abc\|abcd\)" doesn't work, automatically
  1294.     change it to "\(abcd\|abc\|ab\|a\)"? (Campbell)
  1295. 7    Add POSIX regexp, like Nvi, with 'extended' option?  It's like very-magic.
  1296. 7    Use T-search algorithm, to speed up searching for strings without special
  1297.     characters.  See C't article, August 1997.
  1298. -    Add 'fuzzycase' option, so that case doesn't matter, and '-' and '_' are
  1299.     equivalent (for Unix filenames).
  1300. -    Add 'v' flag to search command: enter Visual mode, with the matching text
  1301.     as Visual area. (variation on idea from Bertin)
  1302. -    Searching: "/this//that/" should find "that" after "this".
  1303. -    Add flag to search command to forget it for "n", e.g. "/foo/f".  Also for
  1304.     ":s/pat//f".  Also add flag to 'r'emember (for mappings).
  1305. -    Add global search commands: Instead of wrapping at the end of the buffer,
  1306.     they continue in another buffer. Use flag after search pattern:
  1307.     a    for the next file in the argument list
  1308.     f    for file in the buffer list
  1309.     w    for file edited in a window.
  1310.     e.g. "/pat/f". Then "n" and "N" work through files too. "f" flag also for
  1311.     ":s/pat/foo/f"??? Then when 'autowrite' and 'hidden' are both not set, ask
  1312.     before saving files: "Save modified buffer "/path/file"? (Yes/Hide/No
  1313.     Save-all/hide-All/Quit) ".
  1314. -    Special characters in patterns:
  1315.     \A    beginning of string (for multi-line matching)
  1316.     \Z    end of string (idem)
  1317.     Inside []:
  1318.     \012  octal character
  1319.     \<BS> special character
  1320. 7    When searching with 'n' give message when getting back where the search
  1321.     first started. Remember start of search in '/ mark.
  1322. 7    Add option that scrolls screen to put cursor in middle of screen after
  1323.     search always/when off-screen/never.  And after a ":tag" command.  Maybe
  1324.     specify how many lines below the screen causes a redraw with the cursor in
  1325.     the middle (default would be half a screen, zero means always).
  1326. 6    Add \! to search patterns: matches string that does not match previous
  1327.     atom.
  1328. 6    Use \& for "and", like \| for "or".
  1329. 6    Support multiple search buffers, so macros can be made without side
  1330.     effects.
  1331. 7    From xvim: Allow a newline in search patterns (also for :s, can delete
  1332.     newline).  Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
  1333.     [not in xvim:] Add option to switch on matches crossing ONE line boundary.
  1334. 7    Add register for '?' and '/' commands? (yank_buf()).
  1335. 7    In regexp.c: "\^" after "\|" or "\(" is start of line, and "\$" before "\|"
  1336.     and "\)" is end of line.
  1337. -    Change request: "/^$\|the" finds both empty lines and "the", but "/the\|^$"
  1338.     doesn't.  Make '^' after "\|" also a special character?
  1339. -    In regexp, allow use of special characters with "\xnn" notation?
  1340. 7    Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron)
  1341.     Also ":dselect".
  1342.  
  1343.  
  1344. Undo:
  1345. 8    Make undo more memory-efficient: Compare text before and after change,
  1346.     only remember the lines that really changed. When calling u_save with a
  1347.     single line, don't save it if line was already saved for undo.
  1348. -    For u_save() include the column number. This can be used to set '[ and '].
  1349.     And in the future the undo can be made more efficient (Webb).
  1350. -    In out-of-memory situations: Free allocated space in undo, and reduce the
  1351.     number of undo levels (with confirmation).
  1352. -    Instead of [+], give the number of changes since the last write: [+123].
  1353.     When undoing to before the last write, change this to a negative number:
  1354.     [-99].
  1355. -    With undo with simple line delete/insert: optimize screen updating.
  1356. -    When executing macro's: Save each line for undo only once.
  1357. -    Store undo info in a file that survives until the next edit.  Then it's
  1358.     possible to undo to before the current editing session.  Combined with
  1359.     viminfo?
  1360. -    When doing a global substitute, causing almost all lines to be changed,
  1361.     undo info becomes very big. Put undo info in swap file??
  1362.  
  1363.  
  1364. Buffer list:
  1365. 7    Add another number for a buffer, which is visible for the user.  When
  1366.     creating a new buffer, use the lowest number not in use. (or the highest
  1367.     number in use plus one?)
  1368. 7    Add "Buffers" menu, list of (hidden) buffers.
  1369. -    When starting to edit a file that is already in the buffer list, use the
  1370.     file name argument for the new short file name. (Webb)
  1371. -    Add an option to make ":bnext" and ":bprev" wrap around the end of the
  1372.     buffer list.  Also for ":next" and ":prev"?
  1373. -    Add some way to show the current buffer number (in ruler?).
  1374. 7    Add argument to ":ls" which is a pattern for buffers to list.
  1375.     E.g. ":ls *.c". (Thompson)
  1376. 7    Add expansion of buffer names, so that "*.c" is expanded to all buffer
  1377.     names.  Needed for ":bdel *.c", ":bunload *.c", etc.
  1378. 8    Some commands don't use line numbers, but buffer numbers. '$'
  1379.     should then mean the number of the last buffer.  E.g.: "4,$bdel".
  1380.  
  1381.  
  1382. Swap (.swp) files:
  1383. 8    When the edited file is a symbolic link, use the "to" name for the swap
  1384.     file.  Avoids editing the same file twice (e.g. when using quickfix).
  1385. 7    When editing a file on removable media, should put swap file somewhere
  1386.     else.  Use something like 'r' flag in 'viminfo'. 'diravoid'?
  1387.     Also: Be able to specify minimum disk space, skip directory when not
  1388.     enough room.
  1389. 7    Add a configure check for which directory should be used: /tmp, /var/tmp
  1390.     or /var/preserve.
  1391. 7    Add a way to crypt the swap file.  Need to ask the user for a key, to be
  1392.     able to recover from the encrypted file.  crypt each block of the swap
  1393.     file separately.  Use an internal crypt function, to keep it fast.
  1394. -    Each swap file should include a flag that shows if the swapfile contains
  1395.     any changes. Report this when giving the ATTENTION message.
  1396. -    Add an option to create a swap file only when making the first change to
  1397.     the buffer.  (Liang)  Or only when the buffer is not read-only.
  1398. -    Add option to set "umask" for backup files and swap files (Antwerpen).
  1399.     'backupumask' and 'swapumask'?    Or 'umaskback' and 'umaskswap'?
  1400. -    When editing a readonly file, don't use a swap file but read parts from the
  1401.     original file.
  1402. -    When the edited file is a symlink, try to put the .swp file in the same dir
  1403.     as the actual file. Adjust FullName().    Also try to make the name of the
  1404.     backup file the same as the actual file.
  1405.  
  1406.  
  1407. Viminfo:
  1408. 9    Should also write flags and character offset for search pattern: "/pat/e".
  1409. 7    Can probably remove the code that checks for a writable viminfo file,
  1410.     because we now do the chown() for root, and others can't overwrite someone
  1411.     else's viminfo file.
  1412. 6    Store a snapshot of the currently opened windows.  So that when quitting
  1413.     Vim, and then starting again (without a file name argument), you see the
  1414.     same files in the windows.
  1415. -    Make marks present in .viminfo usable as file marks: Display a list of
  1416.     "last visited files" and select one to jump to.
  1417. -    Add jumplist to viminfo file, so that CTRL-O can be used.
  1418.  
  1419.  
  1420. Modelines:
  1421. 8    Before trying to execute a modeline, check that it looks like one (valid
  1422.     option names).  If it's very wrong, silently ignore it.
  1423. -    When an option value is coming from a modeline, do not carry it over to
  1424.     another edited file?  Would need to remember the value from before the
  1425.     modeline setting.
  1426. -    Allow ":doauto BufRead x.cpp" in modelines, to execute autocommands for
  1427.     .cpp files.
  1428. -    Support the "abbreviate" command in modelines (Kearns).  Careful for
  1429.     characters after <Esc>, that is a security leak.
  1430. -    Disallow setting the 'shell', 'makeprg', 'formatprg' or 'keywordprg'
  1431.     options in a modeline???  Also 'secure' and 'exrc' should be forbidden.
  1432. -    Make it possible to set options from modelines only temporarily for that
  1433.     file (needs a stack for saving old options).
  1434. -    Add option setting to ask user if he wants to have the modelines executed
  1435.     or not.  Same for .exrc in local dir.
  1436.  
  1437.  
  1438. External commands:
  1439. 8    When using "!~cmd", run the external command silently, don't give the
  1440.     hit-return prompt.  Already done for Risc OS, see do_shell().  Don't
  1441.     redraw the screen, make a note in the docs that CTRL-L should be used if
  1442.     the command has any output.
  1443. 4    Set separate shell for ":sh", piping "range!filter", reading text "r !ls"
  1444.     and writing text "w !wc". (Deutsche)  Allow arguments for fast start (e.g.
  1445.     -f).
  1446. 4l    Allow direct execution, without using a shell.
  1447. 4w    Run an external command in the background.  But how about I/O in the GUI?
  1448.     Careful: don't turn Vim into a shell!
  1449. -    Add 'echo' option: When off don't echo shell commands.
  1450.  
  1451.  
  1452. Folding:
  1453. -    three basic modes:
  1454.     1. automatic: set folding level, all lines above this level will be folded
  1455.      - For C-code: fold more or less {} blocks.
  1456.      - For C-code: fold comments or non-comments.
  1457.      - Fold depending on the indent (or use a regexp).
  1458.      - Use syntax highlighting stuff to detect a folding level.
  1459.     2. half-automatic: recognize objects in the text, allow the user to
  1460.        fold/unfold these objects.
  1461.      - Allow the user to specify the marker, or regexp, or use syntax
  1462.        highlighting.
  1463.     3. manual: the user specifies which lines to fold or unfold.
  1464.      ":[range]fold".  Can use Visual mode to fold any range of lines:
  1465.      "vaB:fold".  Use ":[range]fold {text}" to give a name to the fold.
  1466. -    Unfold with "l" command on folded line?  Or at least ":[line]unfold".
  1467. -    Deleting a "folded" line deletes all the folded lines.  Putting it
  1468.     somewhere else puts all the folded lines.  Useful for moving functions
  1469.     around.
  1470. -    Save folding state in viminfo file.
  1471. -    Display folded lines with "... %d lines folded".
  1472. -    Implementation: Make a copy of the buffer, which only contains the
  1473.     displayed lines?
  1474. -    Add 'hidecomment' option: don't display comments in /* */ and after //.
  1475.  
  1476.  
  1477. Multiple Windows:
  1478. -    Allow vertical splitting of screen (once?).
  1479. -    Bind windows together, scrolling is done in both windows synchronous
  1480.     (horizontally and/or vertically and for seach commands).  Use 'winbind'
  1481.     option, with flags 'v'ertical, 'h'orizontal and 's'earch?
  1482.  
  1483.  
  1484. Marks:
  1485. 8    When deleting lines, don't delete uppercase marks in them.  Move the mark
  1486.     to the nearest line.
  1487. -    Use d"m to delete rectangular area from cursor to mark m (like Vile's \m
  1488.     command).
  1489. -    When replacing with a line break, like in ":s/pat/^M/", move marks after
  1490.     the line break column to the next line. (Acevedo)
  1491. -    When filtering lines, try to keep the marks in the filtered lines.    Need
  1492.     to move some marks if the number of lines decreases.
  1493. -    When changing text, e.g. when formatting with "gq", try to keep the marks
  1494.     in the same position.
  1495. -    Add mark at the last change.  Per buffer.  Could use "'.".
  1496. 7    Highlight each mark in some way (With "Mark" highlight group).
  1497. 8    The '" mark is set to the first line, even when doing ":next" a few times.
  1498.     Only set the '" mark when the cursor was really moved in a file.
  1499. -    Add option to always use '" when starting to edit a new buffer.  Could use
  1500.     autocommand for this, but it gives an error message when the mark is not
  1501.     set.
  1502. -    Include marks for start/end of current word, sentence, paragraph, section.
  1503.     Useful in mappings.
  1504. -    Add possibility to ":jumps" to show the text in the line (for loaded
  1505.     files).  Only show the part of the line that fits in the current screen
  1506.     width and contains the mark.    Highlight the column with the mark.  Show
  1507.     "<not loaded>" for not loaded buffers.  Also for ":tags" and ":marks".
  1508. -    When inserting/deleting characters in a line, adjust marks.
  1509.  
  1510.  
  1511. Digraphs:
  1512. 8    Make it possible to enter a digraph after "r" (with CTRL-K).
  1513. -    Make it possible to enter "r<C-E>" and "r<C-Y>" (get character from line
  1514.     below/above).
  1515. -    Use digraph table to tell Vim about the collating sequence of special
  1516.     characters?
  1517. -    Add command to remove (all) digraphs. (Brown)
  1518. 7    Make it possible to switch between DOS and ISO digraphs for Win32 GUI.
  1519.  
  1520.  
  1521. Multibyte support:
  1522. -    Recognition of multi-byte character is not correct on non-MS-Windows
  1523.     systems.
  1524. -    swapchar() can only put one byte back.
  1525. -    Support full UTF8 format, also three to eight byte characters.  Use a skip
  1526.     table (from Larry Wall).  Check "yudit" for its Unicode handling.
  1527.  
  1528.  
  1529. Writing files:
  1530. -    When writing a file, name it "foo.new". Then rename "foo" to "foo.bak" and
  1531.     "foo.new" to "foo". If dir is not writable or on write error copy "foo" to
  1532.     "backupdir/foo.bak" and overwrite "foo". Check for correct group/owner and
  1533.     try to set it if not. NO: this breaks with hard links.    INSTEAD: make Amiga
  1534.     and MSDOS work like unix: first make copy of file, then truncate and
  1535.     overwrite original file. Use an option for this, default on for Unix, off
  1536.     for Amiga/MSDOS (Sayre has the algorithm worked out).
  1537. 7    When appending to a file, should Vim also make a backup and a 'patchmode'
  1538.     file?
  1539. 6    Add an option to write a new, numbered, backup file each time.  Like
  1540.     'patchmode', e.g., 'backupmode'.
  1541. 6    Add an option to prepend something to the backup file name.  E.g., "#".
  1542.     Or maybe allow a function to modify the backup file name?
  1543. 8    Only make a backup when overwriting a file for the first time. Avoids
  1544.     loosing the original when writing twice. (Slootman)
  1545. 7    On non-Unix machines, also overwrite the original file in some situations
  1546.     (file system full, it's a link on an NFS partition).
  1547. 7    When editing a file, check that it has been change outside of Vim more
  1548.     often, not only when writing over it.  E.g., at the time the swap file is
  1549.     flushed.  Or every ten seconds or so (use the time of day, check it before
  1550.     waiting for a character to be typed).
  1551.  
  1552.  
  1553. Help:
  1554. -    First try using the ":help" argument literally, before using it as a
  1555.     pattern.  And then match it as part of a tag.
  1556. -    Use GNU Texinfo for the help files somehow?  Use Info format files?
  1557. -    Default mapping for help files: <Tab> to position cursor on next |:tag|.
  1558. -    When hitting <Esc> or CTRL-C in Normal mode, give a message to help novice
  1559.     users to get out: "Type  :q!  to quit Vim".
  1560. -    Implement a "sticky" help window, some help text lines that are always
  1561.     displayed in a window with fixed height. (Guckes)  Use "~/.vimhelp" file,
  1562.     user can edit it to insert his favorite commands, new account can contain a
  1563.     default contents.
  1564. -    When entering the help window, don't resize to 'helpheight' if the user has
  1565.     reduced the size before (Webb). Keep the window height that the user set
  1566.     the window to in a "preferred window height" entry for each window.
  1567. -    ":help :s^I" should expand to ":help :substitute".
  1568. -    Make the help key (<F1>) context sensitive?
  1569. -    Learn mode: show short help while typing commands.
  1570.  
  1571.  
  1572. Substitute:
  1573. -    :s///p prints the line after a substitution.
  1574. -    With :s///c replace \&, ~, etc. when showing the replacement pattern.
  1575. 8    With :s///c allow scrolling horizontally when 'nowrap' is effective.
  1576.     Also allow a count before the scrolling keys.
  1577. -    Add number option to ":s//2": replace second occurance of string? Or:
  1578.     :s///N substitutes N times.
  1579. -    Add answers to ":substitute" with 'c' flag, used in a ":global", e.g.:
  1580.     ":g/pat1/s/pat2/pat3/cg": 'A' do all remaining replacements, 'Q' don't do
  1581.     any replacements.
  1582.  
  1583.  
  1584. Various improvements:
  1585. 8    Add "g^E" and "g^Y", to scroll a screen-full line up and down.
  1586. 6    Add ":timer" command, to set a command to be executed at a certain
  1587.     interval, or once after some time has elapsed. (Aaron)
  1588. 9    When using ":confirm q" for last window, also need to check all buffers
  1589.     for changes.  Use "exiting"?
  1590. 8    Add ":confirm" handling in open_exfile(), for when file already exists.
  1591. 8    Use confirm stuff to ask the user, when a file has changed outside of Vim,
  1592.     if he wants to reload it.  Triggered when focus gained.
  1593. 7    Add 'listtabstring' option: String to display in place of a Tab, when
  1594.     'list' option is on. (Smith)  Last char is repeated as often as needed.
  1595. 7    Add "gJ": join lines without inserting a space.
  1596. 8    Add warning when starting to edit a new file, another application creates
  1597.     the file before doing ":w" in Vim.  Like the "file changed" warning.
  1598. 7    Use growarray for replace stack.
  1599. 7    Have a look at viH (Hellenic or Greek version of Vim).  But a solution
  1600.     outside of Vim might be satisfactory (Haritsis).
  1601. 6    Allow a local doc directory?  And syntax, tools, macros...?  Use 'vimpath'
  1602.     option: list of directories which are used instead of $VIM.
  1603. 3    Make "2d%" work like "d%d%" instead of "d2%"?
  1604. 8    Make "more" prompt accept command characters, like "hit-return" prompt?
  1605.     Or extend it with more commands, like "less": 'b' for back, 'j' for one
  1606.     line down, etc.
  1607. -    For the "--more--" prompt, support the 'b'ack command (at least for
  1608.     ":clist").
  1609. 7    "g CTRL-O" jumps back to last used buffer.    Skip CTRL-O jumps in the same
  1610.     buffer.  Make jumplist remember the last ten accessed buffers?
  1611. 7    Add an option, which is a regexp, that disables warning messages which
  1612.     match that regexp (Tsirkin).
  1613. 7    Add a history of recently accessed buffer.    Maybe make "2 CTRL-^" jump to
  1614.     the 2nd previously visited buffer, "3 CTRL-^" to the third, etc.  Or use
  1615.     "3 g CTRL-^" for this?
  1616. 5    Add an option to set the width of the 'number' column.    Eight positions is
  1617.     often more than needed.
  1618. -    Add code to disable the CAPS key when going from Insert to Normal mode.
  1619. 5    Add command to go to a window that is editing a buffer with a specified
  1620.     name.  Like ":buf", but jumps to another window, if there is one.  The
  1621.     same command with "!" could be used to always go to that buffer, and jump
  1622.     to a window editing it only if there is one.
  1623.     Alternative: add an option to always jump to a window editing a buffer
  1624.     when opening a buffer and it's available (e.g. for ":cn").
  1625. -    Make it possible to ignore errors for a moment ('errorignore'?).  Another
  1626.     option to switch off giving error messages ('errorquiet'?).  Also an option
  1627.     not to give any messages ('quiet')?  Or ":quiet on", ":quiet off".
  1628.     Careful: For a severe error (out of memory), and when the user starts
  1629.     typing, error messages must be switched back on.
  1630.     Add pre-command to ignore errors for one command: ":ignore"?
  1631. -    Add the possibility to have scratch buffers.  They don't have a swap file.
  1632.     The name is not related to a file.    Use a 'scratch' option?
  1633. -    Add ":begin" command, keep getting lines until an ":end".  Useful for
  1634.     defining multi-line mappings (Webb).
  1635. -    Set date/protection/etc. of the patchfile the same as the original file.
  1636. -    Use growarray for termcodes[] in term.c
  1637. -    Use getrlimit() (if possible) to set 'maxmemtot' and 'maxmem'.
  1638. -    Add <window-99>, like <cword> but use filename of 99'th window.
  1639. -    Should make it possible for ml_get() to keep more than one line locked.
  1640.     Use ml_get_locked()?  Needed to be able to make a regexp that understands
  1641.     line breaks.
  1642. -    Make a set of operations on list of names: expand wildcards, replace home
  1643.     dir, append a string, delete a string, etc.
  1644. -    Remove mktemp() and use tmpname() only?  Ctags does this.
  1645. -    Implement command like "[[" ("]]") for Java: go to the previous (next) '{'
  1646.     ('}') that's not in column 0.
  1647. -    When replacing environment variables, and there is one that is not set,
  1648.     turn it into an empty string?  Only when expanding options? (Hiebert)
  1649. -    Option to set command to be executed instead of producing a beep (e.g. to
  1650.     call "play newbeep.au").
  1651. -    Add string option to show in status line (like the [Help] item).  Per
  1652.     buffer.  Like 'titlestring'.
  1653. -    Add option to show the current function name in the status line.  More or
  1654.     less what you find with "[[k", like how 'cindent' recognizes a function.
  1655.     (Bhatt).
  1656. -    "[r" and "]r": like "p" and "P", but replace instead of insert (esp. for
  1657.     blockwise registers).
  1658. -    Add 'timecheck' option, on by default.    Makes it possible to switch off the
  1659.     timestamp warning and question. (Dodt).
  1660. -    Add ":first", ":bfirst", etc. to complement ":last", ":blast, etc.
  1661. -    Make 'smartcase' work even though 'ic' isn't set (Webb).
  1662. 7    When formatting text, allow to break the line at a number of characters.
  1663.     Use an option for this: 'breakchars'?  Useful for formatting Fortran code.
  1664. -    Add flag to 'formatoptions' to be able to format book-style paragraphs
  1665.     (first line of paragraph has larger indent, no empty lines between
  1666.     paragraphs).  Complements the '2' flag.  Use '>' flag when larger indent
  1667.     starts a new paragraph, use '<' flag when smaller indent starts a new
  1668.     paragraph.    Both start a new paragraph on any indent change.
  1669. -    Be able to redefine where a sentence stops.  Use a regexp pattern?
  1670. -    Be able to redefine where a paragraph starts.  For "[[" where the '{' is
  1671.     not in column 1.
  1672. -    Add ":switch bufname" command, like ":buf", but jump to window with that
  1673.     buffer, or open new window if there isn't one.
  1674. -    Add option to make messages scroll up from the bottom, increasing
  1675.     'cmdheight' and remove the wait-for-return message.  Needs a setting for
  1676.     the maximum number of lines for which this will work.  And a setting for
  1677.     when the messages will be removed (any key press/timeout of N
  1678.     seconds/CTRL-L) (Webb).
  1679.     ALTERNATIVE: Keep a history of the last N messages.  Don't ask to hit
  1680.     return for that many messages.  Add command to scroll up/down in message
  1681.     history (Aerts).  Also need to keep the most important messages: Error
  1682.     messages are not overwritten by warning or informative messages.
  1683. -    ":cd": echo the new current directory.
  1684. -    Add ":cdp": go back to the previous directory.  Need to remember the
  1685.     previous directory (or a stack of dir names?).  Then we also need ":cdn".
  1686. -    Make "gq<CR>" work on the last line in the file.  Maybe for every operator?
  1687. 8    findmatchlimit() should be able to skip comments.  Solves problem of
  1688.     matching the '{' in /* if (foo) { */ (Fiveash)
  1689. -    Add redirecting of Ex commands to a buffer: ":redir @ bufname".
  1690. -    Setting of options, specifically for a buffer or window, with
  1691.     ":set window.option" or ":set buffer.option=val".  Or use ":buffer.set".
  1692.     Also: "buffer.map <F1> quit".
  1693. -    Add :delcr command:
  1694.                             *:delcr*
  1695.      :[range]delcr[!]    Check [range] lines (default: whole buffer) for lines
  1696.                         ending in <CR>.  If all lines end in <CR>, or [!] is
  1697.                         used, remove the <CR> at the end of lines in [range].
  1698.                         A CTRL-Z at the end of the file is removed.  If
  1699.                         [range] is omitted, or it is the whole file, and all
  1700.                         lines end in <CR> 'textmode' is set.  {not in Vi}
  1701. -    Should integrate addstar() and file_pat_to_reg_pat().
  1702. -    Add 'sidescrolloff' option, like 'scrolloff', to make the cursor always
  1703.     appear in the middle of the window horizontally (Benjamin Griffin).
  1704. -    When working over a serial line with 7 bit characters, remove meta
  1705.     characters from 'isprint'.
  1706. -    When 'wrap' is off, add commands to scroll screen left/right by half the
  1707.     screen width: "zH" and "zL"?
  1708.     NO: use "zH" and "zL" to work like "zt" and "zb", because that's what would
  1709.     be logical compared to the "H" and "L" commands. (Guckes)
  1710.     Use "z0" and "z$" to scroll half a page?
  1711. -    Use fchdir() in init_homedir(), like in FullName().
  1712. -    In win_update(), when the GUI is active, always use the scrolling area.
  1713.     Avoid that the last status line is deleted and needs to be redrawn.
  1714. -    Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
  1715.     thing.    (only repeat insert for the first line).
  1716. -    That "cTx" fails when the cursor is just after 'x' is Vi compatible, but
  1717.     may not be what you expect.  Add a flag in 'cpoptions' for this?  More
  1718.     general: Add an option to allow "c" to work with a null motion.
  1719. -    Call maketitle() whenever curbuf->b_changed is set or reset, and include
  1720.     "Vim +" in the title for changed buffers.  How about the icon?
  1721. -    Give better error messages by using errno (strerror()).
  1722. -    Give "Usage:" error message when command used with wrong arguments (like
  1723.     Nvi).
  1724. -    Make 'restorescreen' option also work for xterm (and others), replaces the
  1725.     SAVE_XTERM_SCREEN define.
  1726. -    Give warning message when using ":set t_xx=asdf" for a termcap code that
  1727.     Vim doesn't know about.  Add flag in 'shortmess'?
  1728. 6    Add ":che <file>", list all the include paths which lead to this file.
  1729. -    For a commandline that has several commands (:s, :d, etc.) summarize the
  1730.     changes all together instead of for each command (e.g. for the rot13
  1731.     macro).
  1732. -    Add command like "[I" that also shows the tree of included files.
  1733. -    Add words to 'cinwords' to reduce the indent, e.g., "end" or "fi".
  1734. -    ":set sm^L" results in ":set s", because short names of options are also
  1735.     expanded.  Is there a better way to do this?
  1736. -    Add ":@!" command, to ":@" like what ":source!" is to ":source".
  1737. -    Should be possible to write to a device, e.g. ":w! /dev/null".
  1738. -    Add 't_normal': Used whenever t_me, t_se, t_ue or t_Zr is empty.
  1739. 6    Make strings in 'comments' option a RE, to be able to match more
  1740.     complicated things. (Phillipps)
  1741. -    Make the 'comments' option with "/* * */" lines only repeat the "*" line
  1742.     when there is a "/*" before it?  Or include this in 'cindent'?
  1743. -    ":cab map test ^V| je", ":cunab map" doesn't work.    This is vi compatible!
  1744. -    CTRL-W CTRL-E and CTRL-W CTRL-Y should move the current window up or down
  1745.     if it is not the first or last window.
  1746. -    Include-file-search commands should look in the loaded buffer of a file (if
  1747.     there is one) instead of the file itself.
  1748. -    "g CTRL-A" and "g CTRL-X": Increment/decrement alphabetical char
  1749.     (a -> b -> c)?    With flag in 'nrformats'?
  1750. 7l    Change 'nrformats' to include the leader for each format.  Example:
  1751.         nrformats=hex:$,binary:b,octal:0
  1752.     Add setting of 'nrformats' to syntax files.
  1753. 8    Add possibility for file name on the command line to be searched for in the
  1754.     'path',  when there is a special character before the file name ('<' ?).
  1755.     Or use ":gf fname" command (like ":e")?  ":[count]gf fname".
  1756. -    'path' can become very long, don't use NameBuff for expansion.
  1757. -    Allow the use of wildcards in 'path'.
  1758. -    When unhiding a hidden buffer, put the same line at top of the window as
  1759.     the one before hiding it. Or: keep the same relative cursor position (so
  1760.     many percent down the windows).
  1761. -    Add a command like ":cn" that jumps to the next error, but uses an open
  1762.     window for the buffer with the error if possible, and opens a new window
  1763.     otherwise. Use ":cj"?
  1764. -    Make it possible for the 'showbreak' to be displayed at the end of the
  1765.     line.  Use a comma to separate the part at the end and the start of the
  1766.     line?  Highlight the linebreak characters, add flag in 'highlight'.
  1767. -    Some string options should be expanded if they have wildcards, e.g.
  1768.     'dictionary' when it is "*.h".
  1769. -    Use a specific type for number and boolean options, making it possible to
  1770.     change it for specific machines (e.g. when a long is 64 bit).
  1771. -    Add option for <Insert> in replace mode going to normal mode. (Nugent)
  1772. -    Add a next/previous possibility to "[^I" and friends.
  1773. 7    Should ":cd" for MS-DOS go to $HOME, when it's defined?
  1774. -    Add possibility to change the HOME directory.  Use the directory from the
  1775.     passwd file? (Antwerpen)
  1776. -    When doing "[^I" or "[^D" add position to tag stack.
  1777. -    Add command to put current position to tag stack: ":tpush".
  1778. 8    Add commands to push and pop all or individual options. ":setpush tw",
  1779.     ":setpop tw", ":setpush all".  Maybe pushing/popping all options is
  1780.     sufficient.  ":setflush" resets the option stack?
  1781.     How to handle an aborted mapping?  Remember position in tag stack when
  1782.     mapping starts, restore it when an error aborts the mapping?
  1783. -    Add command to put all filenames from the tag files in the argument list.
  1784.     When given an argument, only use the files where that argument matches
  1785.     (like `grep -l ident`) and jump to the first match.
  1786. -    When appending to a register, also report the total resulting number of
  1787.     lines.    Or just say "99 more lines yanked", add the "more".
  1788. -    Add ":grep" command. Works like ":make" but uses "grep -n" instead of
  1789.     "make", 'grepprg' instead of 'makeprg', 'grepformat' instead of
  1790.     'errorformat'.
  1791.     Even better: Use a builtin grep command?  Makes it possible to add the
  1792.     column number.
  1793. -    Add command to form an args list from all the buffers.
  1794. -    Keep a list of most recently used files for each window, use "[o" to go
  1795.     back (older file) and "]n" to go forward (newer file) (like ^O and ^I for
  1796.     jumps) (Webb). Use ":files" and ":ls" to list the files in history order.
  1797. -    Implement mouse support for the Amiga.
  1798. -    xterm: Implement support for visual feedback of mouse dragging.
  1799. -    Using right mouse button to extend a blockwise selection should attach to
  1800.     the nearest corner of the rectangle (four possible corners).
  1801. -    Precede mouse click by a number to simulate double clicks?!?
  1802. -    Change ":fixdel" into option 'fixdel', t_del will be adjusted each time
  1803.     t_bs is set? (Webb)
  1804. -    "gc": goto character, move absolute character positions forward, also
  1805.     counting newlines. "gC" goes backwards, "g^C" goes to absolute position
  1806.     (Weigert).
  1807. -    When doing CTRL-^, redraw buffer with the same topline (Demirel). Store
  1808.     cursor row and window height to redraw cursor at same percentage of window
  1809.     (Webb).
  1810. -    Besides remembering the last used line number of a file, also remember the
  1811.     column. Use it with CTRL-^ et. al.
  1812. -    When a window resizes, the line with the cursor should stay at the same
  1813.     percentage from the start of the window as it was before.
  1814. -    Check for non-digits when setting a number option (careful when entering
  1815.     hex codes like 0xff).
  1816. -    Add option to make "." redo the "@r" command, instead of the last command
  1817.     executed by it.  Also to make "." redo the whole mapping.  Basically: redo
  1818.     the last TYPED command.
  1819. -    Support URL links for ^X^F in insert mode, like for "gf".
  1820. -    Add 'wwwpath', used like 'path' for when "gf" used on an URL?
  1821. -    Add ":path" command modifier.  Should work for every command that takes a
  1822.     file name argument, to search for the file name in 'path'.    Use
  1823.     find_file_in_path().
  1824. -    Highlight control characters on the screen: Shows the difference between
  1825.     CTRL-X and "^" followed by "X" (Colon).
  1826. -    Integrate parsing of cmdline command and parsing for expansion.
  1827. -    When inserting a register in insert mode with CTRL-R, don't insert comment
  1828.     leader when line wraps?
  1829. -    'flipcase' variable: upper/lower case pairs. (alternative: translate
  1830.     command, e.g. ":tr \248-\254 \216-\222") (From Elvis, don't like it).
  1831.     Insert comma's between pairs and allow a range, e.g. :set
  1832.     flipcase=a-zA-Z,..
  1833. -    Create a program that can translate a .swp file from any machine into a
  1834.     form usable by Vim on the current machine.
  1835. -    Add ":noro" command: Reset 'ro' flag for all buffers, except ones that have
  1836.     a readonly file. ":noro!" will reset all 'ro' flags.
  1837. -    Add a variant of CTRL-V that stops interpretation of more than one
  1838.     character.    For entering mappings on the command line where a key contains
  1839.     several special characters, e.g. a trailing newline.
  1840. -    The ":@r" commands should take a range and execute the register for each
  1841.     line in the range.
  1842. -    Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
  1843.     the two into a regex for searching. (Ned Konz)
  1844. -    Make '2' option in 'formatoptions' also work inside comments.
  1845. -    Add 's' flag to 'formatoptions': Do not break when inside a string. (Dodt)
  1846. -    Add flag to 'formatoptions' to recognize the change of indent as the start
  1847.     of a new paragraph (for paragraphs without separating empty line, but extra
  1848.     indent for the new paragraph) (Leitner).
  1849. -    Add commands ":C" and ":X". ":C" does encryption?
  1850. -    Option for filter when reading/writing a file for compression or crypting
  1851.     (-x command line option, -z option: gzip/gunzip).
  1852. -    When window size changed (with the mouse) and made too small, set it back
  1853.     to the minimal size.
  1854. -    Add "]>" and "[<", shift comment at end of line (command;  /* comment */).
  1855. -    Should not call cursorcmd() for each vgetc() in getcmdline().
  1856. -    Add the ex address '}', next empty line (like the "}" command).
  1857. -    When switching to another file and screen scrolls because of the long
  1858.     message and return must be typed, don't scroll the screen back before
  1859.     redrawing.
  1860. -    ":split file1 file2" adds two more windows (Webb).
  1861. -    Add the possibility to use more than one argument list: ":arglist 2".
  1862. -    When mouse click after 'r' command, get character that was pointed to.
  1863. -    Don't give message "Incomplete last line" when editing binary file.
  1864. -    Add ":a", ":i" for preloading of named buffers.
  1865. -    In Replace mode, tab replaces as many characters as it takes on the screen,
  1866.     text remains at the same position. Requires replace-stack to work with
  1867.     strings instead of characters? Implement 'replacealign' in a different way
  1868.     from Webb.
  1869. -    Allow autowrite when doing ":e file" (with an option 'eaw').
  1870. -    Allow a "+command" argument before each file name in the Vim command line:
  1871.     "vim +123 file1 +234 file2 +345 file3". ???
  1872. -    When entering text, keep other windows on same buffer updated (when a line
  1873.     entered)?
  1874. -    Check out how screen does output optimizing.  Apparantly this is possible
  1875.     as an output filter.
  1876. -    Change ".swp" to ".vim", because it give a hint who created the file?
  1877. -    Use termcap 'ts' and 'fs' entries for setting the window title. Check 'hs'
  1878.     and use minimum of 'ws' (if present) and Columns to truncate the title.
  1879. -    In dosub() regexec is called twice for the same line. Try to avoid this.
  1880. -    Window updating from memline.c: insert/delete/replace line.
  1881. -    Optimize ml_append() for speed, esp. for reading a file.
  1882. -    V..c should keep indent when 'ai' is set, just like <count>cc.
  1883. -    Updatescript() can be done faster with a string instead of a char.
  1884. -    Screen updating is inefficient with CTRL-F and CTRL-B when there are long
  1885.     lines.
  1886. -    Uppercase characters in ex commands can be made lowercase?
  1887. -    Add "P" command to insert contents of unnamed register, move selected text
  1888.         to position of previous deleted (to swap foo and bar in " + foo")
  1889. -    Add option to show character value under the cursor in octal, decimal, hex
  1890.     and screen code all the time (like 'ruler' plus "ga").
  1891. -    Add word count to "g CTRL-G".
  1892. -    Add option to show characters in text not as "|A" but as decimal ("^129"),
  1893.     hex ("\x81") or octal ("\201") or meta (M-x).  Nvi has the 'octal' option
  1894.     to switch from hex to octal.
  1895. -    How does vi detect whether a filter has messed up the screen? Check source.
  1896.     After ":w !command" a wait_return?
  1897. -    Improve screen updating code for doput() (use s_ins()).
  1898. -    With 'p' command on last line: scroll screen up (also for terminals without
  1899.     insert line command).
  1900. -    Option to set time for emsg() sleep. Interrupt sleep when key is typed?
  1901.     sleep before second message?
  1902. -    Delete message after new command has been entered and have waited for key.
  1903. -    History stack for . command? Use "g." command.
  1904. -    Use insert/delete char when terminal supports it.
  1905. -    Optimize screen redraw for slow terminals.
  1906. -    Optimize "dw" for long row of spaces (say, 30000).
  1907. -    Add "-d null" for editing from a script file without displaying.
  1908. -    MSDOS: search for _exrc in the directory where the binary is, instead of
  1909.     using $VIM\_exrc.
  1910. -    In insert mode: Remember the characters that were removed with backspace
  1911.     and re-insert them one at a time with <key1>, all together with <key2>.
  1912. -    Amiga: Add possibility to set a keymap. The code in amiga.c does not work
  1913.     yet.
  1914. -    Implement 'redraw' option.
  1915. -    Add possibility to put the value of an option into the text: "'lines'p
  1916.     CTRL-R'lines'
  1917. -    Add possibility to put an environment variable into the text: "$DATE$p
  1918. -    Add special code to 'sections' option to define something else but '{' or
  1919.     '}' as the start of a section (e.g. one shiftwidth to the right).
  1920. -    Nopaste option: Mappings with non-printable characters are OK.
  1921. -    Add 'indent' option: Always use this amount of indent when starting a new
  1922.     line and when formatting text.
  1923. -    Use pipes for filtering on Unix.
  1924. 7    Allow using Vim in a pipe: "ls | vim -u xxx.vim - | yyy".  Only needs
  1925.     implementing ":w" to stdout in the buffer that was read from stdin.
  1926. -    Allow for +command and -option on any position in argv[].
  1927. -    Add commands like ]] and [[ that do not include the line jumped to.
  1928. -    When :unab without matching "from" part and several matching "to" parts,
  1929.     delete the entry that was used last, instead of the first in the list.
  1930. -    Recognize "$*" in 'makeprg'; replace it by the arguments to :make.
  1931. -    Add text justification option.
  1932. -    Add put function that replaces the text under it.
  1933. -    After "inv"ing an option show the value: ":set invpaste" gives "paste is
  1934.     off".
  1935. -    Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
  1936. -    When a file cannot be opened but does exist, give error message.
  1937. -    Amiga: When 'r' protection bit is not set, file can still be opened but
  1938.     gives read errors. Check protection before opening.
  1939. -    When writing check for file exists but no permission, "Permission denied".
  1940. -    If file does not exists, check if directory exists.
  1941. -    MSDOS: although t_cv and t_ci are not set, do invert char under cursor.
  1942. -    Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex
  1943.     commands.
  1944. -    ":set -w all": list one option per line.
  1945. -    When writing to a not writable file (with ":w!") ask for permission to
  1946.     overwrite it (if file can be made writable) and restore file to readonly
  1947.     afterwards.
  1948. -    Amiga: test for 'w' flag when reading a file.
  1949. -    :table command (Webb)
  1950. -    Add command to go to last non-blank in line (like 0 vs. ^, $ vs. ???)
  1951. -    Add new operator: clear, make area white (replace with spaces): "gb".
  1952. -    Make it possible for a user to define a new operator.  Implementation with
  1953.     internal scripting language or Perl?
  1954. -    Add command to ":read" a file at a certain column (blockwise read?).
  1955. -    For "%" command: set hierarchy for which things include other things that
  1956.     should be ignored (like "*/" inside /* */).
  1957.     Also: use "%" to jump from start to end of syntax region and back.
  1958. -    Add 'resizecmd' option: vi command to be executed when window is resized.
  1959. -    Add sort of replace mode where case is taken from the old text (Goldfarb).
  1960. -    Allow multiple arguments for ":edit", add them to the argument list.
  1961. -    Allow multiple arguments for ":read", read all the files.
  1962. -    Support for tabs in specific columns: ":set tabcol=8,20,34,56" (Demirel).
  1963. -    Add 'searchdir' option: Directories to search for file name being edited
  1964.     (Demirel).
  1965. -    Modifier for the put command: Change to linewise, charwise, blockwise, etc.
  1966. -    Add commands for saving and restoring options ":set save" "set restore",
  1967.     for use in macro's and the like.
  1968. -    Add option to set the number of lines when not to scroll, instead of the
  1969.     fixed number used now (for terminals that scroll slow with a large number
  1970.     of lines but not with a single line).
  1971. -    Keep output from listings in a window, so you can have a look at it while
  1972.     working in another window. Put cmdline in a separate window?
  1973. -    Add possibility to put output of ex commands in a buffer or file, e.g. for
  1974.     ":set all".  ":r :set all"?
  1975. -    'edit' option: When off changing the buffer is not possible (Really
  1976.     read-only mode).
  1977. -    When the 'equalalways' option is set, creating a new window should not
  1978.     result in windows to become bigger. Deleting a window should not result in
  1979.     a window to become smaller (Webb).
  1980. -    When resizing the whole Vim window, the windows inside should be resized
  1981.     proportionally (Webb).
  1982. -    Include options directly in option table, no indirect pointers. Use
  1983.     mkopttab to make option table?
  1984. -    When doing ":w dir", where "dir" is a directory name, write the current
  1985.     file into that directory, with the current file name (without the path)?
  1986. -    Add command to go to Nth character in the file, "123g|"?
  1987. -    Support for 'dictionary's that are sorted, makes access a lot faster
  1988.     (Haritsis).
  1989. -    Add "^Vrx" on the command line, replace with contents of register x. Used
  1990.     instead of CTRL-R to make repeating possible. (Marinichev)
  1991. -    Add "^Vb" on the command line, replace with word before or under the
  1992.     cursor?
  1993. -    Make contents of status line configurable, with a printf-like format
  1994.     string.
  1995. -    Option to make a .swp file only when a change is made (Templeton).
  1996. -    Support mapping for replace mode and "r" command (Vi doesn't do this)?
  1997. -    Set boolean options on/off with ":set paste=off", ":set paste=on".
  1998. -    In an Ex range, use { for start of paragraph, } for end of paragraph,
  1999.     [, ], etc.?
  2000. 5    Add 'ignorefilecase' option: Ignore case when expanding file names.
  2001.     ":e ma<Tab>" would also find "Makefile" on Unix.
  2002.  
  2003.  
  2004. From Elvis:
  2005. -    Use "instman.sh" to install manpages?
  2006. -    Add ":alias" command.
  2007. -    fontchanges recognized "\\fB" etc.
  2008. -    Search patterns:
  2009.       \=        match empty string, leave cursor here.
  2010.       \@        match word under cursor.
  2011.     but do:
  2012.       \@        leave the cursor "at" this position
  2013.       \w        match the word under the cursor?
  2014.       \W        match the WORD under the cursor?
  2015. 8    ":window" command:
  2016.     :win +        next window (up)
  2017.     :win ++        idem, wrapping
  2018.     :win -        previous window (down)
  2019.     :win --        idem, wrapping
  2020.     :win nr        to window number "nr"
  2021.     :win name    to window editing buffer "name"
  2022. 7    ":cc" compiles a single file (default: current one).  'ccprg'    option is
  2023.     program to use with ":cc".  Use ":compile" instead of ":cc"?
  2024.  
  2025.  
  2026. From Nvi:
  2027. -    'cdpath' option.
  2028. -    'searchincr' option, alias for 'incsearch'?
  2029. -    'leftright' option, alias for 'nowrap'?
  2030. -    Have a look at "vi/doc/vi.chart", for Nvi specialities.
  2031. 8    Add 'keytime', time in 1/10 sec for mapping timeout?
  2032. -    Add 'filec' option as an alternative for 'wildchar'.
  2033. 8    Lock a file when starting to edit it with flock() of fcntl().
  2034. 6    Support Nvi command names as an alias:
  2035.     :bg                :hide
  2036.     :fg    fname        :buf fname (with 'hidden' set?)
  2037.     :dis b            :ls
  2038.     :Edit fname        :split fname
  2039.     :Fg fname        :sbuf fname (with 'hidden' set?)
  2040.     :Next            :snext (can't do this, already use :Next)
  2041.     :Previous        :sprevious
  2042.     :Tag            :stag
  2043.  
  2044.  
  2045. From xvim:
  2046. -    Use '\' before commands to make them linewise.
  2047. -    Add :collapse, remove multiple blank lines (Demirel, Webb)?
  2048.  
  2049.  
  2050. From xvi:
  2051. -    CTRL-_ : swap 8th bit of character.
  2052. -    Add egrep-like regex type, like xvi (Ned Konz) or Perl (Emmanuel Mogenet)
  2053.  
  2054.  
  2055. From vile:
  2056. -    Show unprintable characters in hex. (or in octal)
  2057. -    When horizontal scrolling, use '<' and '>' for lines continuing outside of
  2058.     window.
  2059. -    Support putting .swp files in /tmp: Command in rc.local to move .swp files
  2060.     from /tmp to some directory before deleting files.
  2061.  
  2062.  
  2063. Far future extentions:
  2064. -    Change layout of blocks in swap file: Text at the start, with '\n' in
  2065.     between lines (just load the file without changes, except for Mac).
  2066.     Indexes for lines are from the end of the block backwards.  It's the
  2067.     current layout mirrored.
  2068. -    Make it possible to edit a register, in a window, like a buffer.
  2069. -    Add stuff to syntax highlighting to change the text (upper-case keywords,
  2070.     set indent, define other highlighting, etc.).
  2071. -    Mode to keep C-code formatted all the time (sort of on-line indent).
  2072. -    Several top-level windows in one Vim session.  Be able to use a different
  2073.     font in each top-level window.
  2074. -    Allow editing beyond end of line, just like there are all spaces. Switch
  2075.     this on with an option or special insert mode command. Also allow editing
  2076.     above start and below end of buffer.
  2077. -    Smart cut/paste: recognize words and adjust spaces before/after them.
  2078. -    Change the output to the message line. Don't redraw the screen until the
  2079.     next vi command. Remember message line for redraw. Integrate the command
  2080.     line in updateScreen().
  2081. -    Mode to keep text formatted while inserting/deleting. Use soft/hard returns
  2082.     with an option to switch this off.
  2083. -    Add column numbers to ":" commands ":line1,line2[col1,col2]cmd".  Block
  2084.     can be selected with CTRL-V.  Allow '$' (end of line) for col2.
  2085. -    Add open mode, use it when terminal has no cursor positioning.
  2086. -    Special "drawing mode": a line is drawn where the cursor is moved to.
  2087.     Backspace deletes along the line (from jvim).
  2088. -    Perform commands on multiple windows (:W%s/foo/bar/g), multiple arguments
  2089.     (:A) or multiple buffers (:B). Implement ":Bset", set option in all
  2090.     buffers.  Also ":Wset", set in all windows, ":Aset, set in all arguments
  2091.     and ":Tset", set in all files mentioned in the tags file.  Add buffer/arg
  2092.     range, like in ":2,5B%s/..." (do we really need this???) Add search
  2093.     string: "B/*.c/%s/.."?  Or ":F/*.c/%s/.."?
  2094. -    Support for underlining (underscore-BS-char), bold (char-BS-char) and other
  2095.     standout modes switched on/off with , 'overstrike' option (Reiter).
  2096. -    Add vertical mode (Paul Jury, Demirel): "5vdw" deletes a word in five
  2097.     lines, "3vitextESC" will insert "text" in three lines, etc..
  2098. 4w    Recognize l, #, p as 'flags' to EX commands:
  2099.     :g/RE/#l shall print lines with line numbers and in list format.
  2100.     :g/RE/dp shall print lines that are deleted.
  2101.     POSIX: Commands where flags shall apply to all lines written: list,
  2102.     number, open, print, substitute, visual, &, z. For other commands, flags
  2103.     shall apply to the current line after the command completes.  Examples:
  2104.     :7,10j #l Join the lines 7-10 and print the result in list
  2105.  
  2106. vim:tw=78:sw=4:ts=4:
  2107. vim:comments=fb\:9,fb\:8,fb\:7,fb\:6,fb\:5,fb\:4,fb\:3,fb\:2,fb\:1,fb\:-,fb\:9q,fb\:8q,fb\:7q,fb\:6q,fb\:5q,fb\:4q,fb\:3q,fb\:2q,fb\:1q,fb\:9s,fb\:8s,fb\:7s,fb\:6s,fb\:5s,fb\:4s,fb\:3s,fb\:2s,fb\:1s,fb\:9l,fb\:8l,fb\:7l,fb\:6l,fb\:5l,fb\:4l,fb\:3l,fb\:2l,fb\:1l,fb\:9w,fb\:8w,fb\:7w,fb\:6w,fb\:5w,fb\:4w,fb\:3w,fb\:2w,fb\:1w,fb\:9b,fb\:8b,fb\:7b,fb\:6b,fb\:5b,fb\:4b,fb\:3b,fb\:2b,fb\:1b,fb\:9m,fb\:8m,fb\:7m,fb\:6m,fb\:5m,fb\:4m,fb\:3m,fb\:2m,fb\:1m,fb\:9?,fb\:8?,fb\:7?,fb\:6?,fb\:5?,fb\:4?,fb\:3?,fb\:2?,fb\:1?
  2108.