home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / doc / todo.txt < prev    next >
Encoding:
Text File  |  1999-09-25  |  139.1 KB  |  2,700 lines  |  [TEXT/MPS ]

  1. *todo.txt*      For Vim version 5.5.  Last change: 1999 Sep 19
  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 column of the line a classification is used to be able
  12. to look for "the next thing to do":
  13.  
  14. Priority classification:
  15. 9    next point release
  16. 8    next release
  17. 7    as soon as possible
  18. 6    soon
  19. 5    should be included
  20. 4    nice to have
  21. 3    consider including
  22. 2    maybe not
  23. 1    probably not
  24. -    unclassified
  25.  
  26. Plan:
  27. 1.    Following 5.x releases will be the "stable" branch.  Bug fixes only.
  28. 2.    Start work on version 6.0, the "unstable" branch.  Many new features to be
  29.     included.  First of all: Folding.
  30.  
  31. See |votes-for-changes| for a list of votes on desired changes in Vim.
  32. See |develop.txt| for development plans.
  33.  
  34.                                                         *known-bugs*
  35. -------------------- Known bugs and current work -----------------------
  36.  
  37. Vi incompatibility:
  38. 8    With undo/redo only marks in the changed lines should be changed.  Other
  39.     marks should be kept.  Vi keeps each mark at the same text, even when it
  40.     is deleted or restored. (Webb)  Also: A mark is lost after: make change,
  41.     undo, redo and undo.
  42. 8    When using ":s" to split a line, marks are moved to the next line. (Geddes)
  43. 8    When using ":n" ":rew", the prev. context mark is in the same place as the
  44.     cursor, not on the first line.
  45. 8    text is put in register 1 when using "c" and "d" with a motion character:
  46.     <control-A>   %   (   ) `<character>   /   ?   N n     {     }
  47.     (from Nvi manual).
  48. 8    When stdin is not a tty, and Vim reads commands from it, an error should
  49.     make Vim exit.
  50. 8    Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
  51.     (currently you can continue typing, but it's truncated later anyway).
  52. 8    When loading a file in the .exrc, Vi loads the argument anyway.  Vim skips
  53.     loading the argument if there is a file already. When no file argument
  54.     given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
  55. 8    In Insert mode, when using <BS> or <Del>, don't wipe out the text, but
  56.     only move back the cursor.    Behaves like '$' in 'cpoptions'.  Use a flag
  57.     in 'cpoptions' to switch this on/off.
  58. 8    When editing a file which is a symbolic link, Vim opens another symbolic
  59.     link on the same file under the name of the first one.  Adjust the file
  60.     name in the buffer to the last one used?  Use several file names in one
  61.     buffer???
  62. 7    The ":g/re/p" command overwrites the command.  This makes it difficult to
  63.     see where the text ends and the matches start.  Add a 'cpoptions' flag for
  64.     this?
  65.     The ":map" command does the same.  Perhaps it should keep the ":map" when
  66.     it's used without arguments?
  67. 7    When interrupting reading a file, Vi considers the buffer modified.  Add a
  68.     'cpoptions' flag for this (we don't want it modified always to be able to
  69.     do ":q")?
  70. 7    CTRL-L is not the end of a section?  It is for Posix!  Make it an option.
  71. 7    Implement 'prompt' option.    Init to off when stdin is not a tty.
  72. 7    CTRL-T in Insert mode inserts 'shiftwidth' of spaces at the cursor.  Add a
  73.     flag in 'cpoptions' for this.
  74. 7    Add a way to send an email for a crashed edit session.  Create a file when
  75.     making changes (containing name of the swap file), delete it when writing
  76.     the file.  Supply a program that can check for crashed sessions (either
  77.     all, for a system startup, or for one user, for in a .login file).
  78. 7    Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
  79. 7    "z3<CR>" should still use the whole window, but only redisplay 3 lines.
  80. 7    ":tag xx" should move the cursor to the first non-blank.  Or should it go
  81.     to the match with the tag?    Option?
  82. 7    Implement 'autoprint'/'ap' option.
  83. 7    Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
  84.     (Sayre).
  85. 7    Add flag in 'cpoptions' that makes operator (yank, filter) not move the
  86.     cursor, at least when canceled. (default vi compatible).
  87. 7    Make "5dd" on last-but-one-line not delete anything (vi compatible).
  88.     Change cursor_down()???  Many other commands will change too: "5j", "c5j",
  89.     etc.  Add flag in 'cpoptions'?
  90. 7    This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
  91.     In Vi you can edit in visual mode, and when doing "Q" you jump to the next
  92.     match.  Nvi can do it too.
  93. 7    Support '\' for line continuation in Ex mode for these commands: (Luebking)
  94.         g/./a\                g/pattern1/ s/pattern2/rep1\\
  95.         line 1\                line 2\\
  96.         line 2\                line 3\\
  97.         .                    line4/
  98. 6    ":e /tmp/$tty" doesn't work.  ":e $uid" does.  Is $tty not set because of
  99.     the way the shell is started?
  100. 6    After ":cd", meaning of file names for existing buffers changes.  Do we
  101.     care?
  102. 6    Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
  103.     thing.    (only repeat insert for the first line).
  104.  
  105.  
  106. GTK+ GUI known bugs:
  107. 9    Can't paste a Visual selection from GTK-gvim to vim in xterm when it is
  108.     longer than 4000 characters.  Works OK from gvim to gvim and vim to vim.
  109.     This is a GTK problem.
  110. 9    With the guifont "-*-clean-medium-r-*-*-8-*-*-*-*-80-*" bold characters
  111.     are drawn wrong.  Try on C source code.  Probably a font problem.  Check
  112.     font cell size and use bold font trick if it's wrong?
  113. 8    Menu item ordering is not according to priority.
  114. 8    'mousefocus' doesn't work. (Roemer)
  115. 8    Some keys don't work: Shift-TAB, CTRL-@.
  116. 8    When using "gvim -geom 40x30" or setting 'columns' in .gvimrc or with a
  117.     GUIEnter autocommand, the width is still set to fit the toolbar.  Also
  118.     happens when changing the font.  How to avoid that the toolbar specifies
  119.     the minimal window width?
  120. 8    Changing GTK themes isn't handled correctly.  Background color is wrong
  121.     when scrolling with keyboard commands. Selection has no color. (Akkerman)
  122. 8    Implement "no" value for 'winaltkeys': don't use Alt-Key as a menu
  123.     shortcut, when 'wak' changed after creating the menus.
  124. 8    Dialogs sometimes appear a bit far away.  Apply a patch from brent verner
  125.     to make it work better?
  126.  
  127.  
  128. Win32 GUI known bugs:
  129. 9    Clipboard doesn't always work as it should:
  130.     - Selecting text while editing a command-line has an implied copy to the
  131.       clipboard.  Remove this, and add a command character to copy/cut/delete
  132.       the selected text (used in the popup menu).
  133.     - When selecting at the more-prompt or hit-return-prompt right mouse
  134.       button doesn't give popup menu.  Also has an implied copy to the
  135.       clipboard.  Use the popup menu "Copy" entry for that.
  136. 9    When there are more than 32767 lines, the scrollbar has a roundoff error.
  137.     Clicking the up or down error scrolls two lines or more.  Looks like there
  138.     is an extra event that reports the new position of the scrollbar.
  139. 9    The "Edit with Vim" registry entry really causes trouble for MS-Office
  140.     users.  Can this be avoided?
  141. 8    When 'grepprg' doesn't execute, the error only flashes by, the
  142.     user can hardly see what is wrong. (Moore)
  143.     Could use vimrun with an "-nowait" argument to only wait when an error
  144.     occurs, but "command.com" doesn't return an error code.
  145. 8    When the 'shell' cannot be executed, should give an appropriate error msg.
  146. 8    MessageBox used for error messages can be too big.    There is no way to
  147.     scroll it, or even hit the OK button (but you can hit return).
  148. 7    Add an option to disable adding a pixel row for bold and italic fonts?
  149.     Same option as for multy-byte (patch from Nam)?
  150. 7    At the hit-return prompt scrolling now no longer works.  Need to use the
  151.     keyboard to get around this.  Pretend <CR> was hit when the users tries to
  152.     scroll?
  153. 7    'mousefocus' is disabled until the next mouse click, when trying to exit
  154.     by hitting the X in the title bar. (Webb)
  155. 7    Scrollbar width doesn't change when selecting other windows appearance.
  156.     Also background color of Toolbar and rectangle below vert. scrollbar.
  157. 7    "!start /min cmd" should run in a minimized window, instead of using
  158.     "/min" as the command name. (Rogall)
  159. 6    Drawing text transparantly doesn't seem to work (when drawing part cursor).
  160. 8    CTRL key doesn't always work in combination with ALT key.  It does work
  161.     for function keys, not for alphabetic characters.
  162. 8    CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY.  How do we
  163.     know which keyboard is being used?
  164. 8    When using ":se guifont=Courier_New" bold chars leave pixels behind, in
  165.     front of a character, after a TAB.  (McRae)
  166. 7    When scrolling, and a background color is dithered, the dither pattern
  167.     doesn't always join correctly between the scolled area and the new drawn
  168.     area (Koloseike).
  169. 7    File/Print uses notepad, which puts the name of the temp file on top of
  170.     each page.  How do we get the actual file name there?
  171. 8    install.exe, vimrun.exe and ctags are not build from Gvim_vc.mak.  When
  172.     added, check that this works from the command line and from the IDE.
  173. 8    ":r !mycommand" doesn't pass the environment to the external command.
  174. 8    When dropping a shortcut on gvim (.lnk file) should edit the target, not
  175.     the shortcut itself.
  176. 9    OleVim doesn't send <C-\><C-N>, which causes trouble if Vim is in Insert
  177.     mode. (Thakkar)
  178.  
  179.  
  180. Athena GUI:
  181. 9    Use one of the Syntax menu items.  Then ":aunmenu Syntax", Vim crashes.
  182.     Also crashes when using Buffers.Refresh.
  183. 9    When using ":unmenu" in menu item, the reversing of menu items is wrong.
  184.     Happens with Syntax/manual.    Problem with not removing the reversed text
  185.     when destroying the menu item?  For Rochholz Vim crashes.
  186. 9    Because destroying a menu can cause a crash, it is not destroyed but
  187.     unmanaged.  The destoyed Widgets are remembered, this list is never
  188.     cleaned up.
  189. 9    Menu ordering doesn't work.
  190. 9    When using "menu a.b.c.d lll", the "b" submenu does not disappear.
  191. 8    When "j" or "k" repeated quickly, display is messed up (Lauther).
  192. 8    Has extra stripes here and there. (Zeitlin).
  193.     When dragging last status line with the mouse, small black lines appear in
  194.     the command line pseudo-scrollbar (only when status line moved quickly).
  195. 7    The file selector is not resizable.  With a big font it is difficult to
  196.     read long file names. (Schroeder)
  197.  
  198.  
  199. Motif GUI:
  200. 9    When starting GUI with ":gui" while 'writedel' is non-zero, escape
  201.     sequences are split up.  Motif version crashes.
  202. 9    Motif 1.2: Adding many menu items, making two rows, still doesn't work
  203.     properly on HPUX.
  204. 8    Implement ":tearoff".
  205. 9    When using the right mouse button, for some people gvim freezes for a
  206.     couple of seconds.  This doesn't happen when there is no Popup menu.
  207.     (Halevy)
  208. 8    Popup menu ordering is wrong.
  209. 8    Dialog: Pointer should be moved to the default button.  Accelerators don't
  210.     work yet.
  211. 8    Lesstif: Adding a menu item that doesn't fit crashes Vim.
  212. 8    Lesstif 0.88: Using tear-off menu causes a few warnings.  When using
  213.     "Refresh" in a tear-off buffer menu it becomes empty (because the menu was
  214.     deleted?).
  215. 8    Lesstif: When deleting a menu that's torn off, the torn off menu becomes
  216.     very small instead of disappearing.  When closing it, Vim crashes.
  217.     (Phillipps)
  218. 5    There is a small white box that appears in the upper left-hand corner of
  219.     the root window.  It appears to be a problem with the popup menu.  When
  220.     the popup menu is removed from runtime/menu.vim, the little box no longer
  221.     appears.  Stepping through the debugger, the box appears when
  222.     gui_x11.c::gui_mch_menu_hidden() handles a popup menu.
  223.  
  224.  
  225. GUI:
  226. 9    On Solaris, creating the popup menu causes the right mouse button no
  227.     longer to work for extending the selection. (Halevy)
  228. 9    When running an external program, it can't always be killed with CTRL-C.
  229.     e.g. on Solaris 5.5, when using "K" (Keech).  Other 'guipty' problems on
  230.     Solaris 2.6. (Marley)
  231. 9    On Solaris: Using a "-geometry" argument, bigger than the window where Vim
  232.     is started from, causes empty lines below the cmdline. (raf)
  233. 8    Basic flaw in the GUI code: NextScreen is updated before calling
  234.     gui_write(), but the GUI code relies on NextScreen to represent the state
  235.     of where it is processing the output.
  236.     Need better separation of Vim core and GUI code.
  237. 8    When fontset support is enabled, setting 'guifont' to a single font
  238.     doesn't work.
  239. 8    Menu priority for sub-menus for: Athena, Amiga, Mac, VMS, BeOS.
  240. 8    Commands to enable/disable menu entries.  Patch in HierAssist. (Shah)
  241. 8    Add menu separators for Athena, Amiga, Mac, RISCOS.
  242. 8    Add dialog for search/replace to other GUIs?  Tk has something for this,
  243.     use that code?  Or use console dialog.
  244. 8    gui_check_colors() is not called at the right moment.  Do it much later,
  245.     to avoid problems.
  246. 8    gui_update_cursor() is called for a cursor shape change, even when there
  247.     are mappings to be processed.  Only do something when going to wait for
  248.     input.    Or maybe every 100 ms?
  249. 8    X11: When the window size is reduced to fit on screen, there are blank
  250.     lines below the text and bottom scrollbar.  "gvim -geometry 80x78+0+0".
  251.     When the "+0+0" is omitted it works.
  252. 8    When the character cell of some fonts is different (ascent/descent), the
  253.     cursor leaves an underline behind (Hiebert).
  254. 8    When starting an external command, and 'guipty' set, BS and DEL are mixed
  255.     up.  Set erase character somehow?
  256. 8    A dead circumflex followed by a space should give the '^' character
  257.     (Rommel).  Look how xterm does this.
  258.     Also: Bednar has some code for dead key handling.
  259. 8    The compose key doesn't work properly (Cepas).  Both for Win32 and X11.
  260. 7    The compiled-in highlight defaults allocate colors, which will never be
  261.     freed.  Move them to a startup script?  Only use bold and underline for
  262.     the compiled-in defaults.
  263. 7    The cursor in an inactive window should be hollow.  Currently it's not
  264.     visible.
  265. 8    With wrapping lines, clicking below the scrollbar thumb moves more than a
  266.     screenfull of lines.  Adjust the thumb size when lines wrap.
  267. 7    GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
  268.     hollow, after window lowered/raised it's OK. (Godfrey)
  269. 7    When starting GUI with ":gui", and window is made smaller because it
  270.     doesn't fit on the screen, there is an extra redraw.
  271. 8    When setting font with .Xdefaults, there is an extra empty line at the
  272.     bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
  273. 8    When font shape changes, but not the size, doing ":set font=" does not
  274.     redraw the screen with the new font.  Also for Win32.
  275.     When the size changes, on Solaris 2.5 there isn't a redraw for the
  276.     remaining part of the window (Phillipps).
  277. -    Flashes really badly in certain cases when running remotely from a Sun.
  278.  
  279.  
  280. MSDOS/DJGPP:
  281. 9    DOS: Make CTRL-Fx and ALT-Fx work.
  282.     CTRL-F1 = CE-5E, CTRL-F2 = CE-5F, .., CTRL-F10 = CE-67
  283.     ALT-F1 = CE-68, ALT-F2 = CE-69, .., ALT-F10 = CE-71
  284.     Shifted cursor keys produce same codes as unshifted keys.  Use bioskey(2)
  285.     to get modifier mask for <S-C-M-Fx>.
  286.     Use CSI codes to insert modifier mask in input stream?  Make this work
  287.     like in the GUI, but do handle a typed CSI.
  288.     Mapping things like <M-A> doesn't work, because it generates an extended
  289.     key code.  Use a translation table?
  290. 9    Can't read an opened swap file when the "share" command has not been used.
  291.     At least ignore the swap files that Vim has opened itself.
  292. 8    Vim busy waits for new characters or mouse clicks.    Should put in some
  293.     sort of sleep, to avoid eating 50% of the CPU time.  Test on an unpatched
  294.     Windows 95 system!
  295. 8    DJGPP: ":mode" doesn't work for many modes.  Fix "fast" text output
  296.     functions?
  297. 7    F11 and F12 under MSDOS don't work.  Can this be fixed?  Check the
  298.     interrupt list for a BIOS function for an extended keyboard.
  299. 7    Hitting CTRL-P twice quickly (e.g. in keyword completion) on a 8088 machine,
  300.     starts printer echo! (John Mullin).
  301. 7    MSDOS 16 bit version can't work with COMSPEC that has an argument, e.g.:
  302.     COMSPEC=C:\WINDOWS\COMMAND.COM /E:4096      (Bradley)
  303.     Caused by BCC system() function (Borland "make" has the same problem).
  304. 8    Check if with DJGPP 2.01 the problem of a path starting with a backslash is
  305.     still present.
  306. 8    Mouse: handle left&right button pressed as middle button pressed.  Add
  307.     modifier keys shift, ctrl and alt.
  308. 7    When too many files are open (depends on FILES), strange things happen.
  309.     The Dos16 version runs out of memory, in the Dos32 version "!ls" causes a
  310.     crash.  Another symptom: .swp files are not deleted, existing files are
  311.     "[New file]".
  312. 7    DJGPP version doesn't work with graphics display mode.  Either disallow
  313.     them or switch to system functions.
  314.  
  315.  
  316. MSDOS, OS/2 and Win32:
  317. 8    OS/2: Add backtick expansion.  Undefine NO_EXPANDPATH and use
  318.     gen_expand_wildcards().
  319. 8    Win32 console: <M-Up> and <M-Down> don't work. (Geddes)  We don't have
  320.     special keys for these.  Should use modifier + key.
  321. 8    Environment variables in DOS are not case sensitive.  Make a define for
  322.     STRCMP_ENV(), and use it when comparing environment var names.
  323.  
  324.  
  325. Windows 95:
  326. 8    Editing a file by it's short file name and writing it, makes the long file
  327.     name disappear.  Use Unix method for making a backup file?    Better: make
  328.     the way the backup file is made (copy or rename) an option, not a #define
  329.     (also needed for OS/2, the icon goes to the backup file).
  330.     Use FindFirstFile()->cAlternateFileName in fname_case() (George).
  331. 8    Doing wildcard expansion, will match the short filename, but result in the
  332.     long filename (both DJGPP and Win32).
  333.  
  334.  
  335. Win32 console:
  336. 9    When editing a file by its short file name, it should be expanded into its
  337.     long file name, to avoid proplems like these: (Mccollister)
  338.      1) Create a file called ".bashrc" using some other editor.
  339.      2) Drag that file onto a shortcut or the actual executable.
  340.      3) Note that the file name is something like BASHRC~1
  341.      4) Go to File->Save As menu item and type ".bashrc" as the file name.
  342.      5) Press "Yes" to indicate that I want to overwrite the file.
  343.      6) Note that the message "File exists (use ! to override)" is displayed
  344.         and the file is not saved.
  345.     Use FindFirstFile() to expand a file name and directory in the path to its
  346.     long name.
  347. 8    Add an option (command line?) not to switch console buffers.  Required for
  348.     telnetd (Ford).  Change termcap_mode_start() and termcap_mode_end().
  349.     Test with ataman telnet daemon.
  350. 8    Also implement 'conskey' option for the Win32 console version?  Look at
  351.     how Xvi does console I/O under Windows NT.
  352. 7    Re-install the use of $TERM and support the use of different terminals,
  353.     besides the console.
  354. 8    Use of <altgr> modifer doesn't work?  5.3 was OK. (Garcia-Suarez/Guckes)
  355. 9    Mapping <C-S-Tab> doesn't work correctly.
  356. 9    tmpnam() uses file in root of file system: "\asdf".  That doesn't work on
  357.     a Netware network drive.  Use same function as for Win32 GUI?
  358. 8    When exiting, sends ^M^M^J to the console in raw mode (Webb).
  359.  
  360.  
  361. Amiga:
  362. 9    In mch_expandpath() a "*" is to be expanded, but "\*" isn't.  Remove
  363.     backslashes in result.
  364. 8    Executing a shell, only one option for 'shell' is separated.  Should do
  365.     all options, using white space separation.
  366.  
  367.  
  368. Macintosh:
  369. 9    In mac_expandpath() check that handling of backslashes is done properly.
  370.  
  371.  
  372. VMS:
  373. 9    Make a runtime archive for VMS.
  374. 8    VMS: Inserts <NL> every 8291 bytes when writing. (Howie)  4.5 didn't have
  375.     this problem.  It's caused by the write() function, need to write() every
  376.     line separately.  It seems read() also returns a single line.  Switch I/O
  377.     to binary mode somehow?
  378. 7    Lots of code in common with os_unix.c, but many fixes are missing.  For
  379.     example, usage of t_ts and t_fs.
  380.  
  381.  
  382. "Small" problems:
  383. 9    optwin.vim: Restoring a mapping for <Space> or <CR> is not correct for
  384.     ":noremap".  Add "mapcmd({string}, {mode})?  Use code from ":mkexrc".
  385. 8    When some features are disabled, the related commands cannot check for a
  386.     following command: ":syntax", ":[id]jump", ":[id]search", "[id]list" and
  387.     "[id]split".  Add special function to check for a trailing argument when
  388.     the feature is not included.
  389. 9    When starting gvim in an xterm, Vim sends t_vi and t_ve to the terminal
  390.     (cursor invisible/visible).  Should not happen.
  391. 9    On non-Unix systems it's possible to write over a readonly file, when
  392.     'readonly' is not set.  Need to check the file permissions explicitly.
  393.     Add a mch_writable(perm) function for each OS.
  394. 9    incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
  395.     isn't updated).
  396. 9    term_console is used before it is set (msdos, Amiga).
  397. 9    Get out-of-memory for ":g/^/,$s//@/" on 1000 lines, this is not handled
  398.     correctly.  Get many error messages while redrawing the screen, which
  399.     cause another redraw, etc.
  400. 9    Using "-FOlimit,2000" may actually reduce optimization.  How to catch a
  401.     warning for this?
  402. 9    When a library is added twice, it will add to the size of Vim.  E.g. for
  403.     "-lXt".  Remove the first one?
  404. 8    Vim can overwrite a read-only file.  ":w" can't overwrite an existing
  405.     file, "w!" can, but perhaps not a read-only file?  Then use ":w!!" for
  406.     that.
  407. 8    Is calling msg_start() in main() really needed?  Any printed message
  408.     should include it already.
  409. 8    When in Insert mode with 'scrolloff' set, inserting text at the end of the
  410.     file, "!" lines will stay there while they could be used. (Park)
  411. 8    When writing an encryption file the extra 12 bytes are not reported, but
  412.     when reading they are.  Be consistent! (Colombo)
  413. 8    Unix in an xterm: Select something on the cmdline; go back to text; now
  414.     <S-MiddleMouse> pastes the selection, but <MiddleMouse> doesn't.  Xterm
  415.     first tries getting the primary selection, and if that doesn't work it
  416.     gets CUT_BUFFER0.
  417. 8    "fg" and "bg" don't work in an xterm.  Get default colors from xterm with
  418.     an ESC sequence.  See ~/vim/patches/vikas.xtermcolors .
  419. 8    For xterm need to open a connection to the X server to get the window
  420.     title, which can be slow.  Can also get the title with "<Esc>[21t", no
  421.     need to use X11 calls.  This returns "<Esc>]l{title}<Esc>\".
  422. 8    Add term entries for function keys on xterm with alt and ctrl (new in pl
  423.     94).  E.g., Control adds ";5" in "<Esc>[20;5~".  Find a generic way to
  424.     prepend a modifier in console mode, to avoid having to specify each
  425.     individual modified key.
  426. 8    When the builtin xterm termcap contains codes that are not wanted, need a
  427.     way to avoid using the builtin termcap.
  428. 8    '[ and '] should be set to start/end of line when using a linewise operator
  429.     (e.g., ":w").
  430. 8    CTRL-A can't handle big "long" numbers, they become negative.  Check for
  431.     "-" character, if not present, use unsigned long.
  432. 8    Make it possible to disable the special meaning of "#" in the first column
  433.     for ">>".
  434. 8    When doing ":qa", and there is a change in a buffer that is being edited
  435.     in another window, the current window will also be editing the buffer with
  436.     the change.  Should jump to the window with the changed buffer.
  437. 8    Should replace "screen_Columns" with "Columns", and use "new_Columns" for
  438.     the value to be used for Columns.  Same for "Rows".  Helps when using a
  439.     GUI with threads.
  440. 8    Add suspending with CTRL-Z at the "more" prompt, and when executing a long
  441.     script in do_cmdline().
  442. 8    When using 'hidden', many swap files will be open.  When Vim runs into the
  443.     maximum number of open files, error messages will appear.  Detect that
  444.     this problem is present, and close any hidden files that don't have
  445.     changes.
  446. 8    With 'viminfo' set such that the ".viminfo" file is written on a FAT
  447.     filesystem, an illegal file name may be created: ".vim".
  448. 8    For each buffer that is opened, the viminfo file is opened and read to
  449.     check for file marks.  This can be slow.
  450. 7    "dd" on the last line of the file, causes the last but one line to be
  451.     redrawn.  Should not be necessary.
  452. 7    Using "gqj" near the last line of the window, makes the window scroll up,
  453.     even though this isn't necessary.
  454. -    These mappings don't work with the Win32 versions: (Bradley)
  455.     nmap ,p {<Right>V}<Left>
  456.     nmap ,> ,p,>
  457.     vmap ,> >
  458.     Looks like the nmap is used instead of the vmap.
  459. 8    Should be able to compile Vim in another directory, with $(srcdir) set to
  460.     where the sources are. Add $(srcdir) in the Makefile in a lot of places.
  461.     (Netherton)
  462. 8    Perl adds arguments to the compiler.  Check that compiling a program still
  463.     works after that, otherwise following configure checks will fail.
  464. 7    In xterm, recognize both vt100 and vt220 cursor keys.  Change
  465.     add_termcode() to not remove an existing entry for a name, when it's
  466.     needed.
  467.     Recognize <C-Left> and <C-Right> in new xterm.
  468.     Need a generic solution to recognize different codes for the same key.
  469. 8    Core dump within signal function: gdb doesn't show stack backtrace!  Option
  470.     to skip catch_signals()?
  471. 8    Pasting with the mouse in Replace mode inserts the text, instead of
  472.     overwriting, when it is more than one line.  Same for using <C-R>.
  473. 7    When using search history, the trailing '/' or '?' needs to be changed
  474.     depending on the search command.  When there was no '/' or '?', add one, so
  475.     flags can be added easily?
  476. 7    CTRL-F at the end of the file, when 'so' is set, redraws twice.  When the
  477.     window is small (< 2 * 'so') it behaves differently.
  478. 9    CTRL-E and CTRL-Y don't work in small window when 'so' is 4 and lines are
  479.     wrapping (Acevedo/in.226).  E.g., when using CTRL-E, window height 7,
  480.     window might actually scroll down when last line of buffer is displayed.
  481.     --> Remember if the previous command was "cursor follows screen" or
  482.     "screen follow cursor" and use this in cursupdate().
  483. 9    Text is scrolled up and down: (acevedo)
  484.      - set scrolloff to something >1 (i always use "set so=4")
  485.      - set the win. hegiht to scrolloff + 1  (i'd do ^W5_)
  486.      - load a file with scrolloff + 2 lines
  487.      - put the cursor in line scrolloff +1    (5G)
  488.      - if you move the cursor along the line (h, l, insert text, etc)
  489.      the text is crolled with each keystroke (once up, once down,...)
  490.      sometimes with <Esc> the text is scrolled up and down without stop!!!!
  491. 7    tilde_replace() can only handle "~/", should also do "~user/".
  492.     Get the list of home directories (from /etc/passwd?  Use getpwent()) and
  493.     use some clever algorithm to match a path with that.  Find common strings
  494.     in the list?
  495. 8    Add 'o' flag to 'mouse'?
  496. 8    When dragging status line with mouse, sometimes a jump when first clicking
  497.     on the status line (caused by 'winheight').  Select window on button up,
  498.     instead of on button down.
  499. 7    There are often a few <CR> on a row sent to the screen, should not be
  500.     necessary.
  501. 8    When performing incremental search, should abort searching as soon as a
  502.     character is typed.
  503. 8    Make CTRL-C on Unix generate a signal, avoid using select() to check for a
  504.     CTRL-C (it's slow).  Allow using CTRL-C for "*y, like in MS-Windows.
  505. 8    When writing viminfo file, handle CTRL-J in filename (needs to be escaped
  506.     with CTRL-V). (Acevedo)
  507. 8    When starting Vim, switch terminal to RAW mode asap, so typeahead is
  508.     handled correctly (without the need for a <CR>).
  509. 8    When the value of $MAKE contains a path, configure can't handle this.
  510.     It's an autoconf bug.  Remove the path from $MAKE to work around it.
  511. 8    How to set VIMRC_FILE to \"something\" for configure?  Why does this not
  512.     work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
  513. 8    The temporary file is sometimes not writable.  Check for this, and use an
  514.     alternate name when it isn't.  Or add the 'temptemplate' option: template
  515.     for the temp file name ":set temptemplate=/usr/tmp/?????.tmp".
  516. 7    Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
  517.     Don't check when compiling, check while matching?
  518. 7    When switching to Daylight Saving Time, Vim complains that a file has been
  519.     changed since last read.  Can we use a function that uses GMT?
  520.  
  521.  
  522. I can't reproduce these (if you can, let me know how!):
  523. -    With backupdir=~/tmp,/tmp nowritebackup nobackup patchmode=.smr and the
  524.     patchmode file exists, backup files in the tmp directory are left lying
  525.     around - they should be deleted! (Riehm)
  526. 9    Crash when changing fonts in Athena (Hiebert).    gui_mch_set_scrollbar_pos
  527.     gets an "sb" argument that points to all zero entries...?
  528. 9    Crash in Motif GUI, when pasting text with middle mouse button while in
  529.     Insert mode.  SunOS 4.1.3 only? (Janssen).
  530. 8    Motif: Tear-off menu item crashes Vim on some machines.  (Netherton)  It
  531.     works fine for me, maybe it's a Motif problem.
  532. -    On Diamond Viper 132x43 mode crash on exit (John Lange)
  533. 9    NT 4.0: Editing ".bashrc" (drag and drop), file disappears.
  534.     Editing ".xyz" is OK. (McCollister)
  535. 8    Win32 GUI: NT: When regaining focus at the more prompt, there is an extra
  536.     newline. (Webb)
  537. 8    Win32 GUI: Writable File in read-only dir can be deleted but not written?
  538.     (Canup)
  539. 9    GUI: Between version 5.0h and 5.0i the Home and End keys stopped working
  540.     for Micheal Schulz (Linux and AIX).
  541. 9    Win32 console: <M-S-Left> causes a crash. (Geddes)
  542. 9    In MSDOS version(s): typing ESC three or four times crashes Vim, when
  543.     'visualbell' is set (Kielhorn).
  544.  
  545.  
  546. [These have been reported for version 3.0, they may not appear in this version]
  547. -    MSDOS: After writing on a network the 'w' bit for others is set.
  548.  
  549.  
  550. Problems that will (probably) not be solved:
  551. -    Win32: All files created on the day of switching from winter to summer
  552.     time cause "changed since editing started" messages.  It goes away when
  553.     the file is written again the next day, or the timezone is adjusted.
  554.     DJGPP version is OK. (Zaimi)  Looks like a problem with the Win32 library.
  555. -    Moving the cursor removes color in color-xterm.  This is a color-xterm
  556.     problem!  color-xterm ver. 6.1 beta 3 and later work properly.
  557. -    The Dos32 version (DJGPP) can't use long file names on Windows NT.
  558. -    In zsh, "gvim&" changes the terminal settings.    This is a zsh problem.
  559.     (Jennings)
  560. -    Problem with HPterm under X: old contents of window is lost (Cosentino).
  561. -    Amiga: When using quickfix with the Manx compiler we only get the first 25
  562.     errors.  How do we get the rest?
  563. -    Amiga: The ":cq" command does not always abort the Manx compiler.  Why?
  564. -    Linux: A file with protection r--rw-rw- is seen readonly for others. The
  565.     access() function in GNU libc is probably wrong.
  566. -    MSDOS: When using smartdrive with write-back buffering, writing to a
  567.     readonly floppy will cause problems.  How to test for a writable floppy
  568.     first?
  569. -    MSDOS: Both 16 and 32 bit versions: File name expansion doesn't work for
  570.     names that start with a dot.  These used to be illegal file names.
  571. -    When doing a CTRL-Z and typing a command for the shell, while Vim is busy
  572.     (e.g. writing a file), the command for the shell is sometimes eaten by Vim,
  573.     because the terminal mode is changed from RAW to CBREAK.
  574. -    An old version of GNU tgoto can't handle the terminfo code for "AF".  The
  575.     "%p1" is interpreted as "%p" and "1", causing color not to be working.
  576.     Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
  577.     (Benzinger).
  578. -    When running an external command from the GUI, typeahead is going to that
  579.     program, not to Vim.  It looks like the shell eats the characters, Vim
  580.     can't get back what the external command didn't use.
  581. -    Win32 GUI: Error code from external command not returned in shell_error.
  582.     It appears that cmd.exe and command.com don't return an error code.
  583. -    Win32 GUI: The Toolbar is a bit too high when the flat style is being
  584.     used.  We don't have control over the height of the Toolbar.
  585. -    SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal
  586.     scroll bar for the "files" selection.  This is a problem in the Motif
  587.     libraries, get a patch from Sun.
  588. -    Solaris 2.6 with GTK and Perl: gvim crashes when started.  Problem with X
  589.     input method called from GDK code.  Without Perl it doesn't crash.
  590.  
  591. ---------------------  extensions and improvements ----------------------
  592.                                                     *extensions-improvements*
  593.  
  594. Considered for release 6.0:
  595. 7    Folding.
  596. 7    Vertically splitting the screen.  Show differences between files (sdiff).
  597.     Some way create a new file to merge differences.  Examples: Ted
  598.     (moon.csie.ntu.edu.tw/pub/X/ted), Aurora (www.ntext.net)
  599. 7    Editing the command line with Normal mode Vi commands.  See readline(3)
  600.     for ideas.
  601. 7    Support for editing a remote file through ftp or http (with a script).
  602. 7    Further support for editing files in projects (see ":idselect").
  603. 7    Patch to add 'autoload' option: Automatically reload buffers that were
  604.     changed outside of Vim ~/vim/patches/aaron.autoload . (Aaron)
  605.     Also handle the 'reaonly' flag of a file when it was changed outside of
  606.     Vim?
  607. 9    Add "toolbar" feature, to be used in mswin.vim (it can be disabled at
  608.     compile time).
  609. 9    Add "mswin" feature, for Win16 and Win32.
  610. 8    Add option to disable the dialog for the ATTENTION prompt.  In general:
  611.     Better control for protecting the user for editing a file twice, file
  612.     changed outside of Vim, file protection changed outside of Vim, etc.
  613. 8    Patch to use 'suffixes' for included files. ~/vim/patches/waghorn.suffixes
  614.     . (Waghorn)
  615. -    Add patch from Wall for this one:
  616.     'flipcase' variable: upper/lower case pairs. (alternative: translate
  617.     command, e.g. ":tr \248-\254 \216-\222") (From Elvis, don't like it).
  618.     Insert comma's between pairs and allow a range, e.g. :set
  619.     flipcase=a-zA-Z,..
  620. 8    Win32 GUI: Implement flag to avoid "hit any key to continue" in DOS
  621.     console used to execute external commands.  Pass a flag to vimrun.exe.
  622. 8    Add cscope_connection() function ~/vim/patches/kahn.cscopeconn .
  623.     Also ~/vim/patches/kahn.5.4.cscope . (Kahn)
  624. 8    Make ":normal" command accept <Key> notation, like ":map".
  625. 8    Rename all version directories to vim54 instead of vim-5.4, also for the
  626.     distribution.
  627. 9    Drag'n drop support for GTK ~/vim/patches/dalecki.dnd4 .
  628.     Also fixes background color changing on the fly.
  629. 8    GNOME support for GTK version ~/vim/patches/kahn.5.4.gnome .
  630. 8    Remove runtime/macros/html.
  631. 8    Adjust colortest.vim: Include colors on normal background (Szalai).
  632.     Reduce the size by using a while loop.
  633. 8    Use $install_prefix? (Cabric)
  634. 8   When color cannot be allocated, use nearest match.  Useful when netscape
  635.     has eaten many colors.  Check FindClostestColor in Tcl/Tk. (Shah)
  636. 8    Add the possibility for a maintainer of a binary version to include his
  637.     e-mail address.  In the ":version" or ":intro" message?
  638. 8    ">>" with 'softtabstop' set should work like 'tabstop' is set to
  639.     'softtabstop'. (Zivkov)  But what about when there is a string?
  640. 8    Rename vim-5.5x to vim55x for all distributions, also Unix.  Easier to
  641.     type and no differences between systems.
  642.  
  643.  
  644. Documentation:
  645. 9    Change examples in docs: Instead of a ">" in front of every line, use " >"
  646.     once at end of line before the example and "<" after the last line (or a
  647.     not-indented line).  Use the syntax cmd:
  648.         :syn region helpExample matchgroup=Ignore start=" >$"
  649.                 \ end="^[^ \t]"me=e-1 end="^<"
  650.     Allows for copy/pasting the examples.  Put ">" on a separate line when
  651.     there is room.
  652. 9    In change.txt, remark about Javadoc isn't right.  Right alignment would
  653.     work too.
  654. 8    Spread the windows commands over the other files.  For example, ":stag"
  655.     should be with ":tag".  cross-link with tags to avoid too much double
  656.     text.
  657. 8    make vimtutor.bat for DOS and vimtutor script for Amiga.  Then add
  658.     vimtutor.man to the runtime archive.
  659. 8    Add an example vimrc for using Vim as a modeless editor.  Emulate an
  660.     existing editor (WordStar, Brief?).
  661. 7    Windows: When a wrong command is typed with an ALT key, give a hint to
  662.     look at the help for 'winaltkeys'.
  663. -    Check text editor compendium for vi and Vim remarks.
  664. -    Add some text for xxd.
  665.  
  666.  
  667. Help:
  668. -    First try using the ":help" argument literally, before using it as a
  669.     pattern.  And then match it as part of a tag.
  670. -    Use GNU Texinfo for the help files somehow?  Use Info format files?
  671.     At least the other way around: Use Vim to view (and edit) .info files.
  672. -    Default mapping for help files: <Tab> to position cursor on next |:tag|.
  673. -    When hitting <Esc> or CTRL-C in Normal mode, give a message to help novice
  674.     users to get out: "Type  :q!  to quit Vim".
  675. -    Implement a "sticky" help window, some help text lines that are always
  676.     displayed in a window with fixed height. (Guckes)  Use "~/.vimhelp" file,
  677.     user can edit it to insert his favorite commands, new account can contain a
  678.     default contents.
  679. -    When entering the help window, don't resize to 'helpheight' if the user has
  680.     reduced the size before (Webb). Keep the window height that the user set
  681.     the window to in a "preferred window height" entry for each window.
  682. -    ":help :s^I" should expand to ":help :substitute".
  683. -    Make the help key (<F1>) context sensitive?
  684. -    Learn mode: show short help while typing commands.
  685.  
  686.  
  687. "make test":
  688. -    Find a way to skip tests that can't be done.  For non-Unix systems, but
  689.     also for e.g. the Perl interface.
  690.  
  691.  
  692. Syntax highlighting:
  693. 8    Add specific syntax item to match with parens/braces that don't have a
  694.     match.  :syntax nomatch cParenError "("
  695. 8    Add a command to jump to the next characterw highlighted with "Error".
  696. 8    Highlight the text between two matching parens (e.g., with a grey
  697.     background) when on one of the parens or in between them.
  698. 8    When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
  699.     sequences.    Add remark in docs that :if 'term' == "term-name" should be
  700.     used.
  701. 8    Add @spell cluster to String and Comment groups for many languages.  Will
  702.     allow spell checking. (Fleiner)
  703. 8    When listing syntax items, try to sort the keywords alphabetically.  And
  704.     re-insert the [] if possible.
  705. 8    Make it possible to use color of text for Visual highlight group (like for
  706.     the Cursor).
  707. 8    Make it possible to only highlight a sub-expression of a match.  Like
  708.     using "\1" in a ":s" command.
  709. 8    Add a way of syncing where it always starts at the beginning of the file,
  710.     to find the group where redrawing starts.  Useful for "#if 0" constructs
  711.     in C. (Geddes)
  712.     c.vim: Use advanced syncing to make long "#if 0" constructs work.
  713. 8    Keep more context for syncing, but not for every line.  Make this settable
  714.     with some command ":syn sync context=1000 skip=10" (store state for 1000
  715.     lines, every 10 lines).
  716.     Store the context with the window, instead of the buffer.  Useful when
  717.     there are two windows on the same buffer.
  718.     OR: Use three options:
  719.     syntaxminsyncs: minimal number of sync points (for speedy small files)
  720.     syntaxmaxsyncs: maximum number of sync points (for very big files)
  721.     syntaxsyncdist: number of lines between two sync points (overruled by
  722.         the other two options).
  723. 8    Support for deleting syntax items:
  724.     :syn keyword cTodo remove this
  725.     :syn match cTodo remove "pattern"
  726.     :syn region cString remove start="this" end="that"
  727. 8    Make it possible for a skip pattern to include "$", so that it can skip
  728.     over newlines for a "oneline" region.
  729. 8    Make it possible to use "inverted" highlighting, invert the original
  730.     character.  For Visual mode. (xterm-selection already does this).
  731. 8    Highlight non-printable characters with "SpecialChar", linked to
  732.     "Special".  Display them with the digraph characters, if possible.
  733. 8    Highlight the clipboard-selection with a highlight group.
  734. 8    Be able to reset highlighting to its original (default) values.
  735. 8    Reduce the number of regexp in c.vim (for speed).
  736. 8    Add check for unterminated strings in c.vim, with a variable to switch it
  737.     on: "c_strict_ansi".
  738. 8    Add a flag to temporarily disable highlighting.  Set it while dragging the
  739.     status line.
  740. 8    Add an option to restrict the updating of syntax highlighting to the
  741.     current line while in Insert mode.
  742. 8    When guessing value of 'background', the syntax file has already been
  743.     loaded (from the .gvimrc).    After changing 'background', load it again?
  744. 8    Add ":syn resync" command, to re-parse the whole file until the current
  745.     display position.
  746. 8    Should support "me" offset for a region start pattern.  To be used to
  747.     allow searching for the end pattern inside the match of the end pattern.
  748.     Example: syn region pikeXX start="([^{]" end=")" should work on "()".
  749. 8    When using a regexp for "contains=", should delay matching with it until
  750.     redrawing happens.  Set a flag when a group is added, check this flag when
  751.     highlighting starts.
  752. 7    Add "semitrans": Add highlighting.  E.g., make the text bold, but keep the
  753.     colors.  And add colors, so that Green+Red becomes Yellow.
  754. 7    Wild idea: Not only set highlighting, but also change what is displayed
  755.     (e.g., remove characters, so that "<B>bold</B>" can be shown as "bold").
  756.     Also: CTRL-] checks the highlight group for finding out what the tag is.
  757. 6    Not possible now: Two regions that add up.  E.g. for this html:
  758.         <B> bold text <I> italic+bold text </B> italic text </I>
  759. 7    Not only change highlighting of text, also change what is displayed.  Can
  760.     be used to hide tags, e.g.
  761.         :syn region boldstuff start="<B>" display="" end="</B>" display=""
  762. 7    Add an explanation how a list of words can be used to highlight misspelled
  763.     words.
  764. 7    Should find a better way to parse the :syntax and :highlight commands.
  765.     Use tables or lists that can be shared by parsing for execution and
  766.     completion?
  767. 7    Add a few sets of colors (e.g. Borland Turbo C one).  With a menu to
  768.     select one of the sets.
  769. 8    Add offsets to sub-matches: "\(a*\) *"he=e1-1
  770.     'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
  771.     2, etc.
  772. 8    Add more command line completion for :syntax.
  773. 8    Add more command line completion for :highlight.
  774. 8    In Insert mode, when there are typeahead characters, postpone the
  775.     highlighting (for "." command).
  776. 8    Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
  777.     For example: What about a line that starts with / / and contains * /?
  778. 8    Ignore / * and    * / inside strings, when syncing.
  779. 8    Add possibility to sync on something else, when the syncing in one way
  780.     doesn't find match.  For HTML: When no {script} is found, try looking for
  781.     a '<'.    (Fleiner)
  782. 8    Replace the synchronizing method with a state machine specification.
  783.     Should be able to start at any line in the file, search forwards or
  784.     backwards, and use the result of matching a pattern.
  785. 7    Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
  786.     ISP, LDL, Icon, ratfor.  And check "nedit/source/highlight.c".
  787. -    Make it possible to add "contains" items for all items in a group.    Useful
  788.     when extending an already existing syntax file.
  789. -    Allow the use of "blink".  Make a new attr when it's used.
  790. -    Add line-continuation pattern for non-syncing items too?
  791. 7    Allow "\@1" in end (and skip) pattern, use first sub-match of start
  792.     pattern.  To be used in e.g.: 'start="[/=+]" end="\@1"'  Also for Perl.
  793. 8    Add cursor-column highlighting.  Enable it with 'cursorcolumn' option, set
  794.     highlighting with "CursorColumn" group.  Useful for aligning text.
  795.     Also cursor-row highlighting.
  796. -    Add possibility to highlight specific columns (for Fortran).
  797. -    Add possibility to highlight the whole line, including the right margin
  798.     (for comment blocks).
  799. -    Add 'hlmatch' option: List of flags:
  800.     'c': highlight match for character under the cursor.
  801.     'b': highlight the previous (, and its match.
  802.     'a': highlight all text from the previous ( until its match.
  803.          Also for {}, <>, etc.?
  804.     'e': highlight all braces without a match (slow?)
  805.     OR: add an argument "cursor" to the syntax command, which means that the
  806.     region/match/keyword is only highlighted when the cursor is on it.
  807.     (Campbell)
  808. 7    Make it possible to use all words in the tags files as Keyword.
  809.     Can also be done with a script (but it's slow).
  810. 7    Make it possible to call a ":" command when a match is found.  Should
  811.     allow for adding keywords from the text (e.g. variables that are set).
  812.     And allows for sections with different highlighting.
  813. 7    Add highlight group for commandline: "Commandline".  Make sure it
  814.     highlights the command line while typing a command, and any output from
  815.     messages.  And external commands?
  816. 8    Make a version that works like less, but with highlighting: read stdin for
  817.     text, exit at end of file, don't allow editing, etc.  moreim?  lessim?
  818.  
  819.  
  820. Built-in script language:
  821. 8    Add referring to key options with "&t_xx".  Both for "echo &t_xx" and
  822.     ":let &t_xx =".  Useful for making portable mappings.
  823. 8    Allow range for ":exec".  Pass it on to the executed command. (Webb)
  824. 8    Add a way to catch errors:
  825.         :try
  826.         :  [commands that can fail]
  827.         :catch [error-type]
  828.         :  [error handling]
  829.         :endtry
  830. 8    Have a look at VSEL.  Would it be useful to include? (Bigham)
  831. 8    Add ":fungroup" command, to group function definitions together.  When
  832.     encountered, all functions in the group are removed.  Suggest using an
  833.     obscure name to avoid name clashes.  Require a ":fungroup END" in the same
  834.     sourced file?  Assume the group ends at the end of the file.  Handle
  835.     nested packages?
  836.     Alternative: Support packages.  {package-name}:{function-name}().
  837.     Packages are loaded automatically when first used, from
  838.     $VIMRUNTIME/packages (or use a search path).
  839.     Or add a FuncUndefined autocommand, so that the user can handle loading a
  840.     function as he pleases. (Aaron)
  841.     Pre-parse or compile Vim scripts into a bytecode.  Put the bytecode with
  842.     the original script, with an ":if" around it, so that it's only used with
  843.     a Vim that supports it.
  844. 8    The input() function should not read mapped characters, but always get
  845.     characters from the user (or a script).  Need to change vgetorpeek() to
  846.     ignore mapped characters.
  847. 8    Add functions:
  848.         cursor(lnum, col)        Position cursor (when lnum or col 0 keep val)
  849.         menuname({menu_name}, {idx})  get name of menu.  menuname("", 1)
  850.                                 returns "File", menuname("File", 1) returns
  851.                                 "Open...".
  852.         menuarg({menu_name})    return argument of a menu item by name.
  853.         mapname({idx}, mode)    return the name of the idx'th mapping.
  854.         match({pat}, {string}, [count]) get index of count'th match
  855.         stridx(bigstr, smallstr)  return index of first smallstr in bigstr
  856.         strridx(bigstr, smallstr)  return index of last smallstr in bigstr
  857.         sprintf(format, arg, ..) How to prevent a crash???
  858.         attributes()            return file protection flags "drwxrwxrwx"
  859.         perl(cmd)                call Perl and return string
  860.         shorten(fname)            shorten a file name, like home_replace()
  861.         input(prompt, complete)    like input() but do specified completion
  862.         getfperm()                file permissions, in form "rwxrwxrwx"
  863.         getfsize()                file size in bytes (directory is 0)
  864.         getftype()                "file", "dir", "link", "other"?
  865.         getbufvar({bufid}, {name})
  866.         setbufvar({bufid}, {name}, {value})
  867.                                 get/set value of variable {name} in buffer
  868.                                 {bufid}  See ~/vim/patches/aaron.getbufvar
  869.         setwinvar()                see ~/vim/patches/aaron.getbufvar2 .
  870.         getwinvar()
  871.         libcall()                Allow more than one argument.
  872.         libcallnr()                Like libcall(), but function returns a number.
  873.         fnamemod({fname}, {mod})    {mod} can be ":p:h" etc., to be applied to
  874.                                 {fname}
  875.         getchar()                get one character from the user.
  876.         confirm()                add "flags" argument, with 'v' for vertical
  877.                                 layout and 'c' for console dialog.  Also add
  878.                                 'c' to 'guioptions'
  879.         toupper({string})
  880.         tolower({string})
  881.         filter({cmd} [, {string}])    Filter {string} through the shell command
  882.                                 {cmd} and return the result.  If {string} is
  883.                                 omitted no input is given to {cmd}.
  884. 8    argc() returns 0 when using "vim -t tag".  How to detect that no file was
  885.     specified in any way?  To be able to jump to the last edited file.
  886. 8    When starting to source a vim script, delete all functions that it has
  887.     previously defined.  Avoids using ":fun!" all the time.
  888. 8    Include support for arrays?  Patch from Robert Webb.
  889. 7    Add optional arguments to user functions:
  890.         :func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)
  891. 6    User functions: Functions local to buffer "b:func()"?
  892. 7    Allow writing to the "= register, in which case the expression must be the
  893.     name of a variable which is written to. (Erhardt)
  894. 8    Add ":let var[{expr}] = {expr}".
  895. 8    The "= register should be writable, if followed by the name of a variable,
  896.     option or environment variable.
  897. 8    ":let &option" should list the value of the option.
  898. 7    Add synIDlist(), making the whole list of syntax items on the
  899.     stack available (separated with '\n').
  900. 8    Add autocommand-event for when a variable is changed:
  901.         :au VarChanged {varname} {commands}
  902. 8    Add per-buffer and per-window variables:
  903.         b4:xxx    buffer 4 variable
  904.         b4:&yyy    buffer 4 option 'yyy'
  905.         w2:xxx    window 2 variable
  906.     Alternative: use getwinvar(), getbufvar(), setwinvar() and setbufvar().
  907.     ( ~/vim/patches/aaron.getbufvar3 )
  908.     Mostly the buffer/window number is not known, avoid using ":exe".
  909. 8    Add "has("gui_capable")", to check if the GUI can be started.
  910. 8    Add possibility to use variables like registers: characterwise (default),
  911.     linewise (when ending in '\n'), blockwise (when ending in '\001').    reg0,
  912.     rega, reg%, etc.  Add functions linewise({expr}), blockwise({expr}) and
  913.     charwise({expr}).
  914. 7    Make it possible to do any command on a string variable (make a buffer
  915.     with one line, containing the string).    Maybe add an (invisible) scratch
  916.     buffer for this?
  917.         result = scratch(string, command)
  918.         result = apply(string, command)
  919.         result = execute(string, command)
  920.     "command" would use <> notation.
  921. 7    Add function to generate unique number (date in milliseconds).
  922. 7    Automatically load a function from a file when it is called.  Need an
  923.     option for the search path. (Sekera)
  924. 6    "g{if cond}" "g{while cond}", etc. in Normal mode, for mappings.
  925. 6    Like Lotus: <IF cond>commands<ELSE>commands<ENDIF> (in any mode, handle in
  926.     vgetorpeek())
  927.       ":map _a athe term is <IF $TERM=="xterm">xterm<ELSE>unknown<ENDIF>.<Esc>"
  928.       Use "<IF expression>commands<ELSE>commands<ENDIF>
  929.  
  930.  
  931. Code cleanup:
  932. 8    expand_context and expand_pattern should not be global.  Pass them to
  933.     ExpandOne() and lower.
  934.  
  935.  
  936. Performance:
  937. 8    Avoid alloc() for scratch buffer use, esp. in syntax.c.  It's very slow on
  938.     Win16.
  939. 9    Setting GUI options in the console (e.g., 'guifont') should not cause a
  940.     redraw.
  941. 8    When editing a file with extremely long lines (e.g., an executable), the
  942.     "linerest" in readfile() is allocated twice to be able to copy what was
  943.     read so far.  Use realloc() instead?  Or split the line when allocating
  944.     memory fails and "linerest" is big (> 100000)?
  945. 8    When defining autocommands (e.g., from $VIMRUNTIME/filetype.vim), need to
  946.     compare each pattern with all existing patterns.  Use a hash code to avoid
  947.     using strcmp() too often?
  948. 7    Include turbo_loader patches, speeding up reading a file?
  949.     Speed up reading a file by reading it into a fixed-size buffer, creating
  950.     the list of indexes in another buffer, and then copying the result into a
  951.     memfile block with two copies.  Then read the next block into another
  952.     fixed-size buffer, create the second list of indexes and copy text from
  953.     the two blocks to the memfile block.
  954. 7    do_cmdline(): Avoid that the command line is copied to allocated memory
  955.     and freed again later all the time.  For while loops, and for when called
  956.     with an argument that can be messed with.
  957.     Generic solution: Make a struct that contains a pointer and a flag that
  958.     indicates if the pointer should be freed when replaced.
  959. 7    Check that that the file size is not more than "sizeof(long)".
  960. -    Further improve finding mappings in maphash[] in vgetorpeek()
  961. 8    Dragging the status line doesn't scroll but redraw.
  962. 8    Syntax highlighting is slow when deleting lines.  Try in
  963.     $VIMRUNTIME/filetype.vim.
  964. 8    "p" and "P" redraw everything after the put text.  Should insert lines.
  965. -    "out of memory" after deleting (1,$d) and changing (:%s/^/> /) a lot of
  966.     lines (27000) a few times.  Memory fragmentation?
  967. -    Have a look at how pdksh does memory allocation (alloc.c). (Dalecki)
  968. -    Do profiling on:
  969.     - :g/pat/normal cmd
  970.     - 1000ii<Esc>
  971.     - deleting 10Mbyte worth of lines (netscape binary)
  972.     - ":g/^/m0" on a 450Kbyte file.  And the "u".
  973.     - highlighting "~/vim/test/longline.tex", "~/vim/test/scwoop.tcl" and
  974.       "~/vim/test/lockup.pl".
  975.     - loading a syntax file to highlight all words not from a dictionary.
  976. 7    Screen updating can be further improved by only redrawing lines that were
  977.     changed (and lines after them, when syntax highlighting was used, and it
  978.     changed).
  979.     - On each change, remember start and end of the change.
  980.     - When inserting/deleting lines, remember begin, end, and line count.
  981. -    Use macros/duarte/capicua for profiling.  Nvi 1.71 is the fastest!
  982. -    When using a file with one long line (1Mbyte), then do "$hhhh", is still
  983.     very slow.  Avoid calling getvcol() for each "h"?
  984. -    Executing a register, e.g. "10000@@" is slow, because ins_typebuf has to
  985.     move the previous commands forward each time.  Pass count from
  986.     normal_cmd() down to do_execreg().
  987. -    Repeating insert "1000i-<Esc>" displays --INSERT-- all the time, because of
  988.     the <Esc> at the end.  Make this work faster (disable redrawing).
  989. -    Avoid calls to plines() for cursor line, use w_cline_height.
  990. -    When only need to redraw the status lines in status_redraw_all(), need to
  991.     update NOT_VALID to force the redraw.  Should detect that only the status
  992.     lines need to be redrawn (add STATUSLN between VALID and NOT_VALID?).
  993. -    After :set nowrap remove superflous redraw with wrong hor. offset if cursor
  994.     is right of the screen.
  995.  
  996.  
  997. Code size:
  998. 8    Can't optimize normal.c, because of the big switch.  Make it into a table
  999.     of functions?
  1000. 8    GUI: When NO_CONSOLE is defined, more code can be excluded.
  1001. -    Put getline() and cookie in a struct, so only one argument has to be
  1002.     passed to do_cmdline() and other functions.
  1003. 8    move common files between os_unix.c and os_vms.c to one file?
  1004. 8    Make a GUI-only version for Unix?
  1005.  
  1006.  
  1007. Messages:
  1008. -    Delete message after new command has been entered and have waited for key.
  1009.     Perhaps after ten seconds?
  1010. -    Remember message line for redraw. Integrate the command line in
  1011.     updateScreen().
  1012. -    Make message history available in "msg" variables: msg1, msg2, .. msg9.
  1013. 9    Check handling of overwriting of messages and delays:
  1014.     Very wrong: errors while redrawing cause endless loop.
  1015.     When switching to another file and screen scrolls because of the long
  1016.     message and return must be typed, don't scroll the screen back before
  1017.     redrawing.
  1018. 9    ":redir @*" should work: Redirect to the clipboard.  Just allow using this
  1019.     register and add a flag to write_reg_contents() to append.
  1020. 7    Add an option, which is a regexp, that disables warning messages which
  1021.     match that regexp (Tsirkin).
  1022. 8    When address range is wrong you only get "Invalid range".  Be a bit more
  1023.     specific: Negative, beyond last line, reverse range?  Include the text.
  1024. 8    Make it possible to ignore errors for a moment ('errorignore'?).  Another
  1025.     option to switch off giving error messages ('errorquiet'?).  Also an option
  1026.     not to give any messages ('quiet')?  Or ":quiet on", ":quiet off".
  1027.     Careful: For a severe error (out of memory), and when the user starts
  1028.     typing, error messages must be switched back on.
  1029.     Also a flag to ignore error messages for shell commands (for mappings).
  1030. 8    Add ":silent {cmd}", silently run a command: no echoing, no hit-return
  1031.     prompt.  Use ":silent!" to also skip error messages.  Should work for
  1032.     ":silent !cmd".  Still do the messages for ":redir"?
  1033. 8    When using ":silent !cmd", run the external command silently, don't give
  1034.     the hit-return prompt.  Already done for Risc OS with ":!~cmd", see
  1035.     do_shell().  Don't redraw the screen, make a note in the docs that CTRL-L
  1036.     should be used if the command has any output.
  1037. -    Option to set time for emsg() sleep. Interrupt sleep when key is typed?
  1038.     sleep before second message?
  1039. 8    In Ex silent mode or when reading commands from a file, what exactly is
  1040.     not printed and what is?  Check ":print", ":set all", ":args", ":vers",
  1041.     etc.  At least there should be no prompt. (Smulders)  And don't clear the
  1042.     screen when reading commands from stdin. (Kendall)
  1043.     --> Make a difference between informative messages, prompts, etc. and
  1044.         error messages, printing text, etc.
  1045. 8    Window should be redrawn when resizing at the hit-return prompt.
  1046.     Also at the ":tselect" prompt.  Find a generic solution for redrawing when
  1047.     a prompt is present (with a callback function?).
  1048.  
  1049.  
  1050. Screen updating:
  1051. -    screen_line():
  1052.     - insert/delete character stuff.
  1053.     - improve delete rest of line (spaces at end of line).
  1054. -    When moving or resizing window, try to avoid a complete redraw (esp. when
  1055.     dragging the status line with the mouse).
  1056. -    When 'lazyredraw' set, don't echo :ex commands?  Need a flag to redraw when
  1057.     waiting for a character.
  1058. 8    Add a ":refresh [winnr]" command, to force updating a window.  Useful from
  1059.     an event handler where ":normal" can't be used.  Also useful when
  1060.     'lazyredraw' is set in a mapping.
  1061.  
  1062.  
  1063. Scrolling:
  1064. 8    Add "zm" command: scroll horizontally to put the cursor in the middle.
  1065. 6    Add option to set the overlap for CTRL-F and CTRL-B. (Garhi)
  1066. -    extend 'scrollbind' option: 'scrollopt' words "search", "relative", etc..
  1067.     Also 'e'xecute some commands (search, vertical movements) in all bound
  1068.     windows.
  1069. -    Allow scrolling by dragging with the mouse.  Like the "hand" in Acrobat
  1070.     reader.  With which mouse button?
  1071. -    Add command to execute some commands (search, vertical movements) in all
  1072.     bound windows.
  1073. -    Add 'search' option to 'scrollopt' to allow 'scrollbind' windows to
  1074.     be bound by regexp searches
  1075. -    Add "z>" and "z<": scroll sideways one screenfull. (Campbell)
  1076. -    Add 'sidescrolloff' option, like 'scrolloff', to make the cursor always
  1077.     appear in the middle of the window horizontally (Benjamin Griffin).
  1078. -    Add option to set the number of lines when not to scroll, instead of the
  1079.     fixed number used now (for terminals that scroll slow with a large number
  1080.     of lines but not with a single line).
  1081.  
  1082.  
  1083. Autoconf:
  1084. 8    Should use acconfig.h to define prototypes that are used by autoheader.
  1085. -    Autoconf: Use @datadir@ for the system independent files.  Make sure the
  1086.     system dependend and system independed files are separated. (Leitner).
  1087. -    Add autoconf check for waitpid()/wait4().
  1088. -    Remove fcntl() from autoconf, all systems have it?
  1089. -    Set default for 'dictionary', add search for dictionary to autoconf.
  1090.  
  1091.  
  1092. Perl interface:
  1093. 8    Rename typemap file to something else?
  1094. 7    Make buffers accessed as Perl arrays. (Clark)
  1095. 7    Make it possible to compile with non-ANSI C?
  1096. 6    Tcl/Tk has the "load" command: load a shared library (.so or .dll).
  1097.  
  1098.  
  1099. Shared libraries:
  1100. 6    Add support for loading shared libraries, and calling functions in it.
  1101.         :libload internal-name libname
  1102.         :libunload internal-name
  1103.         :liblist
  1104.         :libcall internal-name function(arg1, arg2, ...)
  1105.         :libcall function(arg1, arg2, ...)
  1106.     libcall() can have only one integer or String argument at the moment.
  1107. 6    Have a look on how Perl handles loading dynamic libraries.
  1108.  
  1109.  
  1110. Tags:
  1111. 8    Scope arguments for ":tag", e.g.: ":tag class:cPage open", like Elvis.
  1112. 8    When output of ":tselect" is long, getting the more-prompt, should be able
  1113.     to type the tag number directly.
  1114. 8    Add "**" wildcard from 'path' to 'tags': search a tree for tags files.
  1115.     And some way to search directories upwards in the tree:
  1116.     "./**/tags;$HOME", where the part after ';' tells where to stop.
  1117.     Richardson has a patch for some of this.
  1118. 7    Add 'tagignorecase' option from Vile: ignore case for tags.
  1119. 7    Make output of ":tselect" a bit nicer.  Use highlighting?
  1120. 7    Highlight the "tag 1 of >2" message.  New highlight group, or same as "hit
  1121.     bottom" search message.
  1122. 7    When using ":tag" at the top of the tag stack, should add another entry,
  1123.     so CTRL-T can bring you back to where you are now AND to where you were
  1124.     before the previous ":tag" command. (Webb)
  1125. 7    When using CTRL-] on someClass::someMethod, separate class from method and
  1126.     use ":ta class:someClass someMethod".
  1127.     Include C++ tags changes (Bertin).    Change "class::func" tag into "func"
  1128.     with "class=class"?  Docs in oldmail/bertin/in.xxx.
  1129. 7    Add ":tagargs", to set values for fields:
  1130.         :tagargs class:someclass file:version.c
  1131.         :tagargs clear
  1132.     These are then the default values (changes the order of priority in tag
  1133.     matching).
  1134. 7    Support for "gtags" and "global"?  With ":rtag" command?  See
  1135.     ~/src/global".  There is an example for how to do this in Nvi.
  1136.     Or do it like Elvis: 'tagprg' and 'tagprgonce' options. (Yamaguchi)
  1137.     The Elvis method is far more flexible, do it that way.
  1138. 7    Support "col:99" extra field, to position the cursor in that column.  With
  1139.     a flag in 'cpoptions' to switch it off again.
  1140. 7    Better support for jumping to where a function or variable is used.  Use
  1141.     the id-utils, with a connection to "gid" (Emacs can do it too).  Add
  1142.     ":idselect", which uses an "ID" database (made by "mkid") like "tselect".
  1143. 6    Don't store the search pattern from a tag command in the search history
  1144.     (with an option)?
  1145.  
  1146.  
  1147. Security:
  1148. 8    Add 'security' option.  When "paranoid", disallow many things, like
  1149.     setting 'grepprg' and 'makeprg' from a modeline.  When "trusted" allow
  1150.     these things.  When "warn" give a warning message.
  1151.     Perhaps disallow setting these from a modeline: errorfile, backupdir,
  1152.     directory, makeef and viminfo.  And maybe backup and writebackup?
  1153. 7    Disallow changing the buffer for commands from a tags file.  Also for
  1154.     commands from a local .vimrc?  Sort of strict secure mode.
  1155.  
  1156.  
  1157. Win32 GUI:
  1158. 8    Add font argument to set the lfCharSet. (Bobcik)
  1159. 8    Could keep console open to run multiple commands, to avoid the need to hit
  1160.     return in every console.
  1161.     Also: Look at how Emacs does runs external commands:
  1162.         http://www.cs.washington.edu/homes/voelker/ntemacs.html.
  1163. 7    Add a way to change the filter menu in the file selection dialog.
  1164. 8    Need a separate PopUp menu for modeless selection.  Need two new commands:
  1165.     Copy selection to clipboard, Paste selection (as typed text).
  1166. 8    Dropping a file on a gvim that edits a modified buffer splits the window.
  1167.     Make an option to replace the current file (use ":e" instead of ":sp")?
  1168.     When dropping multiple files, display the first one and adjust the
  1169.     arglist.  Or make it an option for the user to chose betwen ":e" and ":sp"?
  1170. 8    Support copy/paste for other file formats.  At least HTML, perhaps RTF.
  1171.     Add "copy special" and "paste special" commands?
  1172. 7    Use <C-Tab> to cycle through open windows (e.g., the find dialog).
  1173. 7    <Esc> should close a dialog.
  1174. 7    Keep the console for external commands open.  Don't wait for a key to be
  1175.     hit.  Re-open it when the user has closed it anyway.  Or use a prepended
  1176.     command: ":nowait {cmd}", or ":quiet", which executes {cmd} without any
  1177.     prompts.
  1178. 7    Should be able to set an option so that when you double click a file that
  1179.     is associated with Vim, you can either get a new instance of Vim, or have
  1180.     the file added into an already running Vim.
  1181.  
  1182.  
  1183. GUI:
  1184. 8    Make the split into system independend code and system specific code more
  1185.     explicit.  There are too many #ifdefs in gui.c.
  1186.     If possible, separate the Vim code completely from the GUI code, to allow
  1187.     running them in separate processes.
  1188. 8    Visual highlighting should keep the same font (bold, italic, etc.).
  1189. 7    Allow setting the mouse pointer shape, for different modes.  Ralston has
  1190.     an old patch for this.  Negri has one for Win32.
  1191. 8    Add flag to 'guioptions' to not put anything in the clipboard at all?
  1192. 8    ":let @* = 'text'" should set the selection. (Krishna)
  1193. 8    Should take font from xterm where gvim was started (if no other default).
  1194. 8    Selecting font names in X11 is difficult, make a script or something to
  1195.     select one.
  1196. 8    Should support a way to use keys that we don't recognize yet.  Add a
  1197.     command that adds entries to special_keys somehow.    How do we make this
  1198.     portable (X11, Win32, ..)?
  1199. 8    Add option to use some lines of space between characters.  Useful for
  1200.     multi-byte fonts.  See patch from Nam.
  1201. 7    Add a flag to 'guioptions' that tells not to remove inactive menu items.
  1202.     For systems where greying-out or removing menu items is very slow.  The
  1203.     menu items would remain visibly normally, but not do anything.
  1204. 7    Add ":minimize" and ":maximize", which iconize the window and back.
  1205.     Useful when using gvim to run a script (e.g. 2html.vim).
  1206. 7    X11: Is it possible to free allocated colors, so that other programs can
  1207.     use them again?  Otherwise, allow disabling allocating the default colors.
  1208.     Or allocate an own colormap (check UAE).  With an option to use it.  For
  1209.     the commandline, "-install" is mostly used for X11 programs.
  1210.     Or: Find the nearest color.  Patch from HierAssist. (Shah)
  1211. 7    X11: Check for keypad keys, so that they can be mapped separately.
  1212.     (Wellesz)  ~/vim/patches/wellesz.keypad . But don't differentiate for
  1213.     different modes.  Use key codes like xterm?
  1214. 7    GUI: Allow selection without moving the cursor by keeping CTRL and SHIFT
  1215.     pressed. (Wellesz) ~/vim/patches/wellesz.keypad .
  1216. 7    Add command line argument for "gvim" not to start the GUI.  Sort of the
  1217.     inverse of "vim -g". (Vikas)
  1218. 6    Local buffer menus. (Zachmann)
  1219. 7    Should support multi-column menus.
  1220. -    Should add option for where to put the "Help" menu: like Motif at the far
  1221.     right, or with the other menus (but still at the right).
  1222. -    Add menu item to "Keep Insert mode".
  1223. 8    ":mkgvimrc" command, that includes menus.
  1224. 6    Big change: Move GUI to separate program "vimgui", to make startup of vim a
  1225.     lot faster, but still be able to do "vim -g" or ":gui".
  1226. 6    Make it possible to "drag the text" (grab a character and move it
  1227.     up/down).  Use Alt-LeftMouse for this?  (Goldfarb)
  1228. 7    More explicit mouse button binding instead of 'mousemodel'?
  1229. 7    Add option to set the position of the window on the screen.  'windowpos',
  1230.     which has a value of "123,456": <x>,<y>.
  1231.     Or add a command, like ":winsize"?
  1232. 7    Add toolbar for non-Win32 GUIs.
  1233. 7    Make it possible to put the toolbar on top, left, right and/or bottom of
  1234.     the window?  Allows for softkey-like use.
  1235. 6    Separate the part of Vim that does the editing from the part that runs the
  1236.     GUI.  Communicate through a pseudo-tty.  Vim starts up, creates a
  1237.     pty that is connected to the terminal.    When the GUI starts, the pty is
  1238.     reconnected to the GUI process.  When the GUI stops, it is connected to
  1239.     the terminal again.  Also use the pty for external processes, it looks
  1240.     like a vt100 terminal to them.    Vim uses extra commands to communicate GUI
  1241.     things.
  1242. -    Motif steals <F10> from us, to pop up menus with the keyboard.    How do we
  1243.     get it back if we want it?
  1244. -    Paste in Insert mode should not do autowrap etc.  Or maybe this should be
  1245.     changeable with an option?
  1246. -    Put a nice picture in the icon (but how do we do that?).
  1247. 7    When using a pseudo-tty Vim should behave like some terminal (vt52 looks
  1248.     simple enough). Terminal codes to/from shell should be translated.
  1249. -    Would it be useful to be able to quit the GUI and go back to the terminal
  1250.     where it was started from?
  1251.  
  1252.  
  1253. Autocommands:
  1254. 9    Make sure that side effects of autocommands are handled correctly.  Don't
  1255.     execute autocommands when a buffer or window is halfway some changes.
  1256.     Move all apply_autocmds() calls to a higher level where needed.
  1257. 8    Use another option than 'updatetime' for the CursorHold event.  The two
  1258.     things are unrelated for the user (but the implementation is more
  1259.     difficult).
  1260. 8    Can't use ":normal" in CursorHold autocommands.  Make the CursorHold event
  1261.     insert a special key code, and call the autocommand functions from a
  1262.     higher level, so that vgetc() isn't used recursively.
  1263. 8    Autocommands should not change registers.  And marks?  And the jumplist?
  1264.     And anything else?
  1265. 8    Autocommand for when modified files have been found, when getting input
  1266.     focus again (e.g., FileChangedFocus).
  1267.     Check when: getting focus, jumping to another buffer, ...
  1268. 8    Add autocommands, user functions and user commands to ":mkvimrc".
  1269. 8    Add "TagJumpFile" autocommand: When jumping to another file for a tag.
  1270.     Can be used to open "main.c.gz" when "main.c" isn't found.
  1271. 7    Add a way to skip an autocommand if going from one *.c file to another *.c
  1272.     file.
  1273. 7    When trying to open a directory, don't load the file but trigger an
  1274.     autocommand event OpenDirectory.
  1275. 7    Add file type in front of file pattern: <d> for directory, <l> for link,
  1276.     <x> for executable, etc.  <&xxx> for Risc OS.  With commas to separate
  1277.     alternatives.  The autocommand is only executed when both the file type
  1278.     AND the file pattern match. (Leonard)
  1279. 5    Add option that specifies extensions which are to be discarded from the
  1280.     file name.  E.g. 'ausuffix', with ".gz,.orig".  Such that file.c.gz will
  1281.     trigger the "*.c" autocommands.  (Belabas)
  1282. 7    Add something to break the autocommands for the current event, and for
  1283.     what follows.  Useful for a "BufWritePre" that wants to avoid writing the
  1284.     file.
  1285. 8    Detect textmode after executing the autocommands, otherwise the .gz
  1286.     autocommands don't work for MS-DOS.  Needs to be able to remove the ^Ms at
  1287.     the end of each line.  Alternative: don't use a filter command, write the
  1288.     file, gunzip, set nobin, delete the lines, read the file.
  1289. -    Add events to autocommands:?
  1290.     Error            - When an error happens
  1291.     NormalEnter        - Entering Normal mode
  1292.     InsertEnter        - Entering Insert mode
  1293.     ReplaceEnter    - Entering Replace mode
  1294.     CmdEnter        - Entering Cmdline mode
  1295.     VisualEnter        - Entering Visual mode
  1296.     *Leave            - Leaving the mode
  1297.     SearchPost        - After doing a search command (e.g. to do "M")
  1298.     BufModified        - When a buffer becomes modified, or unmodified (for
  1299.                       putting a [+] in the window title).
  1300.                       HierAssist has patch to add BufChangePre, BufChangePost
  1301.                       and RevertBuf. (Shah)
  1302.     PreDirChanged/PostDirChanged
  1303.                     - Before/after ":cd" has been used (for changing the
  1304.                       window title)
  1305.     BufReadAction    - replaces reading a file
  1306.     BufWriteAction    - replaces writing a file
  1307.     ShutDown        - when the system is about to shut down
  1308.     InsertKeyPre    - key hit in Insert mode, before inserting the char.
  1309.     InsertKeyPost    - key hit in Insert mode, after inserting the char.
  1310.     FuncUndefined    - calling a user function which doesn't exist (
  1311.     ~/vim/patches/aaron.getbufvar3 )
  1312. -    Add autocommand to be executed every so many seconds?  For writing the
  1313.     file now and then ('autosave').
  1314.                                   *'autosave'* *'as'* *'noautosave'* *'noas'*
  1315.     'autosave' 'aw' number    (default 0)
  1316.             Automatically write the current buffer to file N seconds after the
  1317.             last change has been made and when |'modified'| is still set.
  1318.             Default: 0 = do not autosave the buffer.
  1319.  
  1320.  
  1321. Insert mode completion:
  1322. 9    ^X^L completion doesn't repeat correctly.  It uses the first match with
  1323.     the last added line, instead of continuing where the last match ended.
  1324.     (Webb)
  1325. 8    The code has become too complex.  Redesign it, or at least add proper
  1326.     comments.
  1327. 8    Add a command to undo the completion, go back to the original text.
  1328. 8    Use the class information in the tags file to do context-sensitive
  1329.     completion.  After "foo." complete all member functions/variables of
  1330.     "foo".  Need to search backwards for the class definition of foo.
  1331.     Should work for C++ and Java.
  1332. 8    Add thesaurus completion: ~/vim/patches/negri.thesaurus-mouseshape .
  1333. 7    Add CTRL-X command in Insert mode like CTRL-X CTRL-N, that completes WORDS
  1334.     instead of words.
  1335. 8    Add completion of previously inserted texts (like what CTRL-A does).
  1336.     Requires remembering a number of insertions.
  1337. 8    Add 'f' flag to 'complete': Expand file names.
  1338.     Also apply 'complete' to whole line completion.
  1339. -    Make it possible to search include files in several places.  Use the
  1340.     'path' option?    Can this be done with the dictionary completion (use
  1341.     wildcards in the file name)?
  1342. -    Make CTRL-X CTRL-K do a binary search in the dictionary (if it's sorted).
  1343. -    Speed up CTRL-X CTRL-K dictionary searching (don't use a regexp?).
  1344. -    Set a mark at the positition where the match was found (file mark, could
  1345.     be in another file).
  1346. -    Add CTRL-A command in CTRL-X mode: show all matches.
  1347. -    Make CTRL-X CTRL-L use the 'complete' option?
  1348. -    Add command in CTRL-X mode to add following words to the completed string
  1349.     (e.g. to complete "Pointer->element" with CTRL-X CTRL-P CTRL-W CTRL-W)
  1350. -    CTRL-X CTRL-F: Use 'path' to find completions.
  1351. -    CTRL-X CTRL-F: Don't replace "$VIM" with the actual value. (Kelly)
  1352. -    Add option 'isexpand', containing characters when doing expansion (so that
  1353.     "." and "\" can be included, without changing 'iskeyword'). (Goldfarb)
  1354.  
  1355.  
  1356. Command line completion:
  1357. 8    Change expand_interactively into a flag that is passed as an argument.
  1358. 8    When completing command names, either sort them on the long name, or list
  1359.     them with the optional part inside [].
  1360. -    For 'wildmenu': Simplify "../bar" when possible.
  1361. -    When using <Up> in wildmenu mode for a submenu, should go back to the
  1362.     current menu, not the first one.  E.g., ":emenu File.Save<Up>".
  1363. 8    For ":find" and ":sfind" expand files found in 'path'.
  1364. 8    When using backtick expansion, the external command may write a greeting
  1365.     message.  Add an option or commands to remove lines that match a regexp?
  1366. 7    When listing matches of files, display the common path separately from the
  1367.     file names, if this makes the listing shorter. (Webb)
  1368. -    Add command line completion for ":ilist" and friends, show matching
  1369.     identifiers (Webb).
  1370. 8    Add command line completion for "old value" of a command.  ":args <key>"
  1371.     would result in the current list of arguments, which you can then edit.
  1372. 6    Add command line completion with CTRL-X, just like Insert mode completion.
  1373.     Useful for ":s/word/xx/".
  1374. -    Add command to go back to the text as it was before completion started.
  1375.     Also to be used for <Up> in the command line.
  1376. -    Add 'wildlongest' option: Key to use to find longest common match for
  1377.     command line completion (default CTRL-L), like 'wildchar'. (Cregut)
  1378.     Also: when there are several matches, show them line a CTRL-D.
  1379. 7    With command line completion after '%' and '#', expand current/alternate
  1380.     file name, so it can be edited.
  1381.  
  1382.  
  1383. Command line history:
  1384. -    Add "KeyWasTyped" flag: It's reset before each command and set when a
  1385.     character from the keyboard is consumed. Value is used to decide to put a
  1386.     command line in history or not. Put line in history if it didn't
  1387.     completely resulted from one mapping.
  1388. -    When using ":browse", also put the resulting edit command in the history,
  1389.     so that it can be repeated. (Demirel)
  1390.  
  1391.  
  1392. Command-line editing:
  1393. 8    Change CTRL-U on cmdline to delete from cursor to start of line?
  1394.     For compatibility, map CTRL-U to CTRL-E CTRL-U.
  1395. 7    Add commands (keys) to delete from the cursor to the begin or the end of
  1396.     the command line.
  1397. -    Korn-shell or tcsh like command line editing (like editing a single line
  1398.     with vi). Use :cmap! for mappings. Can be implemented like a buffer
  1399.     containing command lines.  Use CTRL-O instead of <Esc>, to remain
  1400.     vi-compatible?  See remarks from Steve (oldmail/kirkendall/in.012).
  1401. -    Add 'cedit' option like Nvi: editing commandline in a window?
  1402.     NO!  It's too confusing (e.g. when using ^W^W to go to another window, when
  1403.     doing ":" and starting another commandline edit windows, etc.).
  1404.     YES!  Some people like it anyway (forbid ^W^W).
  1405.     Use Elvis's method too (commandline is like a one-line window into a buffer
  1406.     that contains the commandline history).
  1407. -    Add flags to 'whichwrap' for command line editing (cursor right at end of
  1408.     lines wraps to start of line).
  1409.  
  1410.  
  1411. Insert mode:
  1412. 8    <C-G><Up> and <C-G><Down> in Insert mode move to the column where insert
  1413.     started, like Elvis. (patch from Lord)  Perhaps an option to allow "j" and
  1414.     "k" after an insert to go to the column where inserting started.
  1415. 8    When using CTRL-O in Insert mode, then executing an insert command
  1416.     "a" or "i", should we return to Insert mode after <Esc>? (Eggink)
  1417.     Perhaps it can be allowed a single time, to be able to do
  1418.     "<C-O>10axyz<Esc>".  Nesting this further is confusing.
  1419.     ":map <F2> 5aabc<Esc>" works only once from Insert mode.
  1420. 7    Make ":startinsert" command work directly for functions and scripts?
  1421. 8    Make it possible to start Insert mode with an Ex command.  ":normal a"
  1422.     doesn't work.
  1423. -    In Insert mode (and command line editing?): Allow undo of the last typed
  1424.     character.    This is useful for CTRL-U, CTRL-W, delete and backspace, and
  1425.     also for characters that wrap to the next line.
  1426.     Possibly use 'backspace'="whole" for a mode where at least a <CR> that
  1427.     inserts autoindent is undone by a single <BS>.
  1428. -    Use CTRL-G in Insert mode for an extra range of commands, like "g" in
  1429.     Normal mode.
  1430. -    Make 'paste' work without resetting other options, but override their
  1431.     value.  Avoids problems when changing files and modelines or autocommands
  1432.     are used.
  1433. -    When typing CTRL-V and a digit higher than 2, only expect two digits.
  1434. -    Insert binary numbers with CTRL-V b.
  1435. -    Make it possible to undo <BS>, <C-W> and <C-U>.  Bash uses CTRL-Y.
  1436.  
  1437.  
  1438. 'cindent', 'smartindent':
  1439. 9    "case xx: {", or in general: any { with text before it, a matching }
  1440.     should not line up with the {, but with the indent at that position.
  1441.     Add setting for K&R paren style?  Should be used for this:
  1442.         case xx: {
  1443.                     some_cmd;
  1444.         }
  1445. 8    "int asdf,<CR>asdf;" should indent the second line more. (Zellner)
  1446. 7    Separate "(0" option into inside/outside a function (Zellner):
  1447.         func(
  1448.            int x)        // indent like "(4"
  1449.         {
  1450.            if (a
  1451.                && b)    // indent like "(0"
  1452. 9    Wrong indent for continuation line with a string:
  1453.         void foo()
  1454.         {
  1455.             x = f("s \
  1456.                 asd\
  1457.                     tem");
  1458.                 ff;
  1459.         }
  1460.     Also note that the "tem" line has an extra indent.  It appears that the
  1461.     brace matching doesn't work, because of the single " in the line.
  1462. 7    Make indenting more flexible, like syntax highlighting.
  1463. -    Make smartindenting configurable. Add 'sioptions', e.g. '#' setting the
  1464.     indent to 0 should be switched on/off.
  1465. 7    Support ANSI style function header, with each argument on its own line.
  1466. -    "[p" and "]p" should use 'cindent' code if it's on (only for the first
  1467.     line).
  1468. -    Add option to 'cindent' to set indent for comments outside of {}?
  1469. -    Make a command to line up a comment after a code line with a previous
  1470.     comment after a code line.    Can 'cindent' do this automatically?
  1471. 7    Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
  1472. -    formatting of struct/array inits:
  1473.     The lines used to initialise the struct or array above should not be
  1474.     considered 'continuation' lines just because the previous one does not end
  1475.     with ';'.  If you go back line by line I think it should be possible to
  1476.     tell the difference.  If you find a line that ends in ';', then it's OK to
  1477.     have continuation lines.  If you find a "{", and the character before it
  1478.     (not counting space & comments) is either ',' or '=', then there should
  1479.     not be continuation lines.    If the character before the "{" is another
  1480.     "{", then you have to check before that one too.
  1481. -    When 'cindent'ing a '}', showmatch is done before fixing the indent.  It
  1482.     looks better when the indent is fixed before the showmatch. (Webb)
  1483. -    Add option to make indenting work in comments too (for commented-out
  1484.     code), unless the line starts with "*".
  1485. -    Don't use 'cindent' when doing formatting with "gq"?
  1486. -    When formatting a comment after some text, insert the '*' for the new line
  1487.     (indent is correct if 'cindent' is set, but '*' doesn't get inserted).
  1488. -    For smartindent: When typing 'else' line it up with matching 'if'.
  1489. -    'smartindent': allow patterns in 'cinwords', for e.g. TeX files, where
  1490.     lines start with "\item".
  1491. -    Support this style of comments (with an option): (Brown)
  1492.         /* here is a comment that
  1493.         is just autoindented, and
  1494.         nothing else */
  1495. -    Add words to 'cinwords' to reduce the indent, e.g., "end" or "fi".
  1496. 7    Use Tabs for the indent of starting lines, padd with spaces for
  1497.     continuation lines.  Allows changing 'tabstop' without messing up the
  1498.     indents.
  1499.     And/or: Add option to copy indent as-is, without changing spaces to tabs.
  1500.  
  1501.  
  1502. Java:
  1503. 8    Can have {} constructs inside parens.  Include changes from Steve
  1504.     Odendahl?
  1505. 8    Recognize "import java.util.Vector" and use $CLASSPATH to find files for
  1506.     "[i" commands and friends.
  1507.  
  1508.  
  1509. 'comments':
  1510. 7    When using "comments=fg:--", Vim inserts three spaces for a new line.
  1511.     When hitting a TAB, these spaces could be removed.
  1512. 7    The 'n'esting flag doesn't do the indenting of the last (rightmost) item.
  1513. 6    Make strings in 'comments' option a RE, to be able to match more
  1514.     complicated things. (Phillipps)  Use a special flag to indicate that a
  1515.     regexp is used.
  1516. 8    Make the 'comments' option with "/* * */" lines only repeat the "*" line
  1517.     when there is a "/*" before it?  Or include this in 'cindent'?
  1518.  
  1519.  
  1520. Text objects:
  1521. 8    Add test script for text object commands "aw", "iW", etc.
  1522. 8    Add "gp" and "gP" commands: insert text and make sure there is a single
  1523.     space before it, unless at the start of the line, and after it, unless at
  1524.     the end of the line or befor a ".".
  1525. 7    Add "g{" and "g}" to move to the first/last character of a paragraph
  1526.     (instead of the line just before/after a paragraph as with "{" and "}").
  1527. 6    Ignore comment leaders for objects.  Make "das" work in reply-email.
  1528. 5    Make it possible to use syntax group matches as a text object.    For
  1529.     example, define a "ccItem" group, then do "da<ccItem>" to delete one.
  1530.     Or, maybe just define "dai", delete-an-item, to delete the syntax item the
  1531.     cursor is on.
  1532.  
  1533.  
  1534. Select mode:
  1535. 7    Alt-leftmouse starts block mode selection in MS Word.
  1536. 7    Add Cmdline-select mode.  Like Select mode, but used on the command line.
  1537.     - Change gui_send_mouse_event() to pass on mouse events when 'mouse'
  1538.       contains 'C' or 'A'.
  1539.     - Catch mouse events in ex_getln.c.  Also shift-cursor, etc., like in
  1540.       normal_cmd().
  1541.     - remember start and end of selection in cmdline_info.
  1542.     - Typing text replaces the selection.
  1543.  
  1544.  
  1545. Visual mode:
  1546. 8    In non-blockwise Visual mode, "r" should replace all characters with the
  1547.     typed one, like in blockwise Visual mode.
  1548.     What is "R" supposed to do?
  1549. 7    Support dragging the Visual area to drop it somewhere else. (Aaron)
  1550. 7    With blockwise Visual mode and "c", "C", "I", "A", etc., allow the use of
  1551.     a <CR>.  The entered lines are repeated over the Visual area.
  1552. 7    CTRL-V :s should substitute only in the block.
  1553. 7    Don't move the cursor when scrolling?  Needed when the selection should
  1554.     stay the same.  Scroll to the cursor at any movement command.  With an
  1555.     option!
  1556. 7    In Visual block mode, need to be able to define a corner on a position
  1557.     that doesn't have text?  Also: when using the mouse, be able to select
  1558.     part of a TAB.  Even more: Add a mode where the cursor can be on a screen
  1559.     position where there is no text.  When typing, add spaces to fill the gap.
  1560.     Other solution: Always use curswant, so that you can move the cursor to
  1561.     the right column, and then use up/down movements to select the line,
  1562.     without changing the column.
  1563. 6    ":left" and ":right" should work in Visual block mode.
  1564. 7    For Visual mode: Command to do a search for the string in the marked area.
  1565.     Only when less than two lines. Use "g/" and "g?".
  1566. 7    Filtering a block should only apply to the block, not to the whole lines.
  1567.     When the number of lines is increased, add lines. When decreased, padd with
  1568.     spaces or delete? Use ":`<,`>" on the command line.
  1569. 7    CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
  1570.     current buffer.
  1571. 7    CTRL-A and CTRL-X should increase/decrease all numbers in the Visual area.
  1572. 7    "g_CTRL-G" should count the number of characters in the Visual area.
  1573. 6    "I" should insert the same text in front of the selected text, in each
  1574.     line.
  1575. 6    "A" should append the same text after the selected text, in each line.
  1576. 6    "p" should replace the Visual area with the contents of a register (swap
  1577.     register contents with Visual text).
  1578. 6    ":'<,'>source" should read the selected lines and ":source" them.
  1579. 6    When in blockwise visual selection (CTRL-V), allow cursor to be placed
  1580.     right of the line. Could also allow cursor to be placed anywhere on a TAB
  1581.     or other special character.
  1582. 6    Add commands to move selected text, without deselecting.
  1583. 6    Add visual command to swap selected text with unnamed register.
  1584.  
  1585.  
  1586. Quickfix:
  1587. 8    Quickfix mode: Column number should be interpreted with an 8-character
  1588.     tabstop.
  1589. 6    Show quickfix lines (same as ":cl!") in a window.  Use a command to
  1590.     jump to the error (perhaps CTRL-], like with tags).  Does this open a new
  1591.     window, or use an existing window?
  1592.  
  1593.  
  1594. More advanced repeating commands:
  1595. -    Add "." command for visual mode: redo last visual command (e.g. ":fmt").
  1596. -    Add "." command after operator: repeat last command of same operator. E.g.
  1597.     "c." will repeat last change, also when "x" used since then (Webb).
  1598.     "y." will repeat last yank.
  1599.     "2gc." will repeat the last but one change?
  1600.     Also: keep history of Normal mode commands, add command to list the history
  1601.     and/or pick an older command.
  1602. -    History stack for . command?  Use "g." command.
  1603.  
  1604.  
  1605. Mappings and Abbreviations:
  1606. 8    To make a mapping work with a prepended "x to select a register, store the
  1607.     last _typed_ register name and access it with "+.
  1608. 8    Add ":amap", like ":amenu".
  1609. 8    Add ":cab!", abbreviations that only apply to Command-line mode and not to
  1610.     entering search strings.
  1611. 8    Allow mapping of CTRL-@ (anywhere in the LHS).
  1612. 8    Add a way to save a current mapping and restore it later.  Use a function
  1613.     that returns the mapping command to restore it: mapcmd()?  mapcheck() is
  1614.     not fool proof.  How to handle ambigious mappings?
  1615. 7    Mappings local to a buffer.  Or Mappings local to a filetype?
  1616. 7    Add <0x8f> (hex), <033> (octal) and <123> (decimal) to <> notation?
  1617. 7    Allow mapping "Q" and "Q}" at the same time.  Need to put a flag with "Q",
  1618.     that it needs an extra character before it can match. See Vile 'maplonger'
  1619.     option.
  1620. 7    When someone tries to unmap with a trailing space, and it fails, try
  1621.     unmapping without the trailing space.  Helps for ":unmap xx | unmap yy".
  1622. 7    Make it possible to map 'wildchar', but only when it's a special character
  1623.     (like CTRL-E).  Currently it's only recognized when typed.  Useful for
  1624.     mapping a key to do something and then completion.
  1625. 6    Context-sensitive abbreviations: Specify syntax group(s) in which the
  1626.     abbreviations are to be used.
  1627. -    Add mappings that take arguments.  Could work like the ":s" command.  For
  1628.     example, for a mouse escape sequence:
  1629.         :mapexp  <Esc>{\([0-9]*\),\([0-9]*\);    H\1j\2l
  1630. -    Add the possibility to enter mappings which are used whenever normal text
  1631.     could be enetered.  E.g., for "f" command.  But not in Normal mode.  Sort
  1632.     of opposite of 'langmap'.  Use ":tmap" command?
  1633. -    Make it possible to include a <Nul> in the lhs and rhs of a mapping.
  1634. -    Add command to repeat a whole mapping ("." only repeats the last change in
  1635.     a mapping).  Also: Repeat a whole insert command, including any mappings
  1636.     that it included.  Sort-of automatic recording?
  1637. -    Make it possible to undo all the commands from a mapping, including a
  1638.     trailing unfinished command, e.g. for ":map K iX^[r".
  1639. -    Add an option to ":map" that makes it display the special keys in
  1640.     <> notation (e.g. <CR> instead of ^M).    Or just always do this?
  1641. -    Include an option (or flag to 'cpoptions') that makes errors in mappings
  1642.     not flush the rest of the mapping (like nvi does).
  1643. -    Use context sensitiveness of completion to switch abbreviations and
  1644.     mappings off for :unab and :unmap.
  1645. 6    When using mappings in Insert mode, insert characters for incomplete
  1646.     mappings first, then remove them again when a mapping matches.    Avoids
  1647.     that characters that are the start of some mapping are not shown until you
  1648.     hit another character.
  1649. -    Add optional <Number> argument for mappings:
  1650.     :map <Number>q             ^W^W<Number>G
  1651.     :map <Number>q<Number>t  ^W^W<Number1-1>G<Number2>l
  1652.     :map q<Char>            :s/<Char>/\u\0/g
  1653.     Or implicit:
  1654.     :map q                        <Register>d<Number>$
  1655. -    Add mappings for replace mode: ":rmap".  How do we then enter mappings for
  1656.     non-replace Insert mode?
  1657. -    Add separate mappings for Visual-character/block/line mode?
  1658. 6    Alias for Normal mode commands, works like :substitute?  Would allow
  1659.     mappings with arguments.
  1660. -    Add 'mapstop' command, to stop recursive mappings.
  1661. -    List mappings that have a raw escape sequence both with the name of the key
  1662.     for that escape sequence (if there is one) and the sequence itself.
  1663. -    List mappings: Once with special keys listed as <>, once with meta chars as
  1664.     <M-a>, once with the byte values (octal?). Sort of "spell mapping" command?
  1665. -    When entering mappings: Add the possibility to enter meta keys like they
  1666.     are displayed, within <>: <M-a>, <~@> or <|a>.
  1667. -    Allow multiple arguments to :unmap.
  1668. -    Command to show keys that are not used and available for mapping
  1669.     ":freekeys".
  1670. -    Allow any character except white space in abbreviations lhs (Riehm).
  1671. 8    Add spell checking.  For example, include ispell:
  1672.     ~/vim/patches/wm_vim-5_4d.zip .
  1673.     Or: Use "ispell -a".
  1674.  
  1675.  
  1676. Incsearch:
  1677. -    Add a limit to the number of lines that are searched for 'incsearch'?
  1678. -    When incsearch used and hitting return, no need to search again in many
  1679.     cases, saves a lot of time in big files. (Slootman wants to work on this?)
  1680.     When not using special characters, can continue search from the last match
  1681.     (or not at all, when there was no match).  See oldmail/webb/in.872.
  1682. -    With incsearch, use CTRL-N/CTRL-P to go to next/previous match, some other
  1683.     key to copy matched word to search pattern (Alexander Schmid).
  1684.  
  1685.  
  1686. Searching:
  1687. 8    Allow identical pairs in 'matchpairs'.  Restrict the search to the current
  1688.     line.
  1689. 8    "/:/e+1" gets stuck on a match at the end of the line.    Do we care?
  1690. 8    A pattern like "\([^a]\+\)\+" takes an awful long time.  Recognize that
  1691.     the recursive "\+" is meaningless and optimize for it.
  1692.     This one is also very slow on "/* some comment */": "^\/\*\(.*[^/]\)*$".
  1693. 7    Recognize "[a-z]", "[0-9]", etc. and replace them with the faster "\l" and
  1694.     "\d".
  1695. -    Add an option not to use 'hlsearch' highlighting for ":s" and ":g"
  1696.     commands. (Kahn)  Or an extra flag to skip it once.
  1697. -    Add {group-name} flag for search string, to restrict the search to a
  1698.     specific highlight group.  Use "/./<Group>" to find the start of a group.
  1699. -    Support Perl regexp.  Use PCRE (Perl Compatible RE) package. (Shade)
  1700.     Switch on with an option for typed commands/mappings/functions?
  1701. 8    Why does ".*" have a limit of 32767 characters?  Can it be removed?
  1702. 7    Add POSIX regexp, like Nvi, with 'extended' option?  It's like very-magic.
  1703. -    Remember flags for backreferenced items, so that "*" can be used after it.
  1704.     Check with "\(\S\)\1\{3}". (Hemmerling)
  1705. -    Add flags to search command:
  1706.     i    ignore case
  1707.     I    use case
  1708.     p    use Perl regexp syntax (or POSIX?)
  1709.     v    use Vi regexp syntax
  1710.     Perl uses these too:
  1711.     e    evaluate the right side as an expression (Perl only)
  1712.     m    multiple line expression
  1713.     o    compile only once (Perl only)
  1714.     s    single line expression
  1715.     x    extended regexp
  1716.     When used after ":g" command, backslash needed to avoid confusion with the
  1717.     following command.
  1718.     Add 'searchflags' for default flags (replaces 'gdefault').
  1719. -    Add command to display the last used substitute pattern and last used
  1720.     pattern. (Margo)  Maybe make it accessible through a register (like "/
  1721.     for search string)?
  1722. 8    Make "/ register writable. (Maxi)
  1723.     How to take care of the flags (offset, magic)?
  1724. 7    Should notice that "\(a\|ab\|abc\|abcd\)" doesn't work, automatically
  1725.     change it to "\(abcd\|abc\|ab\|a\)"? (Campbell)
  1726. 7    Use T-search algorithm, to speed up searching for strings without special
  1727.     characters.  See C't article, August 1997.
  1728. -    Add 'fuzzycase' option, so that case doesn't matter, and '-' and '_' are
  1729.     equivalent (for Unix filenames).
  1730. -    Add 'v' flag to search command: enter Visual mode, with the matching text
  1731.     as Visual area. (variation on idea from Bertin)
  1732. -    Searching: "/this//that/" should find "that" after "this".
  1733. -    Add flag to search command to forget it for "n", e.g. "/foo/f".  Also for
  1734.     ":s/pat//f".  Also add flag to 'r'emember (for mappings).
  1735. -    Add global search commands: Instead of wrapping at the end of the buffer,
  1736.     they continue in another buffer. Use flag after search pattern:
  1737.     a    for the next file in the argument list
  1738.     f    for file in the buffer list
  1739.     w    for file edited in a window.
  1740.     e.g. "/pat/f". Then "n" and "N" work through files too. "f" flag also for
  1741.     ":s/pat/foo/f"??? Then when 'autowrite' and 'hidden' are both not set, ask
  1742.     before saving files: "Save modified buffer "/path/file"? (Yes/Hide/No
  1743.     Save-all/hide-All/Quit) ".
  1744. -    Special characters in patterns:
  1745.     \A    beginning of string (for multi-line matching)
  1746.     \Z    end of string (idem)
  1747.     Inside []:
  1748.     \012  octal character
  1749.     \0x1a hex character
  1750.     \<BS> special character
  1751. 7    When searching with 'n' give message when getting back where the search
  1752.     first started. Remember start of search in '/ mark.
  1753. 7    Add option that scrolls screen to put cursor in middle of screen after
  1754.     search always/when off-screen/never.  And after a ":tag" command.  Maybe
  1755.     specify how many lines below the screen causes a redraw with the cursor in
  1756.     the middle (default would be half a screen, zero means always).
  1757. 6    Add \! to search patterns: matches string that does not match previous
  1758.     atom.
  1759. 6    Use \& for "and", like \| for "or".
  1760. 6    Support multiple search buffers, so macros can be made without side
  1761.     effects.
  1762. 7    From xvim: Allow a newline in search patterns (also for :s, can delete
  1763.     newline).  Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
  1764.     [not in xvim:] Add option to switch on matches crossing ONE line boundary.
  1765. 7    Add register for '?' and '/' commands? (yank_buf()).
  1766. -    In regexp, allow use of special characters with "\<nn>" notation?
  1767. 7    Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron)
  1768.     Also ":dselect".
  1769.  
  1770.  
  1771. Undo:
  1772. 8    Make undo more memory-efficient: Compare text before and after change,
  1773.     only remember the lines that really changed. When calling u_save with a
  1774.     single line, don't save it if line was already saved for undo.
  1775. 7    Add an undo tree: When making a change, instead of clearing any future
  1776.     undo (thus redo) info, make a new branch.  How to navigate through the
  1777.     undo tree?
  1778. -    For u_save() include the column number. This can be used to set '[ and '].
  1779.     And in the future the undo can be made more efficient (Webb).
  1780. -    In out-of-memory situations: Free allocated space in undo, and reduce the
  1781.     number of undo levels (with confirmation).
  1782. -    Instead of [+], give the number of changes since the last write: [+123].
  1783.     When undoing to before the last write, change this to a negative number:
  1784.     [-99].
  1785. 7    Make it possible to jump to the location of the last change.  Like doing
  1786.     "u" "CTRL-R". (Lange)
  1787. -    With undo with simple line delete/insert: optimize screen updating.
  1788. -    When executing macro's: Save each line for undo only once.
  1789. -    Store undo info in a file that survives until the next edit.  Then it's
  1790.     possible to undo to before the current editing session.  Combined with
  1791.     viminfo?
  1792. -    When doing a global substitute, causing almost all lines to be changed,
  1793.     undo info becomes very big.  Put undo info in swap file??
  1794.  
  1795.  
  1796. Buffer list:
  1797. 7    Command to execute a command in another buffer: ":inbuf {bufname} {cmd}".
  1798.     Also for other windows: ":inwin {winnr} {cmd}".  How to make sure that
  1799.     this works properly for all commands, and still be able to return to the
  1800.     current buffer/window?  E.g.: ":inbuf xxx only".
  1801. 8    Share things between buffers with the same 'filetype': syntax, mappings,
  1802.     autocommands, buffer-specific options, etc..  Avoids that syntax is
  1803.     reloaded when jumping from *.c to *.c file and reduces the need for
  1804.     BufEnter autocommands.
  1805. 8    Add File.{recent_files} menu entries: Recently edited files.
  1806. 8    Unix: Check all uses of fnamecmp() and fnamencmp() if they should check
  1807.     inode too.
  1808. 7    Add another number for a buffer, which is visible for the user.  When
  1809.     creating a new buffer, use the lowest number not in use. (or the highest
  1810.     number in use plus one?)
  1811. 7    Offer some buffer selection from the command line?  Like using ":ls" and
  1812.     asking for a buffer number. (Zachmann)
  1813. -    When starting to edit a file that is already in the buffer list, use the
  1814.     file name argument for the new short file name. (Webb)
  1815. -    Add an option to make ":bnext" and ":bprev" wrap around the end of the
  1816.     buffer list.  Also for ":next" and ":prev"?
  1817. 7    Add argument to ":ls" which is a pattern for buffers to list.
  1818.     E.g. ":ls *.c". (Thompson)
  1819. 7    Add expansion of buffer names, so that "*.c" is expanded to all buffer
  1820.     names.  Needed for ":bdel *.c", ":bunload *.c", etc.
  1821. 8    Support for <afile> where a buffer name is expected.
  1822. 8    Some commands don't use line numbers, but buffer numbers. '$'
  1823.     should then mean the number of the last buffer.  E.g.: "4,$bdel".
  1824. 7    Add an option to mostly use slashes in file names.  Separately for
  1825.     internal use and for when executing an external program?
  1826.  
  1827.  
  1828. Swap (.swp) files:
  1829. 8    If writing to the swap file fails, should try to open one in another
  1830.     directory from 'dir'.  Useful in case the file system is full.
  1831. 8    When the edited file is a symlink, try to put the swap file in the same
  1832.     dir as the actual file. Adjust FullName().    Avoids editing the same file
  1833.     twice (e.g. when using quickfix).  Also try to make the name of the backup
  1834.     file the same as the actual file?
  1835. 7    When using 64 bit inode numbers, also store the top 32 bits.  Add another
  1836.     field for this, using part of bo_fname[], to keep it compatible.
  1837. 7    When editing a file on removable media, should put swap file somewhere
  1838.     else.  Use something like 'r' flag in 'viminfo'. 'diravoid'?
  1839.     Also: Be able to specify minimum disk space, skip directory when not
  1840.     enough room.
  1841. 7    Add a configure check for which directory should be used: /tmp, /var/tmp
  1842.     or /var/preserve.
  1843. -    Add an option to create a swap file only when making the first change to
  1844.     the buffer.  (Liang)  Or only when the buffer is not read-only.
  1845. -    Add option to set "umask" for backup files and swap files (Antwerpen).
  1846.     'backupumask' and 'swapumask'?    Or 'umaskback' and 'umaskswap'?
  1847. -    When editing a readonly file, don't use a swap file but read parts from the
  1848.     original file.  Also do this when the file is huge (>'maxmem').  We do
  1849.     need to load the file once to count the number of lines?  Perhaps keep a
  1850.     cached list of which line is where.
  1851.  
  1852.  
  1853. Viminfo:
  1854. 7    Can probably remove the code that checks for a writable viminfo file,
  1855.     because we now do the chown() for root, and others can't overwrite someone
  1856.     else's viminfo file.
  1857. 8    Add argument to keep the list of buffers when Vim is started with a file
  1858.     name. (Schild)
  1859. 8    Remember a list of last accessed files.  To be used in the
  1860.     "File.Open Recent" menu.  Default is to remember 10 files or so.
  1861.     Also remember which files have been read and written.  How to display
  1862.     this?
  1863. 6    Store a snapshot of the currently opened windows.  So that when quitting
  1864.     Vim, and then starting again (without a file name argument), you see the
  1865.     same files in the windows.  Use ":mksession" code?
  1866. -    Make marks present in .viminfo usable as file marks: Display a list of
  1867.     "last visited files" and select one to jump to.
  1868. -    Add jumplist to viminfo file, so that CTRL-O can be used.
  1869.  
  1870.  
  1871. Modelines:
  1872. 8    Before trying to execute a modeline, check that it looks like one (valid
  1873.     option names).  If it's very wrong, silently ignore it.
  1874. -    When an option value is coming from a modeline, do not carry it over to
  1875.     another edited file?  Would need to remember the value from before the
  1876.     modeline setting.
  1877. -    Allow ":doauto BufRead x.cpp" in modelines, to execute autocommands for
  1878.     .cpp files.
  1879. -    Support the "abbreviate" command in modelines (Kearns).  Careful for
  1880.     characters after <Esc>, that is a security leak.
  1881. -    Add option setting to ask user if he wants to have the modelines executed
  1882.     or not.  Same for .exrc in local dir.
  1883.  
  1884.  
  1885. Options:
  1886. 8    When using set +=, check for flags used twice.  Add P_FLAGS for options
  1887.     that are a list of flags, and remove doubled flags.
  1888. 8    Make ":mksession" store buffer-specific options for the specific buffer.
  1889. 8    With ":mksession" always store the 'sessionoptions' option, even when
  1890.     "options" isn't in it. (St-Amant)
  1891. 8    When using ":mksession", also store a command to reset all options to
  1892.     their default value, before setting the options that are not at their
  1893.     default value.
  1894. 8    Should ":mksession" restore the current directory when writing the
  1895.     session, or the directory where the session file is?  Probably need a word
  1896.     in 'sessionoptions' to make a choice.
  1897. 8    Make "old" number options that really give a number of effects into string
  1898.     options that are a comma separated list.  The old number values should
  1899.     also be supported.
  1900. 8    Make it possible to set options from modelines, mappings and :sourced
  1901.     files only temporarily for that file (needs a stack for saving old
  1902.     options).  ":this set" command?  Also ":this map", ":this abbrev".
  1903.     Or use ":local"?
  1904. 8    When entering a new buffer, don't copy buffer-specific options.  Need a
  1905.     set of buffer-neutral options.
  1906.  
  1907.  
  1908. External commands:
  1909. 9    When filtering a buffer (e.g., to gunzip it) marks are changed when they
  1910.     shouldn't.  Add an option to switch of adjusting marks.  Use it for .gz
  1911.     files gunzipping and gzipping.
  1912. 8    When filtering text, redirect stderr so that it can't mess up the screen
  1913.     and Vim doesn't need to redraw it.  Also for ":r !cmd".
  1914. 4    Set separate shell for ":sh", piping "range!filter", reading text "r !ls"
  1915.     and writing text "w !wc". (Deutsche)  Allow arguments for fast start (e.g.
  1916.     -f).
  1917. 4    Allow direct execution, without using a shell.
  1918. 4    Run an external command in the background.  But how about I/O in the GUI?
  1919.     Careful: don't turn Vim into a shell!
  1920. -    Add 'echo' option: When off don't echo shell commands.
  1921.  
  1922.  
  1923. Folding:
  1924. -    three basic modes (with a "fold mode" setting?):
  1925.     1. automatic: set folding level, all lines above this level will be folded
  1926.      - For C-code: fold more or less {} blocks.
  1927.      - For C-code: fold comments or non-comments.
  1928.      - Fold depending on the indent (or use a regexp).
  1929.      - Use syntax highlighting stuff to detect a folding level.
  1930.        Syntax-highlighting, syntax-folding (and syntax-indenting).
  1931.     2. manual: the user specifies which lines to fold or unfold.
  1932.      ":[range]fold".  Can use Visual mode to fold any range of lines:
  1933.      "vaB:fold".  Use ":[range]fold {text}" to give a name to the fold.
  1934.     3. half-automatic: recognize objects in the text, allow the user to
  1935.        fold/unfold these objects.
  1936.      - Allow the user to specify the marker, or regexp, or use syntax
  1937.        highlighting.
  1938.      This is actuall 2 with some commands added to select lines.
  1939.     David Harrison has some things.
  1940. -    Unfold with <Tab> on folded line?  Or at least ":[line]unfold".
  1941.     Or use "<" to fold more and ">" to unfold.
  1942. -    Use the concept of a "view" on a file: Contains the folding, topline,
  1943.     'list', 'number', 'hlsearch', 'wrap', etc.
  1944.     Be able to store and retrieve views.  Automatically (use last used view
  1945.     for a file) and under a name (store combinations of options).  In viminfo?
  1946. -    Programs to use as an example:
  1947.     ae (Williams): www.interalpha.net/customer/nyangau/
  1948.     f (Beton): ?
  1949.     fe (Beton prefers f): http://www.moria.de/~michael/fe/
  1950.     origami: www.hensa.ac.uk/parallel/tools/editors/folding-editors/index.html
  1951.     Elcomsoft's (has bugs): www.elcomsoft.com/origami.html
  1952.     JED (Baugher)
  1953.     WinFold (~/src/winfold).
  1954.     Codewright: regexp, brace level, indent level, preprocs, lines,
  1955.         paragraphs, functions.
  1956.     macros: ~/vim/macros/fold.vim .
  1957. -    Ex range which stands for folded lines and non-folded lines.
  1958.         :=d cmd        displayed lines
  1959.         :=f cmd        folded lines
  1960. -    Deleting a "folded" line deletes all the folded lines.  Putting it
  1961.     somewhere else puts all the folded lines.  Useful for moving functions
  1962.     around.
  1963. -    Display folded lines with "+--- %d lines folded".
  1964. -    Implementation: Remember the folding level for each line (perhaps in a
  1965.     list of ranges).  Select lines when displaying the buffer in a window.
  1966.     Use an option to tell to display lines above or below a fold level.
  1967. -    Add 'hidecomment' option: don't display comments in /* */ and after //.
  1968.  
  1969.  
  1970. Multiple Windows:
  1971. -    Allow vertical splitting of screen (once?).
  1972. 7    When starting Vim several times, instanciate a Vim server, that allows
  1973.     communication between the different Vims.  Feels like one Vim running with
  1974.     multiple top-level windows.  Esp. useful when Vim is started from an IDE
  1975.     too.  Requires some form of inter process communication.
  1976. -    Support a connection to an external viewer.  Could call the viewer
  1977.     automatically after some seconds of non-activity, or with a command.
  1978.     Allow some way of reporting scrolling and cursor positioning in the viewer
  1979.     to Vim, so that the link between the viewed and edited text can be made.
  1980.  
  1981.  
  1982. Marks:
  1983. 8    Add a command to jump to a mark and make the motion inclusive. g'm and g`m?
  1984. 8    Add mark at the last change.  Per buffer.  Could use "'.".
  1985. 8    Add a command to jump to next defined mark. (Rogers)  See patch from
  1986.     Sieger.  "]'" and "['"?
  1987. 8    When deleting lines, don't delete uppercase marks in them.  Move the mark
  1988.     to the nearest line.
  1989. 8    The '" mark is set to the first line, even when doing ":next" a few times.
  1990.     Only set the '" mark when the cursor was really moved in a file.
  1991. 7    Make a list of file marks in a separate window.  For listing all buffers,
  1992.     matching tags, errors, etc.  Normal commands to move around.  Add commands
  1993.     to jump to the mark (in current window or new window).  Start it with
  1994.     ":browse cmd"?
  1995. 7    For ":jumps", ":tags" and ":marks", for not loaded buffers, remember the
  1996.     text at the mark.  Highlight the column with the mark.
  1997. 7    Highlight each mark in some way (With "Mark" highlight group).
  1998.     Or display marks in a separate column, like 'number' does.
  1999. 7    Use d"m to delete rectangular area from cursor to mark m (like Vile's \m
  2000.     command).
  2001. 7    Try to keep marks in the same position when:
  2002.     - replacing with a line break, like in ":s/pat/^M/", move marks after the
  2003.       line break column to the next line. (Acevedo)
  2004.     - filtering lines, try to keep the marks in the filtered lines.    Need to
  2005.       move some marks if the number of lines decreases.
  2006.     - changing text, e.g. when formatting with "gq".
  2007.     - inserting/deleting characters in a line.
  2008. 5    Include marks for start/end of current word, sentence, paragraph, section.
  2009.     Useful in mappings.
  2010.  
  2011.  
  2012. Digraphs:
  2013. 8    Make it possible to enter a digraph after "r" (with CTRL-K).
  2014. -    Make it possible to enter "r<C-E>" and "r<C-Y>" (get character from line
  2015.     below/above).
  2016. -    Use digraph table to tell Vim about the collating sequence of special
  2017.     characters?
  2018. -    Add command to remove (all) digraphs. (Brown)
  2019. 7    Make it possible to switch between DOS and ISO digraphs for Win32 GUI.
  2020.  
  2021.  
  2022. Multibyte support:
  2023. 9    Check "gR" for proper working of backspacing.
  2024. 9    With Athena and Motif the status line overwrites a bottom scrollbar?
  2025. 9    The BROKEN_LOCALE check should be done at runtime, not at compile time.
  2026.     Helps when compiling on one machine and running on another.
  2027. 8    Include some of the patches ~/vim/patches/muraoka.diff.tgz (Muraoka)
  2028.     Find another solution for CSI from the GUI.  Prepare for UTF-8.
  2029. -    Substitute doesn't work well on multibyte characters:
  2030.     ":s/\(.\)/\1\1/g" replaces each byte instead of each multi-byte.
  2031.     Requires regexp code that sees a multibyte character as one char.
  2032. -    When wrapping words, allow splitting at each multibyte character, not only
  2033.     at a space (with an option). (Nishioka)
  2034. -    Support full UTF8 format, also three to eight byte characters.  Use a skip
  2035.     table (from Larry Wall).  Example: mined.  It contains code to detect UTF8
  2036.     and Latin-1 encoding.
  2037.     (www.inf.fu-berlin.de/~wolff/mined.html and mined-utf.html).
  2038.     Detect some encodings: FF FE: UCS-2 little endian, FE FF: UCS-2 big
  2039.     endian, FF FE 00 00: UCS-4 little endian, 00 00 FE FF: UCS-4 big endian,
  2040.     EF BB BF: UTF-8.
  2041. -    Support "overstrike" characters.  E.g., vowel points for Hebrew. (Aaron)
  2042. -    Check "yudit" for its Unicode handling.  But its keyboard translation
  2043.     files are not powerful enough.
  2044. -    Use OTP files from Omega. http://www/ens.fr/omega/  (Vidal)
  2045.     Or use input software like xkinput.
  2046. -   use mblen or related functions to be more portable i18n (Nagano)
  2047. -   fileencoding option should be changed to be able to specify locale
  2048.     or machine dependent encoding information such as SJIS, EUC, etc. (Nagano)
  2049.  
  2050.  
  2051. Writing files:
  2052. -    In vim_rename(), should lock "from" file when deleting "to" file for
  2053.     systems other than Amiga.  Avoids problems with unexpected longname to
  2054.     shortname conversion.
  2055. 8    When writing a file, name it "foo.new". Then rename "foo" to "foo.bak" and
  2056.     "foo.new" to "foo". If dir is not writable or on write error copy "foo" to
  2057.     "backupdir/foo.bak" and overwrite "foo". Check for correct group/owner and
  2058.     try to set it if not. NO: this breaks with hard links.    INSTEAD: make Amiga
  2059.     and MSDOS work like unix: first make copy of file, then truncate and
  2060.     overwrite original file. Use an option for this, default on for Unix, off
  2061.     for Amiga/MSDOS (Sayre has the algorithm worked out).
  2062. 7    Support ACLs (Access Control Lists, Security Descriptor in WinNT).    Check
  2063.     with Windows NT or HPUX 10.*?  Add configure check for it, add code for
  2064.     when overwriting a file (viminfo or ":w" command) that copies the ACL to
  2065.     the new file.  Use info from Maximo: GetNamedSecurityInfo and
  2066.     SetNamedSecurityInfo.
  2067. 8    When appending to a file, Vim should also make a backup and a 'patchmode'
  2068.     file.
  2069. 6    Add an option to write a new, numbered, backup file each time.  Like
  2070.     'patchmode', e.g., 'backupmode'.
  2071. 6    Make it possible to write 'patchmode' files to a different directory.
  2072.     E.g., ":set patchmode=~/backups/*.orig". (Thomas)
  2073. 6    Add an option to prepend something to the backup file name.  E.g., "#".
  2074.     Or maybe allow a function to modify the backup file name?
  2075. 8    Only make a backup when overwriting a file for the first time. Avoids
  2076.     loosing the original when writing twice. (Slootman)
  2077. 7    On non-Unix machines, also overwrite the original file in some situations
  2078.     (file system full, it's a link on an NFS partition).
  2079. 7    When editing a file, check that it has been change outside of Vim more
  2080.     often, not only when writing over it.  E.g., at the time the swap file is
  2081.     flushed.  Or every ten seconds or so (use the time of day, check it before
  2082.     waiting for a character to be typed).
  2083.  
  2084.  
  2085. Substitute:
  2086. -    :s///p prints the line after a substitution.
  2087. -    With :s///c replace \&, ~, etc. when showing the replacement pattern.
  2088. 8    With :s///c allow scrolling horizontally when 'nowrap' is effective.
  2089.     Also allow a count before the scrolling keys.
  2090. -    Add number option to ":s//2": replace second occurrence of string? Or:
  2091.     :s///N substitutes N times.
  2092. -    Add answers to ":substitute" with 'c' flag, used in a ":global", e.g.:
  2093.     ":g/pat1/s/pat2/pat3/cg": 'A' do all remaining replacements, 'Q' don't do
  2094.     any replacements.
  2095. 7    Substitute in a block of text.  Use {line}.{column} notation in an Ex
  2096.     range, e.g.: ":1.3,$.5s" means to substitute from line 1 column 3 to the
  2097.     last line column 5.
  2098.  
  2099.  
  2100. Mouse support:
  2101. 8    Included jsbmouse support (Garth) ~/vim/patches/garth.jsbmouse .
  2102. 8    Move code common to jump_to_mouse() and get_fpos_of_mouse() together.
  2103. 8    Add 'mouse' flag, which sets a behavior like Visual mode, but automatic
  2104.     yanking at the button-up event.  Or like Select mode, but typing gets you
  2105.     out of Select mode, instead of replacing the text. (Bhaskar)
  2106. 7    Checkout sysmouse() for FreeBSD console mouse support.
  2107. -    Implement mouse support for the Amiga console.
  2108. -    Using right mouse button to extend a blockwise selection should attach to
  2109.     the nearest corner of the rectangle (four possible corners).
  2110. -    Precede mouse click by a number to simulate double clicks?!?
  2111. -    When mouse click after 'r' command, get character that was pointed to.
  2112.  
  2113.  
  2114. Crypt:
  2115. 8    Also crypt the swapfile, each block separately.  Change mf_write() and
  2116.     mf_read().  How to get b_p_key to these functions?
  2117. 8    Ask the key to be typed twice when crypting the first time.  Otherwise a
  2118.     typo might cause the text to be lost forever.
  2119.  
  2120.  
  2121. Argument list:
  2122. 7    Make an argument list per window.  ":argnew <file> .."?
  2123.     And/or: Add the possibility to use more than one argument list: ":arglist
  2124.     2".
  2125.     Would require commands to switch to another argument list too.
  2126. 6    Add command to add or remove files from the argument list.  Useful when
  2127.     doing commands for all files in the argument list.
  2128.     ":argadd <file> .." and ":argdel <file> .."?
  2129. 6    Add command to put all filenames from the tag files in the argument list.
  2130.     When given an argument, only use the files where that argument matches
  2131.     (like `grep -l ident`) and jump to the first match.
  2132. 6    Add command to form an args list from all the buffers.
  2133. 7    Allow multiple arguments for ":edit", add them to the argument list.
  2134.  
  2135.  
  2136. Various improvements:
  2137. 6    Include the ruby interface?
  2138. 7    Include some of the HierAssist changes? (Shah)
  2139. 7    Open a server socket (with an option for IP/port nr) to allow remote
  2140.     control.  Optionally with a password to restrict access.
  2141.     Use the Simple Sockets Library? (Campbell)
  2142.     Same sample code (brent verner): http://linux1.org/misc/vim_socket.tar.bz2
  2143. 8    Include a connection to an external program through a pipe?  See patches
  2144.     from Felbinger for a mathematica inteface.
  2145. 8    Enabling features is a mix of configure arguments and defines in
  2146.     feature.h.  How to make this consistent?  Feature.h is required for
  2147.     non-unix systems.  Perhaps let configure define CONF_XXX, and use #ifdef
  2148.     CONF_XXX in feature.h?  Then what should min-features and max-features do?
  2149. 8    Don't display empty registers with ":display". (Etienne)
  2150. 8    Add "g^E" and "g^Y", to scroll a screen-full line up and down.
  2151. 6    Add ":timer" command, to set a command to be executed at a certain
  2152.     interval, or once after some time has elapsed. (Aaron)
  2153. 8    Add ":confirm" handling in open_exfile(), for when file already exists.
  2154. 8    Use confirm/dialog stuff to ask the user, when a file has changed outside
  2155.     of Vim, if he wants to reload it.  Triggered when focus gained, after
  2156.     shell command, when entering another buffer, etc..
  2157.     Also do this when editing a new file, and another application creates
  2158.     the file before doing ":w" in Vim.
  2159.     Also check if the file protection has changed.  When checking a file into
  2160.     RCS it is made read-only, when checking out it is made read-write.
  2161. 8    When quitting with changed files, make the dialog list the changed file
  2162.     and allow "write all", "discard all", "write some".  The last one would
  2163.     then ask "write" or "discard" for each changed file.  Patch in HierAssist
  2164.     does something like this. (Shah)
  2165. 7    Use growarray for replace stack.
  2166. 7    Have a look at viH (Hellenic or Greek version of Vim).  But a solution
  2167.     outside of Vim might be satisfactory (Haritsis).
  2168. 6    Allow a local doc directory?  And syntax, tools, macros...?  Use 'vimpath'
  2169.     option: list of directories which are used instead of $VIM.
  2170. 3    Make "2d%" work like "d%d%" instead of "d2%"?
  2171. 8    Make "more" prompt accept command characters, like "hit-return" prompt?
  2172.     Or extend it with more commands, like "less": 'b' for back, 'j' for one
  2173.     line down, etc.
  2174. 8    For the "--more--" prompt, support the 'b'ack command for more commands.
  2175. 7    "g CTRL-O" jumps back to last used buffer.    Skip CTRL-O jumps in the same
  2176.     buffer.  Make jumplist remember the last ten accessed buffers?
  2177. 7    Add a history of recently accessed buffer.    Maybe make "2 CTRL-^" jump to
  2178.     the 2nd previously visited buffer, "3 CTRL-^" to the third, etc.  Or use
  2179.     "3 g CTRL-^" for this?
  2180. 5    Add an option to set the width of the 'number' column.    Eight positions is
  2181.     often more than needed.
  2182. -    Add code to disable the CAPS key when going from Insert to Normal mode.
  2183. 8    Add the possibility to have scratch buffers.  They don't have a swap file.
  2184.     The name is not related to a file.    Useful for the file selection macros.
  2185.     Use a 'scratch' option?
  2186. -    Set date/protection/etc. of the patchfile the same as the original file.
  2187. -    Use growarray for termcodes[] in term.c
  2188. -    Use getrlimit() (if possible) to set 'maxmemtot' and 'maxmem'.
  2189. -    Add <window-99>, like <cword> but use filename of 99'th window.
  2190. -    Should make it possible for ml_get() to keep more than one line locked.
  2191.     Use ml_get_locked()?  Needed to be able to make a regexp that understands
  2192.     line breaks.
  2193. -    Make a set of operations on list of names: expand wildcards, replace home
  2194.     dir, append a string, delete a string, etc.
  2195. -    Remove mktemp() and use tmpname() only?  Ctags does this.
  2196. -    When replacing environment variables, and there is one that is not set,
  2197.     turn it into an empty string?  Only when expanding options? (Hiebert)
  2198. -    Option to set command to be executed instead of producing a beep (e.g. to
  2199.     call "play newbeep.au").
  2200. -    Add option to show the current function name in the status line.  More or
  2201.     less what you find with "[[k", like how 'cindent' recognizes a function.
  2202.     (Bhatt).
  2203. -    "[r" and "]r": like "p" and "P", but replace instead of insert (esp. for
  2204.     blockwise registers).
  2205. -    Add 'timecheck' option, on by default.    Makes it possible to switch off the
  2206.     timestamp warning and question. (Dodt).
  2207. -    Add an option to set the time after which Vim should check the timestamps
  2208.     of the files.  Only check when an event occurs (e.g., character typed,
  2209.     mouse moved).  Useful for non-GUI versions where keyboard focus isn't
  2210.     noticable.
  2211. 9    When using ":w <fname>" it's possible that this file is loaded in another
  2212.     buffer.  Give a warning right away, don't wait for a shell command.
  2213. -    Add ":first", ":bfirst", etc. to complement ":last", ":blast, etc.
  2214. -    Make 'smartcase' work even though 'ic' isn't set (Webb).
  2215. 7    When formatting text, allow to break the line at a number of characters.
  2216.     Use an option for this: 'breakchars'?  Useful for formatting Fortran code.
  2217. -    Add flag to 'formatoptions' to be able to format book-style paragraphs
  2218.     (first line of paragraph has larger indent, no empty lines between
  2219.     paragraphs).  Complements the '2' flag.  Use '>' flag when larger indent
  2220.     starts a new paragraph, use '<' flag when smaller indent starts a new
  2221.     paragraph.    Both start a new paragraph on any indent change.
  2222. -    Be able to redefine where a sentence stops.  Use a regexp pattern?
  2223. -    Be able to redefine where a paragraph starts.  For "[[" where the '{' is
  2224.     not in column 1.
  2225. 8    Add $CDPATH patch from Raf?  Change it a little: Add 'cdpath' option,
  2226.     which is filled from $CDPATH.  "." is dir of current file, "" is current
  2227.     directory.  Suggestion in docs to change it when it's wrong:
  2228.         let &cdpath=substitute(substitute($CDPATH,',','\\,','g'),':',',','g')
  2229. 8    Use a current directory per window?  See patches from Chen.  Does a
  2230.     "chdir" when switching to another window.  ":lcd" and ":lchdir" only work
  2231.     for the current window, ":cd" for all windows.
  2232.     Check: How do we know if a window uses the global dir or its own?
  2233.     Optional: Make the current directory equal to the file that is currently
  2234.     being edited.
  2235. 8    ":cd": echo the new current directory.
  2236. 6    Add ":cdprev": go back to the previous directory.  Need to remember a
  2237.     stack of previous directories.  We also need ":cdnext".
  2238. 7    Should ":cd" for MS-DOS go to $HOME, when it's defined?
  2239. -    Make "gq<CR>" work on the last line in the file.  Maybe for every operator?
  2240. 8    findmatchlimit() should be able to skip comments.  Solves problem of
  2241.     matching the '{' in /* if (foo) { */ (Fiveash)
  2242. -    findmatch() should be adjusted for Lisp.  See remark at get_lisp_indent().
  2243. -    Add more redirecting of Ex commands:
  2244.         :redir @> register    (append)
  2245.         :redir #  bufname
  2246.         :redir #> bufname    (append)
  2247.         :redir =  variable
  2248.         :redir => variable    (append)
  2249. -    Setting of options, specifically for a buffer or window, with
  2250.     ":set window.option" or ":set buffer.option=val".  Or use ":buffer.set".
  2251.     Also: "buffer.map <F1> quit".
  2252. -    Add :delcr command:
  2253.                             *:delcr*
  2254.      :[range]delcr[!]    Check [range] lines (default: whole buffer) for lines
  2255.                         ending in <CR>.  If all lines end in <CR>, or [!] is
  2256.                         used, remove the <CR> at the end of lines in [range].
  2257.                         A CTRL-Z at the end of the file is removed.  If
  2258.                         [range] is omitted, or it is the whole file, and all
  2259.                         lines end in <CR> 'textmode' is set.  {not in Vi}
  2260. -    Should integrate addstar() and file_pat_to_reg_pat().
  2261. -    When working over a serial line with 7 bit characters, remove meta
  2262.     characters from 'isprint'.
  2263. -    Use fchdir() in init_homedir(), like in FullName().
  2264. -    In win_update(), when the GUI is active, always use the scrolling area.
  2265.     Avoid that the last status line is deleted and needs to be redrawn.
  2266. -    That "cTx" fails when the cursor is just after 'x' is Vi compatible, but
  2267.     may not be what you expect.  Add a flag in 'cpoptions' for this?  More
  2268.     general: Add an option to allow "c" to work with a null motion.
  2269. -    Give better error messages by using errno (strerror()).
  2270. -    Give "Usage:" error message when command used with wrong arguments (like
  2271.     Nvi).
  2272. -    Make 'restorescreen' option also work for xterm (and others), replaces the
  2273.     SAVE_XTERM_SCREEN define.
  2274. 7    Support for ":winpos" In xterm: report the current window position.
  2275. -    Give warning message when using ":set t_xx=asdf" for a termcap code that
  2276.     Vim doesn't know about.  Add flag in 'shortmess'?
  2277. 6    Add ":che <file>", list all the include paths which lead to this file.
  2278. -    For a commandline that has several commands (:s, :d, etc.) summarize the
  2279.     changes all together instead of for each command (e.g. for the rot13
  2280.     macro).
  2281. 8    Allow something in 'include' or 'path' to automatically add a file name
  2282.     extension.  For languages that use "include file" to include "file.ext".
  2283. -    Add command like "[I" that also shows the tree of included files.
  2284. -    Add command like ":ts" that shows the output of "[I" and asks for a match
  2285.     to jump to. (Zellner)
  2286. -    ":set sm^L" results in ":set s", because short names of options are also
  2287.     expanded.  Is there a better way to do this?
  2288. -    Add ":@!" command, to ":@" like what ":source!" is to ":source".
  2289. 8    Add ":@:!": repeat last command with forceit set.
  2290. -    Should be possible to write to a device, e.g. ":w! /dev/null".
  2291. -    Add 't_normal': Used whenever t_me, t_se, t_ue or t_Zr is empty.
  2292. -    ":cab map test ^V| je", ":cunab map" doesn't work.    This is vi compatible!
  2293. -    CTRL-W CTRL-E and CTRL-W CTRL-Y should move the current window up or down
  2294.     if it is not the first or last window.
  2295. -    Include-file-search commands should look in the loaded buffer of a file (if
  2296.     there is one) instead of the file itself.
  2297. -    "g CTRL-A" and "g CTRL-X": Increment/decrement alphabetical char
  2298.     (a -> b -> c)?    With flag in 'nrformats'?
  2299. 7    Change 'nrformats' to include the leader for each format.  Example:
  2300.         nrformats=hex:$,binary:b,octal:0
  2301.     Add setting of 'nrformats' to syntax files.
  2302. -    'path' can become very long, don't use NameBuff for expansion.
  2303. -    Allow the use of wildcards in 'path'.
  2304. -    When unhiding a hidden buffer, put the same line at top of the window as
  2305.     the one before hiding it. Or: keep the same relative cursor position (so
  2306.     many percent down the windows).
  2307. -    Make it possible for the 'showbreak' to be displayed at the end of the
  2308.     line.  Use a comma to separate the part at the end and the start of the
  2309.     line?  Highlight the linebreak characters, add flag in 'highlight'.
  2310. -    Some string options should be expanded if they have wildcards, e.g.
  2311.     'dictionary' when it is "*.h".
  2312. -    Use a specific type for number and boolean options, making it possible to
  2313.     change it for specific machines (e.g. when a long is 64 bit).
  2314. -    Add option for <Insert> in replace mode going to normal mode. (Nugent)
  2315. -    Add a next/previous possibility to "[^I" and friends.
  2316. -    Add possibility to change the HOME directory.  Use the directory from the
  2317.     passwd file? (Antwerpen)
  2318. -    When doing "[^I" or "[^D" add position to tag stack.
  2319. -    Add command to put current position to tag stack: ":tpush".
  2320. 8    Add commands to push and pop all or individual options. ":setpush tw",
  2321.     ":setpop tw", ":setpush all".  Maybe pushing/popping all options is
  2322.     sufficient.  ":setflush" resets the option stack?
  2323.     How to handle an aborted mapping?  Remember position in tag stack when
  2324.     mapping starts, restore it when an error aborts the mapping?
  2325. -    When appending to a register, also report the total resulting number of
  2326.     lines.    Or just say "99 more lines yanked", add the "more".
  2327. -    Use a builtin grep command for ":grep"?  Makes it possible to add the
  2328.     column number.
  2329. -    Keep a list of most recently used files for each window, use "[o" to go
  2330.     back (older file) and "]n" to go forward (newer file) (like ^O and ^I for
  2331.     jumps) (Webb). Use ":files" and ":ls" to list the files in history order.
  2332. -    Change ":fixdel" into option 'fixdel', t_del will be adjusted each time
  2333.     t_bs is set? (Webb)
  2334. -    "gc": goto character, move absolute character positions forward, also
  2335.     counting newlines. "gC" goes backwards (Weigert).
  2336. -    When doing CTRL-^, redraw buffer with the same topline (Demirel). Store
  2337.     cursor row and window height to redraw cursor at same percentage of window
  2338.     (Webb).
  2339. -    Besides remembering the last used line number of a file, also remember the
  2340.     column. Use it with CTRL-^ et. al.
  2341. -    When a window resizes, the line with the cursor should stay at the same
  2342.     percentage from the start of the window as it was before.
  2343. -    Check for non-digits when setting a number option (careful when entering
  2344.     hex codes like 0xff).
  2345. -    Add option to make "." redo the "@r" command, instead of the last command
  2346.     executed by it.  Also to make "." redo the whole mapping.  Basically: redo
  2347.     the last TYPED command.
  2348. -    Support URL links for ^X^F in Insert mode, like for "gf".
  2349. -    Add 'wwwpath', used like 'path' for when "gf" used on an URL?
  2350. -    Add ":path" command modifier.  Should work for every command that takes a
  2351.     file name argument, to search for the file name in 'path'.    Use
  2352.     find_file_in_path().
  2353. -    Highlight control characters on the screen: Shows the difference between
  2354.     CTRL-X and "^" followed by "X" (Colon).
  2355. -    Integrate parsing of cmdline command and parsing for expansion.
  2356. -    When inserting a register in Insert mode with CTRL-R, don't insert comment
  2357.     leader when line wraps?
  2358. -    Create a program that can translate a .swp file from any machine into a
  2359.     form usable by Vim on the current machine.
  2360. -    Add ":noro" command: Reset 'ro' flag for all buffers, except ones that have
  2361.     a readonly file. ":noro!" will reset all 'ro' flags.
  2362. -    Add a variant of CTRL-V that stops interpretation of more than one
  2363.     character.    For entering mappings on the command line where a key contains
  2364.     several special characters, e.g. a trailing newline.
  2365. -    The ":@r" commands should take a range and execute the register for each
  2366.     line in the range.
  2367. -    Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
  2368.     the two into a regex for searching. (Ned Konz)
  2369. -    Make '2' option in 'formatoptions' also work inside comments.
  2370. -    Add 's' flag to 'formatoptions': Do not break when inside a string. (Dodt)
  2371. -    Add flag to 'formatoptions' to recognize the change of indent as the start
  2372.     of a new paragraph (for paragraphs without separating empty line, but extra
  2373.     indent for the new paragraph) (Leitner).
  2374. -    When window size changed (with the mouse) and made too small, set it back
  2375.     to the minimal size.
  2376. -    Add "]>" and "[<", shift comment at end of line (command;  /* comment */).
  2377. -    Should not call cursorcmd() for each vgetc() in getcmdline().
  2378. -    Add the ex address '}', next empty line (like the "}" command).
  2379. -    ":split file1 file2" adds two more windows (Webb).
  2380. -    Don't give message "Incomplete last line" when editing binary file.
  2381. -    Add ":a", ":i" for preloading of named buffers.
  2382. -    Allow autowrite when doing ":e file" (with an option 'eaw').
  2383. -    Allow a "+command" argument before each file name in the Vim command line:
  2384.     "vim +123 file1 +234 file2 +345 file3". ???
  2385. -    When entering text, keep other windows on same buffer updated (when a line
  2386.     entered)?
  2387. -    Check out how screen does output optimizing.  Apparently this is possible
  2388.     as an output filter.
  2389. -    When setting the window title, check 'hs' and use minimum of 'ws' (if
  2390.     present) and Columns to truncate the title.
  2391. -    In dosub() regexec is called twice for the same line. Try to avoid this.
  2392. -    Window updating from memline.c: insert/delete/replace line.
  2393. -    Optimize ml_append() for speed, esp. for reading a file.
  2394. -    V..c should keep indent when 'ai' is set, just like [count]cc.
  2395. -    Updatescript() can be done faster with a string instead of a char.
  2396. -    Screen updating is inefficient with CTRL-F and CTRL-B when there are long
  2397.     lines.
  2398. -    Uppercase characters in ex commands can be made lowercase?
  2399. -    Add "P" command to insert contents of unnamed register, move selected text
  2400.         to position of previous deleted (to swap foo and bar in " + foo")
  2401. -    Add word count to "g CTRL-G".
  2402. 8    Add option to show characters in text not as "|A" but as decimal ("^129"),
  2403.     hex ("\x81") or octal ("\201") or meta (M-x).  Nvi has the 'octal' option
  2404.     to switch from hex to octal.  Vile can show unprintable characters in hex
  2405.     or in octal.
  2406. 7    Tighter integration with xxd to edit binary files.  Make it more
  2407.     easy/obvious to use.  Command line argument?
  2408. -    How does vi detect whether a filter has messed up the screen? Check source.
  2409.     After ":w !command" a wait_return?
  2410. -    Improve screen updating code for doput() (use s_ins()).
  2411. -    With 'p' command on last line: scroll screen up (also for terminals without
  2412.     insert line command).
  2413. -    Use insert/delete char when terminal supports it.
  2414. -    Optimize screen redraw for slow terminals.
  2415. -    Optimize "dw" for long row of spaces (say, 30000).
  2416. -    Add "-d null" for editing from a script file without displaying.
  2417. -    In Insert mode: Remember the characters that were removed with backspace
  2418.     and re-insert them one at a time with <key1>, all together with <key2>.
  2419. -    Amiga: Add possibility to set a keymap. The code in amiga.c does not work
  2420.     yet.
  2421. -    Implement 'redraw' option.
  2422. -    Add special code to 'sections' option to define something else but '{' or
  2423.     '}' as the start of a section (e.g. one shiftwidth to the right).
  2424. -    Add 'indent' option: Always use this amount of indent when starting a new
  2425.     line and when formatting text.
  2426. -    Use pipes for filtering on Unix.
  2427. 7    Allow using Vim in a pipe: "ls | vim -u xxx.vim - | yyy".  Only needs
  2428.     implementing ":w" to stdout in the buffer that was read from stdin.
  2429. -    Allow for +command and -option on any position in argv[].
  2430. -    Add commands like ]] and [[ that do not include the line jumped to.
  2431. -    When :unab without matching "from" part and several matching "to" parts,
  2432.     delete the entry that was used last, instead of the first in the list.
  2433. -    Add text justification option.
  2434. -    Add put function that replaces the text under it.
  2435. -    Set boolean options on/off with ":set paste=off", ":set paste=on".
  2436. -    After "inv"ing an option show the value: ":set invpaste" gives "paste is
  2437.     off".
  2438. -    Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
  2439. -    When a file cannot be opened but does exist, give error message.
  2440. -    Amiga: When 'r' protection bit is not set, file can still be opened but
  2441.     gives read errors. Check protection before opening.
  2442. -    When writing check for file exists but no permission, "Permission denied".
  2443. -    If file does not exists, check if directory exists.
  2444. -    MSDOS: although t_cv and t_ci are not set, do invert char under cursor.
  2445. -    Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex
  2446.     commands.
  2447. -    ":set -w all": list one option per line.
  2448. -    When writing to a not writable file (with ":w!") ask for permission to
  2449.     overwrite it (if file can be made writable) and restore file to readonly
  2450.     afterwards.
  2451. -    Amiga: test for 'w' flag when reading a file.
  2452. -    :table command (Webb)
  2453. -    Add command to go to last non-blank in line (like 0 vs. ^, $ vs. ???)
  2454. -    Add new operator: clear, make area white (replace with spaces): "gb".
  2455. -    Make it possible for a user to define a new operator.  Implementation with
  2456.     internal scripting language or Perl?
  2457. -    Add command to ":read" a file at a certain column (blockwise read?).
  2458. -    For "%" command: set hierarchy for which things include other things that
  2459.     should be ignored (like "*/" or "#endif" inside /* */).
  2460.     Also: use "%" to jump from start to end of syntax region and back.
  2461. -    Add 'resizecmd' option: vi command to be executed when window is resized.
  2462. -    Add sort of replace mode where case is taken from the old text (Goldfarb).
  2463. -    Allow multiple arguments for ":read", read all the files.
  2464. -    Support for tabs in specific columns: ":set tabcol=8,20,34,56" (Demirel).
  2465. -    Add 'searchdir' option: Directories to search for file name being edited
  2466.     (Demirel).
  2467. -    Modifier for the put command: Change to linewise, charwise, blockwise, etc.
  2468. -    Add commands for saving and restoring options ":set save" "set restore",
  2469.     for use in macro's and the like.
  2470. -    Keep output from listings in a window, so you can have a look at it while
  2471.     working in another window. Put cmdline in a separate window?
  2472. -    Add possibility to put output of ex commands in a buffer or file, e.g. for
  2473.     ":set all".  ":r :set all"?
  2474. -    'edit' option: When off changing the buffer is not possible (Really
  2475.     read-only mode).
  2476. -    When the 'equalalways' option is set, creating a new window should not
  2477.     result in windows to become bigger. Deleting a window should not result in
  2478.     a window to become smaller (Webb).
  2479. -    When resizing the whole Vim window, the windows inside should be resized
  2480.     proportionally (Webb).
  2481. -    Include options directly in option table, no indirect pointers. Use
  2482.     mkopttab to make option table?
  2483. -    When doing ":w dir", where "dir" is a directory name, write the current
  2484.     file into that directory, with the current file name (without the path)?
  2485. -    Support for 'dictionary's that are sorted, makes access a lot faster
  2486.     (Haritsis).
  2487. -    Add "^Vrx" on the command line, replace with contents of register x. Used
  2488.     instead of CTRL-R to make repeating possible. (Marinichev)
  2489. -    Add "^Vb" on the command line, replace with word before or under the
  2490.     cursor?
  2491. -    Option to make a .swp file only when a change is made (Templeton).
  2492. -    Support mapping for replace mode and "r" command (Vi doesn't do this)?
  2493. -    In an Ex range, use '{ for start of paragraph, '} for end of paragraph,
  2494.     '(, '), etc.?  See patches from Brugnara.  Use "=p" for current paragraph.
  2495. 5    Add 'ignorefilecase' option: Ignore case when expanding file names.
  2496.     ":e ma<Tab>" would also find "Makefile" on Unix.
  2497.  
  2498.  
  2499. From Elvis:
  2500. -    Use "instman.sh" to install manpages?
  2501. -    Add ":alias" command.
  2502. -    fontchanges recognized "\\fB" etc.
  2503. -    Search patterns:
  2504.       \=        match empty string, leave cursor here.
  2505.       \@        match word under cursor.
  2506.     but do:
  2507.       \@        leave the cursor "at" this position
  2508.       \w        match the word under the cursor?
  2509.       \W        match the WORD under the cursor?
  2510. 8    ":window" command:
  2511.     :win +        next window (up)
  2512.     :win ++        idem, wrapping
  2513.     :win -        previous window (down)
  2514.     :win --        idem, wrapping
  2515.     :win nr        to window number "nr"
  2516.     :win name    to window editing buffer "name"
  2517. 7    ":cc" compiles a single file (default: current one).  'ccprg'    option is
  2518.     program to use with ":cc".  Use ":compile" instead of ":cc"?
  2519.  
  2520.  
  2521. From Nvi:
  2522. -    'cdpath' option.
  2523. -    'searchincr' option, alias for 'incsearch'?
  2524. -    'leftright' option, alias for 'nowrap'?
  2525. -    Have a look at "vi/doc/vi.chart", for Nvi specialities.
  2526. 8    Add 'keytime', time in 1/10 sec for mapping timeout?
  2527. -    Add 'filec' option as an alternative for 'wildchar'.
  2528. 8    Lock a file when starting to edit it with flock() or fcntl().  Also see
  2529.     patch from Kahn: ~/vim/patches/kahn_file_locking .
  2530. 6    Support Nvi command names as an alias:
  2531.     :bg                :hide
  2532.     :fg    fname        :buf fname (with 'hidden' set?)
  2533.     :dis b            :ls
  2534.     :Edit fname        :split fname
  2535.     :Fg fname        :sbuf fname (with 'hidden' set?)
  2536.     :Next            :snext (can't do this, already use :Next)
  2537.     :Previous        :sprevious
  2538.     :Tag            :stag
  2539.  
  2540.  
  2541. From xvim:
  2542. -    Use '\' before commands to make them linewise.
  2543.  
  2544.  
  2545. From xvi:
  2546. -    CTRL-_ : swap 8th bit of character.
  2547. -    Add egrep-like regex type, like xvi (Ned Konz) or Perl (Emmanuel Mogenet)
  2548.  
  2549.  
  2550. From vile:
  2551. -    When horizontal scrolling, use '<' and '>' for lines continuing outside of
  2552.     window.
  2553. -    Support putting .swp files in /tmp: Command in rc.local to move .swp files
  2554.     from /tmp to some directory before deleting files.
  2555.  
  2556.  
  2557. Far future and "big" extentions:
  2558. -    Make it possible to run Vim inside a window of another program.  For
  2559.     Xwindows this can be done with XReparentWindow().
  2560. -    Make it easy to setup Vim for groups of users: novice vi users, novice
  2561.     Vim users, C programmers, xterm users, GUI users,...
  2562. -    Add a mode to only view text.  Like Less, but with syntax highlighting
  2563.     etc.
  2564. -    Add some way to display manpages, with tags highlighted to jump to
  2565.     locations in the same or other manpages.  Requires generating a tags file
  2566.     for manpages.
  2567. -    Change layout of blocks in swap file: Text at the start, with '\n' in
  2568.     between lines (just load the file without changes, except for Mac).
  2569.     Indexes for lines are from the end of the block backwards.  It's the
  2570.     current layout mirrored.
  2571. -    Make it possible to edit a register, in a window, like a buffer.
  2572. -    Add stuff to syntax highlighting to change the text (upper-case keywords,
  2573.     set indent, define other highlighting, etc.).
  2574. -    Mode to keep C-code formatted all the time (sort of on-line indent).
  2575. -    Several top-level windows in one Vim session.  Be able to use a different
  2576.     font in each top-level window.
  2577. -    Allow editing beyond end of line, just like there are all spaces. Switch
  2578.     this on with an option or special Insert mode command. Also allow editing
  2579.     above start and below end of buffer.
  2580. -    Smart cut/paste: recognize words and adjust spaces before/after them.
  2581. -    Mode to keep text formatted while inserting/deleting.  Use soft/hard
  2582.     returns with an option to switch this off. (CR-LF can be used for Unix as
  2583.     a soft return).
  2584. -    Add column numbers to ":" commands ":line1,line2[col1,col2]cmd".  Block
  2585.     can be selected with CTRL-V.  Allow '$' (end of line) for col2.
  2586. -    Add open mode, use it when terminal has no cursor positioning.
  2587. -    Special "drawing mode": a line is drawn where the cursor is moved to.
  2588.     Backspace deletes along the line (from jvim).
  2589. -    Perform commands on multiple windows (:W%s/foo/bar/g), multiple arguments
  2590.     (:A) or multiple buffers (:B). Implement ":Bset", set option in all
  2591.     buffers.  Also ":Wset", set in all windows, ":Aset, set in all arguments
  2592.     and ":Tset", set in all files mentioned in the tags file.  Add buffer/arg
  2593.     range, like in ":2,5B%s/..." (do we really need this???) Add search
  2594.     string: "B/*.c/%s/.."?  Or ":F/*.c/%s/.."?
  2595. -    Support for underlining (underscore-BS-char), bold (char-BS-char) and other
  2596.     standout modes switched on/off with , 'overstrike' option (Reiter).
  2597. -    Add vertical mode (Paul Jury, Demirel): "5vdw" deletes a word in five
  2598.     lines, "3vitextESC" will insert "text" in three lines, etc..
  2599. 4    Recognize l, #, p as 'flags' to EX commands:
  2600.     :g/RE/#l shall print lines with line numbers and in list format.
  2601.     :g/RE/dp shall print lines that are deleted.
  2602.     POSIX: Commands where flags shall apply to all lines written: list,
  2603.     number, open, print, substitute, visual, &, z. For other commands, flags
  2604.     shall apply to the current line after the command completes.  Examples:
  2605.     :7,10j #l Join the lines 7-10 and print the result in list
  2606.  
  2607. -------------------- *votes-for-changes* -----------------------
  2608.  
  2609. In November 1998 an inquiry was held to allow Vim users to vote for changes to
  2610. Vim.  Each person was allowed to give 10 positive and 5 negative points to a
  2611. list of items.  Below is the result.  This indicates the desire of users for
  2612. certain changes.  This will be taken into account when deciding what to do
  2613. next from the huge list above.
  2614.  
  2615. The first number is the total number of votes.  The number in brackets is the
  2616. portion of the total which were negative points.
  2617.  
  2618. 317  (-5)   add folding (display only a selected part of the text)
  2619. 252  (-10)  vertically split windows (side-by-side)
  2620. 197  (-3)   add configurable auto-indenting for many languages (like 'cindent')
  2621. 183  (-5)   fix all problems, big and small; make Vim more robust
  2622. 155  (-8)   add Perl compatible search pattern
  2623. 125  (-1)   search patterns that cross line boundaries
  2624. 125  (-1)   improve syntax highlighting speed
  2625. 116         improve syntax highlighting functionality
  2626. 101         add a menu that lists all buffers
  2627. 93   (-1)   improve the overall performance
  2628. 93   (-6)   multiple top-level windows for one running Vim
  2629. 90   (-4)   be able to edit the command line with Vi commands
  2630. 90   (-36)  add a shell window (to type and execute shell commands in)
  2631. 83          add patterns to define sections/paragraphs for "{", "[[", "%", etc.
  2632. 81          improve Visual block mode: more commands that work on blocks
  2633. 71   (-13)  reduce the size of the executable and the runtime memory use
  2634. 70   (-5)   improve the on-line help
  2635. 68          improve "gq" formatting of text (left&right justified, 'comments')
  2636. 68   (-2)   improve multi-byte character support
  2637. 59   (-8)   improve the Visual Studio interface (VisVim)
  2638. 59   (-12)  make it possible to run Vim inside a window of another program
  2639. 58   (-11)  add an undo tree (be able to go back to any previous situation)
  2640. 57   (-9)   add support for loading a shared library that defines new commands
  2641. 54   (-1)   add a way to execute a command in multiple buffers/windows
  2642. 52          improve the Perl interface
  2643. 51   (-10)  improve printing from gvim (File.Print menu entry)
  2644. 50   (-20)  make a "Vim lite" version, which is small and low on features
  2645. 47          add a method to repeat a prev. executed change ("c.", "d.", etc.)
  2646. 44   (-8)   add more features to the internal scripting language
  2647. 37          add a command to repeat a whole mapping (not only its last change)
  2648. 37   (-2)   add better support for editing files in projects (with ID utils)
  2649. 33   (-3)   add handling for buffer-changed outside of Vim (when reg. focus)
  2650. 28          improve Insert mode completion
  2651. 28   (-14)  add persistent undo (undo to before the file was saved/loaded)
  2652. 25          improve command line completion
  2653. 23   (-30)  be able to run a program in a Vim window, with an interface to it
  2654. 22          improve the quickfix commands
  2655. 21   (-1)   add mappings and abbreviations local to a buffer
  2656. 21   (-6)   add a special window for editing option values, with short docs
  2657. 19   (-4)   add file locking
  2658. 18   (-1)   add a way to disable (error) messages for a moment
  2659. 17   (-5)   add encryption for loading/storing files and for the swapfile
  2660. 10          improve the port for MacOS X Server aka Rhapsody
  2661. 10          add Qt interface
  2662. 10   (-1)   add scope arguments to the ":tag" command (like Elvis)
  2663. 9    (-3)   improve the tutor (course for beginners)
  2664. 8           improve the port for OS/2
  2665. 8    (-1)   add a stack for saving/restoring options
  2666. 8    (-3)   improve 'viminfo' (keeping information when quitting Vim)
  2667. 8    (-6)   improve the performance of Vim scripts (pre-parse them)
  2668. 7    (-2)   add more autocommand events (for ":cd", start Insert mode, etc.)
  2669. 6    (-4)   improve the TCL interface
  2670. 6    (-4)   add option to move the cursor where there is no text in Visual mode
  2671. 5           improve the port for MacOS
  2672. 4           improve the port for GTK
  2673. 4           add Diff, Merge capability with CVS like in emacs.
  2674. 4    (-5)   add option not to move the cursor when using a scrollbar
  2675. 4    (-8)   add POSIX compatible search patterns
  2676. 3           improve the port for X Window (use GTK, or Athena)
  2677. 3    (-2)   improve the Cscope interface
  2678. 3    (-14)  add option to move the cursor where there is no text in any mode
  2679. 2           add support for Borland Delphi (to replace borland's def. editor)
  2680. 2           add on-the-fly paragraph formatting / word wraps
  2681. 1           improve the port for "EPOC 32"
  2682. 1           add GUI to record/stop/play a keystroke macro
  2683. 0    (-2)   improve ":mksession" support (switch to a previously saved state)
  2684. -1   (-1)   improve the port for * (fill in a system name at the *. E.g. VMS")
  2685. -4   (-77)  add more GUI functions (requesters, menus, dialogs)
  2686. -10  (-14)  add "open" mode, like the original Vi
  2687. -10  (-15)  improve the OLE interface
  2688. -10  (-17)  improve compatibility of the Ex mode
  2689. -12  (-89)  add on-the-fly spell checking
  2690. -13  (-24)  reduce the size of the distribution (harddisk usage)
  2691. -13  (-32)  improve Vi compatibility
  2692. -25  (-38)  add a lot of small features, instead of a few big ones
  2693. -47  (-53)  improve the 16 bit DOS version (avoid out-of-memory problems)
  2694. -81  (-123) improve gvim to fit in the MS-Windows look&feel (with an option)
  2695. -110 (-136) stop changing Vim, it's fine as it is
  2696. -117 (-122) remove functionality, there is too much of it
  2697.  
  2698. vim:tw=78:sw=4:ts=4:
  2699. 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?
  2700.