vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

todo.txt (306549B)


      1 *todo.txt*	For Vim version 9.2.  Last change: 2026 Sep 30
      2 
      3 
      4 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
      5 
      6 
      7 			      TODO list for Vim		*todo*
      8 
      9 This is a veeeery long list of known bugs, current work and desired
     10 improvements.  To make it a little bit accessible, the older items are grouped
     11 by subject.  In the first column of the line a classification is used to be
     12 able 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 See |develop.txt| for development plans.
     27 
     28 Issues can also be entered online: https://github.com/vim/vim/issues
     29 Only use this for bug reports, not for questions!  Those belong on the
     30 maillist.  Updates will be forwarded to the |vim_dev| maillist.  Issues
     31 entered there will not be repeated below, unless there is extra information.
     32 
     33 The #1234 numbers refer to an issue or pull request on github.  To see it in a
     34 browser use: https://github.com/vim/vim/issues/1234
     35 (replace 1234 with the issue/pull number)
     36 							*known-bugs*
     37 -------------------- Known bugs and current work -----------------------
     38 
     39 When a help item can't be found, then open 'helpfile'.  Search for the tag in
     40 that file and gtive E149 only when not found.  Helps for a tiny Vim installed
     41 without all the help files.
     42 
     43 Errors when running tests with valgrind:
     44 - test_gui.vim:
     45     Found errors in Test_gui_mouse_event():
     46 
     47 Upcoming larger works:
     48 - Make spell checking work with recent .dic/.aff files, e.g. French.  #4916
     49     Make Vim understand the format somehow?   Search for "spell" below.
     50     Make sure suggestions are speedy, also with composed words (German).
     51 - Make syntax highlighting faster and better.
     52   Add a generic mechanism to test a syntax plugin: An input file for the
     53   filetype and a screendump of expected result.  With a way to specify the
     54   setup (global variables) and another dump file from that.
     55   Discuss alternatives for using other grammars (treesitter, TextMate).
     56    - Possibly conversion to Vim syntax rules.
     57    - Other mechanism than group and cluster to nest syntax items, to be used
     58      for grammars.
     59    - Possibly keeping the parsed syntax tree and incremental updates.
     60    - tree-sitter doesn't handle incorrect syntax (while typing) properly.
     61    - NeoVim uses treesitter, what can we learn from that?
     62    - Vscode is asked to switch to treesitter:
     63       https://github.com/microsoft/vscode/issues/50140
     64    - Vscode uses TextMate.  #9087 - Other people don't like it.
     65       https://github.com/icedman/vim-textmate
     66    - sublime grammar?  Hugo mentions it's a moving target  #9087
     67    - Make clear how it relates to LSP.
     68    - example plugin: https://github.com/uga-rosa/dps-vsctm.vim
     69 
     70 
     71 Further Vim9 improvements:
     72 - Classes and Interfaces. See |vim9-classes|
     73   - Getting member of variable with "any" type should be handled at runtime.
     74     Remove temporary solution from #12096 / patch 9.0.1375.
     75   - "obj.Method()" does not always work in a compiled function, assumes "obj"
     76     is a dictionary.  #12196  Issue #12024 might be the same problem.
     77     Issue #11822: any.Func() can be a dict or an object call, need to handle
     78     this at runtime.  Also see #12198 for an example.
     79     Possibly issue #11981 can be fixed at the same time (has two examples).
     80   - Forward declaration of a class?  E.g. for Clone() function.
     81 	Email lifepillar 2023 Mar 26
     82   - how about lock/unlock?
     83   - For chaining, allow using the class name as type for function return
     84     value.
     85   - Implement "specifies" interface
     86   - Add "assignable" (class or child)?
     87   - More efficient way for interface member index than iterating over list?
     88   - a variant of type() that returns a different type for each class?
     89       list<number> and list<string> should also differ.
     90 - Promise class, could be used to wait on a popup close callback?
     91 - class local to a function
     92 - Use Vim9 for more runtime files.
     93 - Inline call to map() and filter(), better type checking.
     94 - When evaluating constants for script variables, some functions could work:
     95     has(featureName), len(someString)
     96 - Implement as part of an expression: ++expr, --expr, expr++, expr--.
     97 - The use of the literal value "null" and the type specific "null_xxx"
     98   values is confusing (#13433, #11770).
     99 
    100 Information missing in terminfo:
    101 - Codes used for focus gained and lost termcodes are hard-coded in
    102   set_termname(), not named.
    103 - t_fe	enable focus-event tracking
    104 - t_fd	disable focus-event tracking
    105 - Accept "hyper" and "meta" modifiers (16 and 32) from Kitty like Meta?
    106     8 is actually "super".
    107 - t_RV	request terminal version string; xterm:	"\033[>c"
    108     change in terminfo for "RV" uses the wrong escape sequence 7 - 14 Jan only
    109 - Codes for <PasteStart> t_PS and <PasteEnd> t_PE; with bracketed paste:
    110     t_BE and t_BD.
    111 Modifiers for various keys
    112 - flag to indicate "xterm compatible modifiers" ?
    113 Underline and similar:
    114 - t_AU - Set underline color: like "AF" and "AB" entries.
    115 - t_Ce	undercurl and underline end
    116 - t_Cs	undercurl (curly underline) mode
    117 - t_Us	double underline mode
    118 - t_ds	dotted underline mode
    119 - t_Ds	dashed underline mode
    120 - t_Te	strikethrough end
    121 - t_Ts	strikethrough mode
    122 Cursor codes: |termcap-cursor-shape|
    123 - t_RC	request terminal cursor blinking
    124 - t_RS	request terminal cursor style
    125 - t_VS	cursor normally visible (no blink)
    126 - t_SI	start insert mode (bar cursor shape)
    127 - t_SR	start replace mode (underline cursor shape)
    128 - t_EI	end insert or replace mode (block cursor shape)
    129 - t_SC	set cursor color start
    130 - t_EC	set cursor color end
    131 - t_SH	set cursor shape
    132 State requests:
    133 - t_RF	request terminal foreground color
    134 - t_RB	request terminal background color
    135 Less important (not needed for regular editing):
    136 - t_IS	set icon text start
    137 - t_IE	set icon text end
    138 - t_ST	save window title to stack
    139 - t_RT	restore window title from stack
    140 - t_Si	save icon text to stack
    141 - t_Ri	restore icon text from stack
    142 - t_WP	set window position (Y, X) in pixels
    143 - t_GP	get window position (Y, X) in pixels
    144 - t_WS	set window size (height, width in cells)
    145 Vim internal, but there should be a terminfo entry for these:
    146 - t_8f	set foreground color (R, G, B) in printf() format
    147 - t_8b	set background color (R, G, B) in printf() format
    148 - t_8u	set underline color (R, G, B) in printf() format
    149 Probably Vim internal, not in terminfo:
    150 - t_TE	end of "raw" mode
    151 - t_TI	put terminal into "raw" mode
    152 - t_RK	request terminal keyboard protocol state; sent after |t_TI|
    153 Already working, not properly documented:
    154 - t_u7	request cursor position
    155 
    156 Popup windows:
    157 - Add a function to redraw a specific popup window.  Esp. to be used when
    158   editing the command line, when screen updating doesn't happen. (Shougo)
    159   #10210  Example that shows the need on the issue.
    160   Probably need to update all popup windows (they may overlap)
    161   If the display is scrolled need to redraw everything later.
    162 - Add a flag to make a popup window focusable?
    163     CTRL-W P cycle over any preview window or focusable popup, end up back in
    164 	     current window.
    165     ? - switch between current window and all popup windows
    166     Esc in popup window goes back to previous current window
    167 - Add a termcap entry for changing the cursor when it goes under the popup and
    168   back.  like t_SI and t_EI  (t_SU and t_EU, where "U" means under?)
    169 - With terminal in popup, allow for popup_hide() to temporarily hide it.?
    170 - Make it possible to scroll horizontally when 'wrap' is off.  Does this
    171   require an ascii scrollbar, like with the vertical one?
    172 - Fire some autocommand event after a new popup window was created and
    173   positioned?  PopupNew?  Could be used to set some options or move it out of
    174   the way. (#5737)
    175   However, it may also cause trouble, changing the popup of another plugin.
    176 - Add a way to use popup_menu() synchronously: instead of invoking the
    177   callback, return the choice. (Ben Jackson, #6534)
    178 - Implement flip option.
    179 - Make redrawing more efficient and avoid flicker:
    180     - put popup menu also in popup_mask?
    181 - Match does not have right BG color if line length equals popup width.
    182   (#5658)
    183 - Figure out the size and position better if wrapping inserts indent
    184 
    185 'incsearch' with :s:
    186 - :s/foo  using CTRL-G moves to another line, should not happen, or use the
    187   correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345)
    188 - Also support range: :/foo/,/bar/delete
    189 - Also support for user command, e.g. Cfilter
    190 - :%s/foo should take the first match below the cursor line, unless there
    191   isn't one?
    192   Then :%s?foo should take the first match above the cursor line.
    193 
    194 Prompt buffer:
    195 - Add a command line history, using up/down keys.  issue #5010
    196 - delay next prompt until plugin gives OK?
    197 - add prompt_addtext({buf}, {expr})	none	add text to a prompt buffer
    198 
    199 Terminal debugger:
    200 - Add a mechanism for configuration.  Instead of several global variables use
    201   a dictionary.  Use callbacks for some things, e.g. opening a debug window in
    202   a certain position.
    203 - Make prompt-buffer variant work better.
    204 - Add option to not open the program window.  It's not used when attaching to
    205   an already running program. (M. Kelly)
    206 - Use the optional token on requests, match the result with it. #10300
    207 - When only gdb window exists, on "quit" edit another buffer.
    208 - Termdebug does not work when Vim was built with mzscheme: gdb hangs just
    209   after "run".  Everything else works, including communication channel.  Not
    210   initializing mzscheme avoid the problem, thus it's not some #ifdef.
    211 - Add support for lldb?  issue #3565
    212 - Could we do something similar for debugging Vim scripts?  At least see the
    213   script while stepping through it.  Simple version would use an extra window.
    214   More complete solution would actually run Vim in a Terminal and control it
    215   with another Vim instance.
    216 
    217 Terminal emulator window:
    218 - Can escape a terminal popup with win_gotoid(), should be an error
    219 - No support for underline color, t_8u.
    220 - When in terminal-Normal mode when the job finishes, the cursor jumps to the
    221   end but the window is not updated.  This only happens when typing "a".
    222       :term bash -c "for V in {0..5}; do echo $V; sleep 1; done"
    223 - GUI: cursor color is not updated when going to Terminal-Job mode.  #12328
    224 - GUI: cursor color is not updated when switching between tabs with a key.
    225   #12329
    226 - GUI: cursor color is not updated when switching between tabs with a mouse
    227   click.  #12330
    228 - When started with ":terminal ++close" and the shell exits but there is a
    229   background process, the window remains open, because the channel still
    230   exists (and output still shows).  Perhaps close the window when an explicit
    231   ++close was used? (#5931)
    232 - Using "CTRL-W :confirm quite" and selecting "yes" should work like ":quit!".
    233     (Harm te Hennepe, #6129)
    234 - When the job in the terminal doesn't use mouse events, let the scroll wheel
    235   scroll the scrollback, like a terminal does at the shell prompt. #2490
    236   A bit like using CTRL-W N first.
    237   Jump back like with "a" when any key is typed.
    238   And use modeless selection.  #2962
    239 - Use CTRL-W CTRL-K to enter a digraph? #5371
    240 - When Vim runs in the terminal and changes the title, the statusline needs to
    241   be redrawn.
    242 - Allow for specifying the directory, with ++cwd={dir}.
    243 - When pasting should call vterm_keyboard_start_paste(), e.g. when using
    244   K_MIDDLEMOUSE, calling insert_reg().
    245 - Users expect parsing the :term argument like a shell does, also support
    246   single quotes.  E.g. with:  :term grep 'alice says "hello"'  (#1999)
    247 - Win32: Redirecting input does not work, half of Test_terminal_redir_file()
    248   is disabled.
    249 - Win32: Redirecting output works but includes escape sequences.
    250 - Win32: Make terminal used for :!cmd in the GUI work better.  Allow for
    251   redirection.
    252 - When the job only outputs lines, we could handle resizing the terminal
    253   better: store lines separated by line breaks, instead of screen lines,
    254   then when the window is resized redraw those lines.
    255 - Redrawing is slow with Motif. (Ramel Eshed)
    256 - For the GUI fill termios with default values, perhaps like pangoterm:
    257   (dead link)
    258   bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134
    259 - When 'encoding' is not utf-8, or the job is using another encoding, setup
    260   conversions.
    261 
    262 GUI Scroll test fails on FreeBSD when using Motif.  See FIXME in
    263 Test_scrollbars in src/test_gui.vim
    264 
    265 Remote command escapes single quote with backslash, should be doubling the
    266 single quote in vim_strsave_escaped_ext()  #12202.
    267 
    268 Can deref_func_name() and deref_function_name() be merged?
    269 
    270 Using :global with a pattern containing \zs doesn't use the line where \zs
    271 matches but the start of the pattern.  #3695  If there is a useful application
    272 for this, it can be made to work by changing the call to ml_setmarked():
    273 		ml_setmarked(lnum + regmatch.startpos[0].lnum);
    274 
    275 After patch 8.2.4915 w_botline is computed much more often. Can this be
    276 reduced?
    277 
    278 When 'delcombine' is set a put after "x" includes the base character and all
    279 combining characters. (Ron Aaron, 2023 Apr 10)
    280 
    281 Add BufDeletePost.  #11041
    282 
    283 'switchbuf' set to "newtab" does not work for ":cfirst" when in the quickfix
    284 window.  #12436
    285 
    286 When :argument has a non-number argument, use it like :buffer to find the
    287 argument by name.  #12272
    288 
    289 Fold unexpectedly closed when inserting fold marker with CTRL-V (Issue #12320)
    290 
    291 Can we make 'noendofline' and 'endoffile' visible?  Should show by default,
    292 since it's an unusual situation.
    293 - Show 'noendofline' when it would be used for writing ('fileformat' "dos")
    294   with an upside down exclamation mark?  NonText highlighting.
    295 - Show 'endoffile' when it would be used for writing ('fileformat' "dos") with
    296   "CTRL-Z", NonText highlighting.
    297 - Add 'fillchars' items to change this, default behavior like:
    298 	noeol:ยก
    299 	eof:CTRL-Z
    300 
    301 PR #11860: Add more info to 'colorcolumn': display a character and highlight
    302 for each separate entry.  Disadvantage: option value gets very complicated
    303 with multiple entries, e.g. every 8 columns.
    304 
    305 Stray characters in the shell #11719, caused by requesting a response for:
    306 - XT key sequences
    307 - Whether modifyOtherKeys is active
    308 - Whether kitty keyboard protocol is active
    309 Can we not request XT key sequences, or reduce them drastically?
    310 
    311 Add some kind of ":whathappend" command and functions to make visible what the
    312 last few typed keys and executed commands are.  To be used when the user
    313 wonders what went wrong.  Could also be used for statistics #12046.
    314 - typed keys - Normal mode command - like what is recorded in a register and
    315   displayed by 'showcmd'.
    316 - register used - #12063
    317 - executed command lines
    318 - with more verbosity: what scripts/functions/autocommands were executed
    319 
    320 Is there a way to make 'autowriteall' make a clean exit when the xterm is
    321 closed? (Dennis Nazic says files are preserved, okt 28).  Perhaps handle TERM
    322 like HUP?
    323 
    324 Better terminal emulator support:
    325   > Somehow request the terminfo entry from the terminal itself.  The $TERM
    326     value then is only relevant for whether this feature is supported or not.
    327     Replaces the xterm mechanism to request each entry separately. #6609
    328     Multiplexers (screen, tmux) can request it to the underlying terminal, and
    329     pass it on with modifications.
    330     How to get all the text quickly (also over ssh)? Can we use a side channel?
    331   > When xterm supports sending an Escape sequence for the Esc key, should
    332     have a way to request this state.  That could be an XTGETTCAP entry, e.g.
    333     "k!".  Add "esc_sends_sequence" flag.
    334     If we know this state, then do not pretend going out of Insert mode in
    335     vgetorpeek(), where kitty_protocol_state is checked.
    336   > If a response ends up in a shell command, one way to avoid this is by
    337     sending t_RV last and delay starting a shell command until the response
    338     has been seen.
    339   > Can we use the req_more_codes_from_term() mechanism with more terminals?
    340     Should we repeat it after executing a shell command?
    341     Can also add this to the 'keyprotocol' option: "mok2+tcap"
    342   > In the table of terminal names pointing to the list of termcap entries,
    343     add an optional additional one.  So that "xterm-kitty" can first load
    344     "xterm" and then add "kitty" entries.
    345 
    346 In a timer callback, when using ":echo" and then input() the message is
    347 overwritten.  Could use ":echowin" and call redraw_cmd() in get_user_input().
    348 #11299
    349 
    350 To avoid flicker: add an option that when a screen clear is requested, instead
    351 of clearing it draws everything and uses "clear to end of line" for every line.
    352 Resetting 't_ut' already causes this?
    353 
    354 Instead of prefixing "INTERNAL" to internal messages, add a message in iemsg()
    355 and siemsg() and translate it.  Messages only given to them don't need
    356 translation.
    357 
    358 When scheme can't be found by configure there is no clear "not found" message:
    359     configure:5769: checking MzScheme install prefix
    360     configure:5781: result:
    361 
    362 Can "CSI nr X" be used instead of outputting spaces?  Is it faster?  #8002
    363 
    364 Typed keys invisible after calling interrupt() from a timer. #10631
    365 
    366 With a window height of 6 and 'scrolloff' set to 3, using "j" does not scroll
    367 evenly. (#10545)  Need to handle this in scroll_cursor_bot().
    368 
    369 Idea: when typing ":e /some/dir/" and "dir" does not exist, highlight in red.
    370 
    371 ":set shellpipe&" and ":set shellredir&" should use the logic from
    372 initialization to figure out the default value from 'shell'.  Add a test for
    373 this.
    374 
    375 With concealed text mouse click doesn't put the cursor in the right position.
    376 (Herb Sitz)  Fix by Christian Brabandt, 2011 Jun 16.  Doesn't work properly,
    377 need to make the change in where RET_WIN_BUF_CHARTABSIZE() is called.
    378 IDEA: when drawing the text, store the text byte index in ScreenLinesIdx[].
    379 When converting screen column to text position use this.
    380 The line number can be obtained from win->w_lines[].
    381 
    382 test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
    383 
    384 Can we add highlighting to ":echowindow"?
    385 
    386 Information for a specific terminal (e.g. gnome, tmux, konsole, alacritty) is
    387 spread out.  Make a section with copy/paste examples of script and pointers to
    388 more information.
    389 
    390 ":filter set termcap" only filters terminal codes, not keys. (#9297)
    391 
    392 Add an option to restrict 'incsearch' to not scroll the view. (Tavis Ormandy)
    393 
    394 When 'term' starts with "foot" then default t_TI and t_TE to the values used
    395 for the builtin xterm termcap.
    396 
    397 Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
    398 (#4087)  Did patch 8.2.2379 help?
    399 Also, z= in German on a long word can take a very long time, but CTRL-C to
    400 interrupt does not work. Where to add ui_breakcheck()?
    401 New English spell files also have very slow suggestions.
    402 
    403 When 'spelloptions' is "camel" then zG doesn't work on some words.
    404 (Gary Johnson, 17 Oct 2022)
    405 
    406 'cdpath' problems:
    407 - Adding "~" to 'cdpath' doesn't work for completion?  (Davido, 2013 Aug 19)
    408 - Problem with 'cdpath' on MS-Windows when a directory is equal to $HOME.
    409   (2006 Jul 26, Gary Johnson)
    410 
    411 Make "g>" and "g<" in Visual mode move the text right or left.
    412 Also for a block selection.  #8558
    413 
    414 When using dictionary insert completion with 'ignorecase', the leading capital
    415 in a word should be preserved.
    416 
    417 Add optional argument to virtcol() that specifies "start", "cursor" or "end"
    418 to tell which value from getvvcol() should be used. (#7964)
    419 Value returned by virtcol() changes depending on how lines wrap.  This is
    420 inconsistent with the documentation.
    421 
    422 When 'wildignore' has an entry ending in "/*" this means nothing matching the
    423 path before it will be added.  When encountering a directory check this and if
    424 there is a match do not scan the directory (possibly speeds up :find a lot).
    425 #12482
    426 
    427 globpath() does not use 'wildignorecase' at all? (related to #8350)
    428 
    429 Add 'termguiattr' option, use "gui=" attributes in the terminal?  Would work
    430 with 'termguicolors'. #1740
    431 
    432 Patch for blockwise paste reporting changes: #6660.  Asked for a PR.
    433 
    434 Missing filetype test for bashrc, PKGBUILD, etc.
    435 
    436 Add an option to not fetch terminal codes in xterm, to avoid flicker when t_Co
    437 changes.
    438 
    439 Add ??= operator, "a ??= b" works like "a = a ?? b". #10343
    440 
    441 When ":redir" is used while already active, the previous one is ended.  But
    442 when redirecting to a local variable (function or script) storing the value
    443 won't work.  At least give an error.  Is there a way to make it work?
    444 #10616
    445 
    446 Add a "description" property to mappings.  #12205
    447 
    448 Add an option to start_timer() to return from the input loop with K_IGNORE.
    449 This is useful e.g. when a popup was created that disables mappings, we need
    450 to return from vgetc() to make this happen.  #7011
    451 
    452 Expanding <mods> should put the tab number from cmdmod.tab before "tab".
    453 Any way to convert "$" back by using a special value? (#6901)
    454 
    455 Can we detect true color support?  https://gist.github.com/XVilka/8346728
    456 Try setting a color then request the current color, like using t_u7.
    457 
    458 Add a v:register_used variable, which has the name of the register used for
    459 the last command, e.g. put.  #12003
    460 
    461 For testing, make a copy of ml_line_ptr instead of pointing it into the data
    462 block, so that valgrind can do out of bounds check.  Set ML_LINE_DIRTY flag or
    463 add ML_LINE_ALLOCED.
    464 
    465 Changing a capturing group to non-capturing changes the result: #7607
    466     :echo matchstr('aaa bbb', '\(.\{-1,}\>\)\|.*')
    467     aaa
    468     :echo matchstr('aaa bbb', '\%(.\{-1,}\>\)\|.*')
    469     aaa bbb
    470 Should also work without any group:
    471     :echo matchstr('aaa bbb', '.\{-1,}\>\|.*')
    472     aaa bbb  (should be aaa)
    473 
    474 Should add a match/str/list/pos method that also returns the test and position
    475 of submatches.  #8355
    476 
    477 Check out PR #543 (Roland Puntaier).
    478 Patch for multibyte characters in langmap and applying a mapping on them.
    479 (Christian Brabandt, 2015 Jun 12, update July 25)
    480 Is this the right solution?  Need to cleanup langmap behavior:
    481 - in vgetorpeek() apply langmap to the typeahead buffer and put the result in
    482   a copy-buffer, only when langmap is appropriate for the current mode. Then
    483   check for mapping and let gotchars() work on the copy-buffer.
    484 - Remove LANGMAP_ADJUST() in other parts of the code.  Make sure the mode is
    485   covered by the above change.
    486 So that replaying the register doesn't use keymap/langmap and still does the
    487 same thing.
    488 Also see #737: langmap not applied to replaying recording.
    489 Perhaps also related: #5147
    490 
    491 Matchparen doesn't remove highlight after undo. (#7054)
    492 Is OK when syntax HL is active.
    493 
    494 Currently Del can be used to delete the last character of a typed count.
    495 Can it also be used to delete an incomplete Normal mode command? (#7096)
    496 After an operator: should work.  After "a" or "i" for text objects: should
    497 work.
    498 
    499 Using "au!" after "filetype on" is a bit slow.  Can the matching of
    500 autocommands be made faster?  (#7056)
    501 
    502 Using a search pattern containing "\%V" and 'hlsearch' set keeps old matches
    503 when the Visual area changes.  #11694.  Do a redraw when starting a Visual
    504 selection?
    505 
    506 Append in Visual block mode inserts the wrong character.
    507 Test_visual_block_mode() already has the proper check, which is commented out.
    508 (#8288)
    509 
    510 Add the <=> (spaceship) operator and "cond ?< expr ?= expr ?> expr"
    511     replace this:
    512 	let left = GetLeftFunc()
    513 	let right = GetRightFunc()
    514 	let res = left < right ? lower : left == right ? equal : upper
    515     by:
    516 	let res = GetLeftFunc() <=> GetRightFunc() ?< lower ?= equal ?> upper
    517 
    518 Why does Test_invalid_sid() not work in the GUI?
    519 
    520 ":pedit" ignores the local working directory when 'pvp' is set (#7267)
    521 
    522 Lua: updating wrong buffer when using newly created, unloaded buffer.
    523 (#6539)
    524 
    525 File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)
    526 
    527 A syntax plugin cannot use autocommands, it could be sourced from setting
    528 'syntax' in a modeline.  Add a function that indicates whether "secure"
    529 and/or "sandbox" are set.
    530 
    531 Problem with auto-formatting - inserting space and putting cursor before added
    532 character. (#6154)
    533 Auto-formatting comments joins a following non-comment line when the comment
    534 ends in a space. (Adam Levy, 18 Oct 2022)
    535 
    536 When 'lazyredraw' is set sometimes the title is not updated.
    537 (Jason Franklin, 2020 Feb 3)  Looks like a race condition.
    538 
    539 With bash ":make" does not set v:shell_error.  Possible solution: set
    540 'shellpipe' to "2>&1| tee %s; exit ${PIPESTATUS[0]}"  #5994
    541 
    542 Using mode() when "/pat" is used in Visual mode returns "v" instead of "c",
    543 which is not useful.  Return "c/v" instead.  And "c/o" when using "d/pat".
    544 #6127
    545 
    546 Add a cterm attribute for "dimmed" or "faint" text. (#8269)
    547 
    548 When 'fileignorecase' is set ":e testfile.c" works to edit TestFile.c, but
    549 ":find testfile.c" does not ignore case.
    550 Might be related to #6088.
    551 
    552 Error for reverse range when using :vimgrep in file "[id-01] file.txt".
    553 (#6919)
    554 
    555 When changing the crypt key the buffer should be considered modified.
    556 Like when changing 'fileformat'.  Save the old key in save_file_ff().
    557 (Ninu-Ciprian Marginean)
    558 
    559 Strange sequence of BufWipeout and BufNew events while doing omni-complete.
    560 (Paul Jolly, #5656)
    561 Get BufDelete without preceding BufNew. (Paul Jolly, #5694)
    562     Later more requests for what to track.
    563     Should we add new events that don't allow any buffer manipulation?
    564     Really only for dealing with appearing and disappearing buffers, load and
    565     unload.
    566 BufWinenter event not fired when saving unnamed buffer. (Paul Jolly, #5655)
    567 Another spurious BufDelete. (Dani Dickstein, #5701)
    568 
    569 Wrong error when using local arglist. (Harm te Hennepe, #6133)
    570 
    571 Test loose_clipboard() by selecting text before suspending.
    572 
    573 :unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
    574 Dec 19)
    575 
    576 Patch to add an option to enable/disable VTP.  (Nobuhiro Takasaki, #5344)
    577 Should have three values: empty, "off", "on".  Name it 'winterm'?
    578 
    579 Patch to fix session file when using multiple tab pages. (Jason Franklin, 2019
    580 May 20)
    581 Also put :argadd commands at the start for all buffers, so that their order
    582 remains equal?  Then %argdel to clean it up.  Do try this with 'hidden' set.
    583 Also #5326: netrw buffers are not restored.
    584 
    585 When 'backupdir' has a path ending in double slash (meaning: use full path of
    586 the file) combined with 'patchmode' the file name is wrong. (#5791)
    587 
    588 Completion mixes results from the current buffer with tags and other files.
    589 Happens when typing CTRL-N while still searching for results.  E.g., type "b_"
    590 in terminal.c and then CTRL-N twice.
    591 Should do current file first and not split it up when more results are found.
    592 (Also #1890)
    593 
    594 Help for ":argadd fname" says that if "fname" is already in the argument list
    595 that entry is used.  But instead it's always added. (#6210)
    596 Add flag AL_FIND_ADD, if there is one argument find it in the list.
    597 
    598 Statusline highlighting error, off by one. (#5599)
    599 
    600 ":find" with 'path' set to "data*" does not find files, while completion does
    601 find them. (Max Kukartsev, #6218)
    602 
    603 Enable 'termbidi' if $VTE_VERSION >= 5703 ?
    604 
    605 "--cleanFOO" does not result in an error. (#5537)
    606 
    607 Output from assert_equalfile() doesn't give a hint about what's different.
    608 Assuming the files are text, print the line with the difference.
    609 
    610 Result of synID() sometimes wrong in help files. (#5252)
    611 
    612 When a help file is opened that doesn't have "ft=help" in the modeline then
    613 the FileType is first set to "text" before it is set to "help". (#8099)
    614 
    615 Problem showing a line if the number column width changes when using "o".
    616 (Mateusz Morusiewicz, #4245)
    617 
    618 When using :packadd for a replacement language plugin, it is loaded after the
    619 default one.  #4698
    620 
    621 When using :packadd files under "later" are not used, which is inconsistent
    622 with packages under "start". (xtal8, #1994)
    623 
    624 Patch to add new motion ]( and ]{.  (Yasuhiro Matsumoto, #5320)
    625 Better: use the "z" prefix.  or ]t) and [t(.
    626 
    627 Visual highlight not removed when 'display' is "lastline" and line doesn't
    628 fit. (Kevin Lawler, #4457)
    629 
    630 Current position in the changelist should be local to the buffer. (#2173)
    631 
    632 Does not build with MinGW out of the box:
    633 - _stat64 is not defined, need to use "struct stat" in vim.h
    634 - WINVER conflict, should use 0x0600 by default?
    635 - INT_MAX not defined: need to include <limits.h> in vim.h
    636 
    637 Display messed up with matchparen, wrapping and scrolling. (#5638)
    638 Screen update bug related to matchparen.  (Chris Heath, 2017 Mar 4, #1532)
    639 
    640 When getting a focus event halfway a mapping this aborts the mapping.  E.g.
    641 when "qq" is mapped and after the first "q" the mouse is moved outside of the
    642 gvim window (with focus follows mouse), then the K_FOCUSLOST key is put in the
    643 input buffer. (#5302)
    644 
    645 Check_external_diff() is used too often. (Daniel Hahler, #4800)
    646 
    647 Win32: after "[I" showing matches, scroll wheel messes up screen. (Tsakiridis,
    648 2007 Feb 18)
    649 Patch by Alex Dobrynin, 2007 Jun 3.  Also fixes other scroll wheel problems.
    650 
    651 Add a WindowScrolled event.  Trigger around the same time as CursorMoved.
    652 Can be used to update highlighting. #3127  #5181
    653 
    654 Incorrect formatting with autoindent. (Sebastian Gniazdowski, #4909)
    655 
    656 Patch to add the :bvimgrep command.  (Christian Brabandt, 2014 Nov 12)
    657 Updated 2016 Jun 10, #858  Update 2017 Mar 28: use <buffer>.
    658 Better use ":bufgrep" ?
    659 
    660 Improve fallback for menu translations, to avoid having to create lots of
    661 files that source the actual file.  E.g. menu_da_de -> menu_da
    662 Include part of #3242?
    663 
    664 Patch for different behavior of text objects with quotes: #11976
    665 Is this actually better?
    666 
    667 Patch to have text objects defined by arbitrary single characters. (Daniel
    668 Thau, 2013 Nov 20, 2014 Jan 29, 2014 Jan 31)
    669 Added tests (James McCoy, 2016 Aug 3, #958).  Still needs more work.
    670 
    671 Would be nice to set tab-local values for 'diffexpr' and 'diffopt'.  Use
    672 t:diffexpr_option t:diffopt_option? (#4782)
    673 Also make 'scrollopt' tab-local, remove "hor" only for the current tab page.
    674 
    675 Internal diff doesn't handle binary file like external diff does. (Mike
    676 Williams, 2018 Oct 30)
    677 
    678 '[ mark in wrong column after put. (#4776)
    679 
    680 Problem with :tlmenu: Detach item added with all modes?  Issue #3563.
    681 
    682 Add an argument to expandcmd() to expand like ":next" does.
    683 
    684 When both "a" and "l" is in 'formatoptions' then auto-formatting also happens
    685 in a long line. #5189
    686 
    687 The quoting of the [command] argument of :terminal is not clearly documented.
    688 Give a few examples. (#4288)
    689 
    690 Opening a file with --remote-tab-silent that matches 'wildignore' does not
    691 work, results in "E479: No match". (#4610)
    692 
    693 7   Add an option to add one pixel column to the character width?  Lucida
    694     Console italic is wider than the normal font ("d" overlaps with next char).
    695     Opposite of 'linespace': 'columnspace'.
    696 Patch for this (Tristan Konolige, #1011, only added the option, no implem.)
    697 
    698 Bug: script written with "-W scriptout" contains Key codes, while the script
    699 read with "-s scriptin" expects escape codes.  Probably "scriptout" needs to
    700 be adjusted. (Daniel Steinberg, 2019 Feb 24, #4041)
    701 
    702 Window size changes after closing a tab. (#4741)
    703 
    704 Problem with colors in terminal window. (Jason Franklin, 2019 May 12)
    705 
    706 Bug: "vipgw" does not put cursor back where it belongs. (Jason Franklin, 2019
    707 Mar 5)
    708 
    709 Some composing characters actually add a cell width to the character they are
    710 on top off, making the whole thing two characters wide. (#4526)
    711 
    712 Should we include some part of pull request #4505, not increment changedtick
    713 in some cases?  E.g. for ":write" when the changed flag was already off, the
    714 buffer didn't change at all.
    715 
    716 When using a timer callback vgetc_busy is reset, allowing for using input().
    717 But in a channel callback this does not happen.  We need to do something
    718 similar to check_due_timer().  Also see #3809.
    719 
    720 C syntax: {} inside () causes following {} to be highlighted as error.
    721 (Michalis Giannakidis, 2006 Jun 1)
    722 
    723 Check: __attribute__((format(printf, on semsg() and siemsg().  Where was this
    724 added?
    725 
    726 Add test for urxvt mouse codes.  Also test that mouse coordinates can be
    727 negative. (see #4326)
    728 
    729 'cmdheight' has a tab-local value, but it cannot be obtained with
    730 `:echo gettabwinvar(2, 1, '&cmdheight')` returns the value for the _current_
    731 tab page. (Ingo Karkat, #4324)
    732 :call settabwinvar(1, 1, '&cmdheight', 2) also doesn't work well.
    733 
    734 When opening a file, allow for specifying the initial column position:
    735     vim +12:5 file.txt   line 12 column 5
    736     :edit +12:5 file.txt
    737 Should probably use the column as the character index.
    738 
    739 This modeline throws unexpected errors: (#4165)
    740     vim: syn=nosyntax
    741 
    742 Make balloon_show() work outside of 'balloonexpr'?  Users expect it to work:
    743 #2948. (related to #1512?)
    744 Also see #2352, want better control over balloon, perhaps set the position.
    745 Should also be possible to add highlighting, like in the status line?
    746 balloonexpr() on MS-Windows GUI doesn't handle accented chars? (nivaemail,
    747 2018 Sep 14)
    748 
    749 More warnings from static analysis:
    750 https://lgtm.com/projects/g/vim/vim/alerts/?mode=list (URL no longer resolves)
    751 
    752 Not existing directory in CDPATH leads to two shell calls. (#4525)
    753 
    754 Use dict_iterate_start() / dict_iterate_next() instead of relying on the
    755 internals of the dict structure.
    756 
    757 Redo only remembers the last change.  Could use "{count}g." to redo an older
    758 change.  How does the user know which change?  At least have a way to list
    759 them: ":repeats".  Add to history, like search history and command line history.
    760 
    761 When 'confirm' is set a "silent q" doesn't show the prompt.  It should in this
    762 case. (Nate Peterson, 2019 Jan 31, #3892)
    763 For "silent! q" it should not prompt and just fail.
    764 
    765 Add <aevent>, which expands to the currently triggered autocommand event name.
    766 (Daniel Hahler, #4232)  Or add it to v:event (easier to use but slightly more
    767 expensive).
    768 
    769 Some xterm responses are not properly handled: (Markus Gรถmmel, 2019 Apr 1)
    770     DCS 0 $ r Pt ST    should be ignored.
    771     DCS 0 + r/Pt/  ST  already ignored?
    772 
    773 Using CTRL-L to add a character to the search string that contains \v,
    774 punctuation is repeated. (Smylers, 2018 Nov 17, #3621)
    775 
    776 Using single wide base character with double wide composing character gives
    777 drawing errors.  Fill up the base character?  (Dominique, #4328)
    778 
    779 When 'sidescrolloff' is set, using "zl" to go to the end of the line, suddenly
    780 scrolls back.  Should allow for this scrolling, like 'scrolloff' does when
    781 using CTRL-E. (Yee Cheng Chin, #3721)
    782 
    783 When splitting a window with few text lines, the relative cursor position is
    784 kept, which means part of the text isn't displayed.  Better show all the text
    785 when possible. (Dylan Lloyd, #3973)
    786 
    787 Make ":interactive !cmd" stop termcap mode, also when used in an autocommand.
    788 (#3692)
    789 
    790 Add something like 'fillchars' local to window, but allow for specifying a
    791 highlight name.  Esp. for the statusline.
    792 And "extends" and "precedes" are also useful without 'list' set.  Also in
    793 'fillchars' or another option?
    794 
    795 Sourceforge Vim pages still have content, make them empty, keep redirect.
    796 Check for PHP errors. (Wayne Davison, 2018 Oct 26)
    797 
    798 Problem with Visual yank when 'linebreak' and 'showbreak' are set.
    799 Patch with tests, but it's not clear how it is supposed to work. (tommm, 2018
    800 Nov 17)  Asked about this, Dec 22. Christian will have a look.
    801 
    802 Update for xim-input-style help (Tony Mechelynck, 2019 Jan 10).
    803 Feedback from someone who uses this?
    804 
    805 Only output t_Cs when t_Ce is also set.  do not use Cs and Ce termcap entries.  (Daniel Hahler, 2018 Sep 25)
    806 Add t_cS and t_cR for cursor color select and reset.  Use Cs and Cr terminfo
    807 values.
    808 
    809 Further xdiff changes:
    810 - More options, e.g. different kind of whitespace diff.
    811 - when editing text, update the surrounding diff blocks.
    812 - omit diff.exe from distribution
    813 - Can we make this show differences within a line?
    814 - add option to use external diff above a certain size.
    815 
    816 Difference between two regexp engines: #3373
    817 
    818 When the last line wraps, selecting with the mouse below that line only
    819 includes the first screen line. (2018 Aug 23, #3368)
    820 
    821 Refactored HTML indent file. (Michael Lee, #1821)
    822 Asked to write a test.
    823 
    824 Merge checking for 'cursorline' and 'concealcursor', see neovim #9492.
    825 
    826 Add a windowID argument to placing a sign, so that it only shows up in one
    827 window for the buffer.
    828 
    829 Compiler warning (geeknik, 2017 Oct 26):
    830 - undefined left shift in eval_string(), before hex2nr() (#2250)
    831   Use unsigned for "nr".
    832 
    833 Add Native language protocol server (LSP) support. (Yegappan Lakshmanan, 2018
    834 Oct 28)
    835 
    836 Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
    837 Update Sep 7.  Update by Christian Brabandt, 2015 Sep 8, 2016 Feb 1.
    838 Patch to be able to disable default digraphs (incomplete) (Eric Pruitt, 2018
    839 Nov 22).
    840 
    841 Patch to list user digraphs. (Christian Brabandt, 2012 Apr 14)
    842 
    843 Setting 'columns' in a BufEnter autocommand causes a second tab width to
    844 behave strangely, as if there is a gap and a vertical window separator.
    845 (Michael Soyka, 2018 Sep 23, #3477)
    846 
    847 Add an option similar to 'lazyredraw' to skip redrawing while executing a
    848 script or function.
    849 
    850 Using a menu item while the "more" prompt is displayed doesn't work well.
    851 E.g. after using help->version.  Have a key that ends the "more" prompt and
    852 does nothing otherwise?
    853 
    854 MS-Windows: write may fail if another program is reading the file.
    855 If 'readonly' is not set but the file appears to be readonly later, try again
    856 (wait a little while).
    857 CreateFile() returns ERROR_SHARING_VIOLATION (Linwei, 2018 May 5)
    858 
    859 Using --remote to open a file in which a # appears does not work on
    860 MS-Windows.  Perhaps in \#  the \ is seen as a path separator. (Axel Bender,
    861 2017 Feb 9)  Can we expand wildcards first and send the path literally to the
    862 receiving Vim?  Or make an exception for #, it's not useful remotely.
    863 
    864 Column number is wrong when using 'linebreak' and 'wrap'. (Keith Smiley, 2018
    865 Jan 15, #2555)
    866 
    867 Add Makefiles to the runtime/spell directory tree, since nobody uses Aap.
    868 Will have to explain the manual steps (downloading the .aff and .dic files,
    869 applying the diff, etc.
    870 
    871 User dictionary ~/.vim/spell/lang.utf-8.add not used for spell checking until a
    872 word is re-added to it. (Matej Cepl, 2018 Feb 6)
    873 
    874 Fold at end of the buffer behaves inconsistently. (James McCoy, 2017 Oct 9)
    875 
    876 Implement option_save() and option_restore():
    877 option_restore({list})					*option_restore()*
    878 		Restore options previously saved by option_save().
    879 		When buffer-local options have been saved, this function must
    880 		be called when the same buffer is the current buffer.
    881 		When window-local options have been saved, this function must
    882 		be called when the same window is the current window.
    883 		When in the wrong buffer and/or window an error is given and
    884 		the local options won't be restored.
    885 
    886 option_save({list})					*option_save()*
    887 		Saves the options named in {list}.  The returned value can be
    888 		passed to option_restore().  Example: >
    889 			let s:saved_options = option_save([
    890 			    \ 'ignorecase',
    891 			    \ 'iskeyword',
    892 			    \ ])
    893 			 au <buffer> BufLeave *
    894 			    \ call option_restore(s:saved_options)
    895 <		The advantage over using `:let` is that global and local
    896 		values are handled and the script ID is restored, so that
    897 		`:verbose set` will show where the option was originally set,
    898 		not where it was restored.
    899   Alternatively: save and restore ALL options.  Implementation needs to use
    900 	copy-on-write.  Return an ID from option_save(), when
    901 	option_restore(ID) is called give an error if another option_save()
    902 	was called in the meantime, they must be balanced.
    903 
    904 "gvim --remote" from a directory with non-word characters changes the current
    905 directory (Paulo Marcel Coelho Arabic, 2017 Oct 30, #2266)
    906 Also see #1689.
    907 
    908 No profile information for function that executes ":quit". (Daniel Hahler,
    909 2017 Dec 26, #2501)
    910 
    911 A function on a dictionary is not profiled. (ZyX, 2010 Dec 25)
    912 
    913 Add script number to profile?  (#3330 breaks tests).
    914 
    915 A function defined locally and lambda's are not easily recognized.
    916 Mention where they were defined somewhere.
    917 
    918 ml_get errors with buggy script. (Dominique, 2017 Apr 30)
    919 
    920 Error in emsg with buggy script. (Dominique, 2017 Apr 30)
    921 
    922 Join truncates xml comment. (Dmitrii Tcyganok, 2017 Dec 24, #2494)
    923 Requires 'formatoptions' to include "j". (Gary Johnson, 2017 Dec 24)
    924 
    925 Patch to support hunspell. (Matej Cepl, Jan 2018, #2500) Based on older patch
    926 in #846)
    927 Doesn't work on Windows yet.  Not ready to included, hard coded paths.
    928 
    929 When a timer is running and typing CTRL-R on the command line, it is not
    930 redrawn properly. (xtal8, 2017 Oct 23, #2241)
    931 
    932 In an optional package the "after" directory is not scanned?
    933 (Renato Fabbri, 2018 Feb 22)
    934 
    935 Patch for Neovim concerning restoring when closing help window. (glacambre
    936 neovim #7431)
    937 
    938 Patch for improving detecting Ruby on Mac in configure. (Ilya Mikhaltsou, 2017
    939 Nov 21)
    940 
    941 When t_Co is changed from termresponse, the OptionSet autocommand event isn't
    942 triggered.  Use the code from the end of set_num_option() in
    943 set_color_count().
    944 
    945 When using command line window, CmdlineLeave is triggered without
    946 CmdlineEnter.  (xtal8, 2017 Oct 30, #2263)
    947 Add some way to get the nested state.  Although CmdwinEnter is obviously
    948 always nested.
    949 
    950 Problem with 'delcombine'. (agguser, 2017 Nov 10, #2313)
    951 
    952 'delcombine' does not work for the command line. (Tony Mechelynck, 2009 Jul
    953 20)
    954 
    955 MS-Windows: buffer completion doesn't work when using backslash (or slash)
    956 for a path separator. (xtal8, #2201)
    957 
    958 Test more runtime files.
    959 
    960 Window not closed when deleting buffer. (Harm te Hennepe, 2017 Aug 27, #2029)
    961 
    962 Add options_default() / options_restore() to set several options to Vim
    963 defaults for a plugin. Comments from Zyx, 2017 May 10.
    964 Perhaps use a vimcontext / endvimcontext command block.
    965 
    966 After using :noautocmd CursorMoved may still trigger. (Andy Stewart, 2017 Sep
    967 13, #2084).  Set old position after the command.
    968 
    969 When bracketed paste is used, pasting at the ":append" prompt does not get the
    970 line breaks. (Ken Takata, 2017 Aug 22)
    971 
    972 Cannot copy modeless selection when cursor is inside it. (lkintact, #2300)
    973 
    974 Test_writefile_fails_conversion failure on Solaris because if different iconv
    975 behavior.  Skip when "uname" returns "SunOS"? (Pavel Heimlich, #1872)
    976 
    977 'tagrelative' is broken in specific situation. (xaizek, 2017 Oct 19, #2221)
    978 
    979 The ++ options for the :edit command are also useful on the Vim command line.
    980 
    981 Overlong utf-8 sequence is displayed wrong. (Harm te Hennepe, 2017 Sep 14,
    982 #2089)  Patch with possible solution by Bjรถrn Linse.
    983 
    984 X11: Putting more than about 262040 characters of text on the clipboard and
    985 pasting it in another Vim doesn't work.  (Dominique Pelle, 2008 Aug 21-23)
    986 clip_x11_request_selection_cb() is called with zero value and length.
    987 Also: Get an error message from free() in the process that owns the selection.
    988 Seems to happen when the selection is requested the second time, but before
    989 clip_x11_convert_selection_cb() is invoked, thus in X library code.
    990 Kazunobu Kuriyama is working on a proper fix. (2017 Jul 25)
    991 
    992 Problem with three-piece comment. (Michael Lee, 2017 May 11, #1696)
    993 
    994 Creating a partial with an autoload function is confused about the "self"
    995 attribute of the function.  For an unknown function assume "self" and make
    996 that optional? (Bjorn Linse, 2017 Aug 5)
    997 
    998 Cindent: returning a structure has more indent for the second item.
    999 (Sam Pagenkopf, 2017 Sep 14, #2090)
   1000 
   1001 Patch from Christian Brabandt to preserve upper case marks when wiping out a
   1002 buffer. (2013 Dec 9)
   1003 Also fixes #2166?
   1004 
   1005 Profile of a dict function is lost when the dict is deleted.  Would it be
   1006 possible to collect this?  (Daniel Hahler, #2350)
   1007 
   1008 When checking if a bufref is valid, also check the buffer number, to catch the
   1009 case of :bwipe followed by :new.
   1010 
   1011 Patch to skip writing a temp file for diffing if the buffer is equal to the
   1012 existing file. (Akria Sheng, 2017 Jul 22)
   1013 Could also skip writing lines that are the same.
   1014 
   1015 MS-Windows: Opening same file in a second gvim hangs. (Sven Bruggemann, 2017
   1016 Jul 4)
   1017 
   1018 Setting 'clipboard' to "unnamed" makes a global command very slow (Daniel
   1019 Drucker, 2017 May 8).
   1020 This was supposed to be fixed, did it break again somehow?
   1021 Christian cannot reproduce it.
   1022 
   1023 Using composing char in mapping does not work properly. maparg() shows the
   1024 wrong thing. (Nikolai Pavlov, 2017 Jul 8, #1827)
   1025 Or is this not an actual problem?
   1026 
   1027 Better TeX indent file. (Christian Brabandt, 2017 May 3)
   1028 
   1029 Use gvimext.dll from the nightly build? (Issue #249)
   1030 
   1031 'synmaxcol' works with bytes instead of screen cells. (Llandon, 2017 May 31,
   1032 #1736)
   1033 
   1034 Problem with using :cd when remotely editing a file. (Gerd Wachsmuth, 2017 May
   1035 8, #1690)
   1036 
   1037 Memory leak in test97?  The string is actually freed.  Weird.
   1038 
   1039 assert_fails() can only check for the first error.  Make it possible to have
   1040 it catch multiple errors and check all of them.
   1041 
   1042 Add a toolbar in the terminal.  Can be global, above all windows, or specific
   1043 for one window.
   1044 
   1045 Make maparg() also return the raw rhs, so that it doesn't depend on 'cpo'.
   1046 (Brett Stahlman, 2017 May 23)
   1047 Even better: add a way to disable a mapping temporarily and re-enable it
   1048 later.  This is for a sub-mode that is active for a short while (one buffer).
   1049 Still need maplist() to find the mappings.  What can we use to identify a
   1050 mapping?  Something unique would be better than the LHS.
   1051 Perhaps simpler: actually delete the mappings.  Use maplist() to list matching
   1052 mappings (with a lhs prefix, like maparg()), mapdelete() to delete,
   1053 maprestore() to restore (using the output of maplist()).
   1054 
   1055 Add an argument to :mkvimrc (or add another command) to skip mappings from
   1056 plugins (source is a Vim script).  No need to put these in a .vimrc, they will
   1057 be defined when the plugin is loaded.
   1058 
   1059 Use tb_set(winid, [{'text': 'stop', 'cb': callback, 'hi': 'Green'}])
   1060     tb_highlight(winid, 'ToolBar')
   1061     tb_get(winid)
   1062 
   1063 json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
   1064 What if there is an invalid character?
   1065 
   1066 Json string with trailing \u should be an error. (Lcd)
   1067 
   1068 import can't be used in define option when include matches too.
   1069 (Romain Lafourcade, 2017 Jun 18, #1519)
   1070 
   1071 Wrong diff highlighting with three files. (2016 Oct 20, #1186)
   1072 Also get E749 on exit.
   1073 Another example in #1309
   1074 
   1075 Suggestion to improve pt-br spell checking. (Marcelo D Montu, 2016 Dec 15,
   1076 #1330)
   1077 
   1078 Error in test_startup_utf8 on Solaris. (Danek Duvall, 2016 Aug 17)
   1079 
   1080 Rule to use "^" for statusline does not work if a space is defined with
   1081 highlighting for both stl and stlnc.  Patch by Ken Hamada (itchyny, 2016 Dec 11)
   1082 
   1083 Using CTRL-G_U in InsertCharPre causes trouble for redo. (Israel Chauca
   1084 Fuentes, 2017 Feb 12, #1470)
   1085 
   1086 Add a "keytrans()" function, which turns the internal byte representation of a
   1087 key into a form that can be used for :map.  E.g.
   1088     let xx = "\<C-Home>"
   1089     echo keytrans(xx)
   1090     <C-Home>
   1091 
   1092 Check for errors E704 and E705 only does VAR_FUNC, should also do VAR_PARTIAL.
   1093 (Nikolai Pavlov, 2017 Mar 13, #1557)
   1094 Make a function to check for function-like type?
   1095 
   1096 Implement named arguments for functions with optional arguments:
   1097     func Foo(start, count = 1, all = 1)
   1098     call Foo(12, all = 0)
   1099 
   1100 Add a command to take a range of lines, filter them and put the output
   1101 somewhere else.  :{range}copy {dest} !cmd
   1102 
   1103 The TermResponse event is not triggered when a plugin has set 'eventignore' to
   1104 "all".  Netrw does this. (Gary Johnson, 2017 Jan 24)
   1105 Postpone the event until 'eventignore' is reset.
   1106 
   1107 Expanding /**/ is slow.  Idea by Luc Hermitte, 2017 Apr 14.
   1108 
   1109 Once .exe with updated installer is available: Add remark to download page
   1110 about /S and /D options (Ken Takata, 2016 Apr 13)
   1111 Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
   1112 
   1113 ":sbr" docs state it respects 'switchbuf', but "vsplit" does not cause a
   1114 vertical split. (Haldean Brown, 2017 Mar 1)
   1115 
   1116 Use ADDR_OTHER instead of ADDR_LINES for many more commands.
   1117 E.g. all the location list commands use a count.
   1118 Add tests for using number larger than number of lines in buffer.
   1119 
   1120 Might be useful to have isreadonly(), like we have islocked().
   1121 Avoids exceptions, e.g. when using the b: namespace as a dict.
   1122 
   1123 Patch to make v:shell_error writable. (Christian Brabandt, 2016 Sep 27)
   1124 Useful to restore it.  Is there another solution?
   1125 
   1126 Patch for wrong cursor position on wrapped line, involving breakindent.
   1127 (Ozaki Kiichi, 2016 Nov 25)
   1128 
   1129 Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)
   1130 
   1131 Window resizing with 'winfixheight': With a vertical split the height changes
   1132 anyway. (Tommy allen, 2017 Feb 21, #1502)
   1133 
   1134 Invalid behavior with NULL list. (Nikolai Pavlov, #768)
   1135 E.g. deepcopy(test_null_list())
   1136 
   1137 Patch to make it possible to extend a list with itself.
   1138 (Nikolai Pavlov, 2016 Sep 23)
   1139 
   1140 Patch to add Zstandard compressed file support. (Nick Terrell, 2016 Oct 24)
   1141 
   1142 On Windows buffer completion sees backslash as escape char instead of path
   1143 separator. (Toffanim, 2016 Nov 24, #1274)
   1144 
   1145 Should :vmap in matchit.vim be :xmap?  (Tony Mechelynck)
   1146 
   1147 Problem with whitespace in errorformat. (Gerd Wachsmuth, 2016 May 15, #807)
   1148 
   1149 Support sort(l, 'F'), convert strings to float. (#7857)
   1150 
   1151 sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
   1152 4#1038)
   1153 
   1154 sort() does not use 'smartcase' for the skip pattern, even though 'ignorecase'
   1155 is used. (Filipe Brandenburger, #7322)
   1156 
   1157 +channel:
   1158 - Add a in_cb, invoked when the write buffer has become empty. (Matteo Landi)
   1159 - Add ch_readlines(): for a channel in NL mode, reads as many lines as are
   1160   available.  Should be more efficient than looping over ch_read() with
   1161   ch_status() to check for more.
   1162 - If buffer contents is changed in a callback, set w_redr_status so that it
   1163   gets redrawn in redraw_after_callback(). #6120
   1164 - Add a separate timeout for opening a socket.  Currently it's fixed at 50
   1165   msec, which is too small for a remote connection. (tverniquet, #2130)
   1166 - Writing raw mode to a buffer should still handle NL characters as line
   1167   breaks. (Dmitry Zotikov, 2017 Aug 16)
   1168 - When out_cb executes :sleep, the close_cb may be invoked. (Daniel Hahler,
   1169   2016 Dec 11, #1320)
   1170 - Implement |job-term| ?
   1171 - Calling a function when receiving a "call" on a channel, using feedkeys()
   1172   does not work.  It does work from a timer. (Qiming Zhao, #3852)
   1173 - Channel test fails with Motif.  Sometimes kills the X11 server.
   1174 - When a message in the queue but there is no callback, drop it after a while?
   1175   Add timestamp to queued messages and callbacks with ID, remove after a
   1176   minute.  Option to set the droptime.
   1177 - Add an option to drop text of very long lines?  Default to 1 Mbyte.
   1178 - Add remark about undo sync, is there a way to force it?
   1179 - When starting a job, have an option to open the server socket, so we know
   1180   the port, and pass it to the command with --socket-fd {nr}. (Olaf Dabrunz,
   1181   Feb 9)  How to do this on MS-Windows?
   1182 - For connection to server, a "keep open" flag would be useful.  Retry
   1183   connecting in the main loop with zero timeout.
   1184 - job_start(): run job in a newly opened terminal (not a terminal window).
   1185     With xterm could use -S{pty}.
   1186     Although user could use "xterm -e 'cmd arg'".
   1187 
   1188 Regexp problems:
   1189 - NFA engine can be slow for some patterns.  Dominique found out that most
   1190   time is spent in addstate_here() copying the threads.  Instead of copying,
   1191   let each thread point to the next one (by offset, the list is reallocated).
   1192   (Dominique Pelle, 2019 Feb 18)
   1193 - Old engine: using 'incsearch' /\Zabc does not highlight the "c" if it has a
   1194   composing character.  New engine is OK. (Tony Mechelynck, 2019 May 5)
   1195 - When search pattern has the base character both with and without combining
   1196   character, search fails.  E.g. "เธฃเธฃเธตเธš" in "เธเธฒเธฃเธฃเธตเธšเธฃเธฑเธเนƒเธ„เธฃ". (agguser, #2312)
   1197 - [:space:] only matches ASCII spaces.  Add [:white:] for all space-like
   1198   characters, esp. including 0xa0.  Use character class zero.
   1199 - Since 7.4.704 the old regexp engine fails to match [[:print:]] in 0xf6.
   1200   (Manuel Ortega, 2016 Apr 24)
   1201   Test fails on Mac.  Avoid using isalpha(), isalnum(), etc?  Depends on
   1202   LC_CTYPE
   1203 - The old engine does not find a match for "/\%#=1\(\)\{80}", the new engine
   1204   matches everywhere.
   1205 - Using win_linetabsize() can still be slow. Cache the result, store col and
   1206   vcol. Reset them when moving to another line.
   1207 - Very slow with a long line and Ruby highlighting. (John Whitley, 2014 Dec 4)
   1208 - Bug with pattern: '\vblock (\d+)\.\n.*\d+%(\1)@<!\.$'
   1209   (Lech Lorens, 2014 Feb 3)
   1210 - Issue 164: freeze on regexp search.
   1211 - Ignorecase not handled properly for multibyte characters. (Axel Bender,
   1212   2013 Dec 11)
   1213 - Using \@> and \?. (Brett Stahlman, 2013 Dec 21) Remark from Marcin
   1214   Szamotulski; Remark from Brett 2014 Jan 6 and 7.
   1215 - NFA regexp doesn't handle \%<v correctly. (Ingo Karkat, 2014 May 12)
   1216 - Does not work with NFA regexp engine:
   1217   \%u, \%x, \%o, \%d followed by a composing character
   1218 - Search for \%d0\+ may fail with E363. (Christian Brabandt, 2016 Oct 4)
   1219 - \%'[ does not work.  '%'] does work.  (Masaaki Nakamura, 2016 Apr 4)
   1220 - Bug relating to back references. (Ingo Karkat, 2014 Jul 24)
   1221 - New RE does not give an error for empty group: "\(\)\{2}" (Dominique Pelle,
   1222   2015 Feb 7)
   1223 - Using back reference before the capturing group sometimes works with the old
   1224   engine, can we do this with the new engine?  E.g. with
   1225   "/\%(<\1>\)\@<=.*\%(<\/\(\w\+\)>\)\@=" matching text inside HTML tags.
   1226   This problem is probably the same: "\%(^\1.*$\n\)\@<=\(\d\+\).*$".
   1227   (guotuofeng, 2015 Jun 22)
   1228 - Strange matching with "\(Hello\n\)\@<=A". (Anas Syed, 2015 Feb 12)
   1229 - Problem with \v(A)@<=b+\1c. (Issue 334)
   1230 - Diff highlighting can be very slow. (Issue 309)
   1231 - Using %> for a virtual column has a check based on 'tabsize'.  Better would
   1232   be to cache the result of win_linetabsize(col), storing both col and vcol,
   1233   and use them to decide whether win_linetabsize() needs to be called.  Reset
   1234   col and vcol when moving to another line.
   1235 - this doesn't work: "syntax match ErrorMsg /.\%9l\%>20c\&\%<28c/".  Leaving
   1236   out the \& works.  Seems any column check after \& fails.
   1237 - Difference between two engines: ".*\zs\/\@>\/" on text "///"
   1238   (Chris Paul, 2016 Nov 13)  New engine not greedy enough?
   1239   Another one: echom matchstr(" sdfsfsf\n sfdsdfsdf",'[^\n]*')
   1240   (2017 May 15, #1252)
   1241 
   1242 Idea from Sven: record sequence of keys.  Useful to show others what they are
   1243 doing (look over the shoulder), and also to see what happened.
   1244 Probably list of keystrokes, with some annotations for mode changes.
   1245 Could store in logfile to be able to analyse it with an external command.
   1246 E.g. to see when's the last time a plugin command was used.
   1247 
   1248 cmap using execute() has side effects. (Killthemule, 2016 Aug 17, #983)
   1249 
   1250 :map X may print invalid data. (Nikolay Pavlov, 2017 Jul 3, #1816)
   1251 
   1252 Patch to order results from taglist(). (Duncan McDougall, 2016 Oct 25)
   1253 
   1254 ml_get errors when reloading file. (Chris Desjardins, 2016 Apr 19)
   1255 Also with latest version.
   1256 
   1257 Completion for input() does not expand environment variables. (chdiza, 2016
   1258 Jul 25, #948)
   1259 
   1260 Patch to add 'systemencoding', convert between 'encoding' and this for file
   1261 names, shell commands and the like.  (Kikuchan, 2010 Oct 14)
   1262 Assume the system converts between the actual encoding of the filesystem to
   1263 the system encoding (usually utf-8).
   1264 
   1265 MS-Windows: use WS_HIDE instead of SW_SHOWMINNOACTIVE in os_win32.c?
   1266 Otherwise task flickers in taskbar.
   1267 
   1268 Second problem in #966: ins_compl_add_tv() uses get_dict_string() multiple
   1269 times, overwrites the one buffer. (Nikolay Pavlov, 2016 Aug 5)
   1270 
   1271 Patch to improve map documentation. Issue #799.
   1272 
   1273 We can use '. to go to the last change in the current buffer, but how about
   1274 the last change in any buffer?  Can we use ', (, is next to .)?
   1275 
   1276 Ramel Eshed: system() is much slower than job_start(), why? (Aug 26)
   1277 
   1278 When generating the Unicode tables with runtime/tools/unicode.vim the
   1279 emoji_width table has only one entry.
   1280 
   1281 It's possible to add ",," to 'wildignore', an empty entry.  Causes problems.
   1282 Reject the value? #710.
   1283 
   1284 When doing "vi buf.md" a BufNew autocommand for *.md is not triggered.
   1285 Because of using the initial buffer? (Dun Peal, 2016 May 12)
   1286 
   1287 Neovim patch for utfc_ptr2char_len() https://github.com/neovim/neovim/pull/4574
   1288 No test, needs some work to include.
   1289 
   1290 Patch to improve indenting for C++ constructor with initializer list.
   1291 (Hirohito Higashi, 2016 Mar 31)
   1292 
   1293 Zero-out crypt key information when no longer in use. (Ben Fritz, 2017 May 15)
   1294 
   1295 Add stronger encryption.  Could use libsodium (NaCl).
   1296 https://github.com/jedisct1/libsodium/
   1297 Possibly include the needed code so that it can be built everywhere.
   1298 
   1299 Add a way to restart a timer.  It's similar to timer_stop() and timer_start(),
   1300 but the reference remains valid.
   1301 
   1302 Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
   1303 
   1304 Patch to make tests pass with EBCDIC. (Owen Leibman, 2016 Apr 10)
   1305 
   1306 Add ":read :command", to insert the output of an Ex command?
   1307 Can already do it with ":$put =execute('command')".
   1308 
   1309 exists(":tearoff") does not tell you if the command is implemented. (Tony
   1310 Mechelynck)  Perhaps use exists("::tearoff") to check?
   1311 
   1312 Use vim.vim syntax highlighting for help file examples, but without ":" in
   1313 'iskeyword' for syntax.
   1314 
   1315 Installation of .desktop files does not work everywhere.
   1316 It's now fixed, but the target directory probably isn't right.
   1317 Add configure check?
   1318 Should use /usr/local/share/applications or /usr/share/applications.
   1319 Or use $XDG_DATA_DIRS.
   1320 Also need to run update-desktop-database (Kuriyama Kazunobu, 2015 Nov 4)
   1321 
   1322 Test object i{ and it do not behave the same. #1379
   1323 Do not include the linebreak at the start?
   1324 
   1325 Feature request: add the "al" text object, to manipulate a screen line.
   1326 Especially useful when using 'linebreak'
   1327 
   1328 Patch to avoid redrawing tabline when the popup menu is visible.
   1329 (Christian Brabandt, 2016 Jan 28)
   1330 
   1331 When the CursorMovedI event triggers, and CTRL-X was typed, a script cannot
   1332 restore the mode properly. (Andrew Stewart, 2016 Apr 20)
   1333 Do not trigger the event?
   1334 
   1335 Patch to make the behavior of "w" more straightforward, but not Vi compatible.
   1336 With a 'cpo' flag.  (Christian Brabandt, 2016 Feb 8)
   1337 
   1338 Patch to add optionproperties(). (Anton Lindqvist, 2016 Mar 27, update Apr 13)
   1339 
   1340 Patch to add TagNotFound autocommand. (Anton Lindqvist, 2016 Feb 3)
   1341 
   1342 Patch to add Error autocommand. (Anton Lindqvist, 2016 Feb 17)
   1343 Only remembers one error.
   1344 
   1345 GVim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
   1346 
   1347 Unexpected delay when using CTRL-O u.  It's not timeoutlen.
   1348 (Gary Johnson, 2015 Aug 28)
   1349 
   1350 Instead of separately uploading patches to the ftp site, we can get them from
   1351 github with a URL like this:
   1352    https://github.com/vim/vim/compare/v7.4.920%5E...v7.4.920.diff
   1353 Diff for version.c contains more context, can't skip a patch.
   1354 
   1355 Comparing nested structures with "==" uses a different comparator than when
   1356 comparing individual items.
   1357 
   1358 Using uninitialized memory. (Dominique Pelle, 2015 Nov 4)
   1359 
   1360 MS-Windows: When editing a file with a leading space, writing it uses the
   1361 wrong name. (Aram, 2014 Nov 7)  Vim 7.4.
   1362 
   1363 Can't recognize the $ProgramFiles(x86) environment variable.  Recognize it
   1364 specifically?  First try with the parens, then without.
   1365 
   1366 Patch to add :mapgroup, put mappings in a group like augroup.
   1367 (Yasuhiro Matsumoto, 2016 Feb 19)
   1368 
   1369 Can we cache the syntax attributes, so that updates for 'relativenumber' and
   1370 'cursorline'/'cursorcolumn' are a lot faster?  Thus store the attributes
   1371 before combining them.
   1372 
   1373 C highlighting: modern C allows: /* comment */ #ifdef
   1374 and also line continuation after #include.
   1375 I can't recommend it though.
   1376 
   1377 To support Thai (and other languages) word boundaries, include the ICU
   1378 library:  http://userguide.icu-project.org/boundaryanalysis
   1379 
   1380 Patch to use two highlight groups for relative numbers. (Shaun Brady, 2016 Jan
   1381 30)
   1382 
   1383 MS-Windows: Crash opening very long file name starting with "\\".
   1384 (Christian Brock, 2012 Jun 29)
   1385 
   1386 The OptionSet autocommand event is not always triggered. (Rick Howe, 2015 Sep
   1387 24): :diffthis, :diffoff.
   1388 
   1389 ":set all&" still does not handle all side effects.  Centralize handling side
   1390 effects for when set by the user, on init and when reset to default.
   1391 
   1392 ":tag" does not jump to the right entry of a :tselect. (James Speros, 2015 Oct
   1393 9)
   1394 
   1395 The argument for "-S" is not taken literally, the ":so" command expands
   1396 wildcards.  Add a ":nowild" command modifier?  (ZyX, 2015 March 4)
   1397 
   1398 Proposal to make options.txt easier to read. (Arnaud Decara, 2015 Aug 5)
   1399 Update Aug 14.
   1400 
   1401 When using --remote-tab on MS-Windows 'encoding' hasn't been initialized yet,
   1402 the file name ends up encoded wrong. (Raul Coronado, 2015 Dec 21)
   1403 
   1404 Example in editing.txt uses $HOME with the expectation that it ends in a
   1405 slash.  For me it does, but perhaps not for everybody.  Add a function that
   1406 inserts a slash when needed?  pathconcat(dir, path) (Thilo Six, 2015 Aug 12)
   1407 
   1408 ml_updatechunk() is slow when retrying for another encoding. (John Little,
   1409 2014 Sep 11)
   1410 
   1411 Patch to fix checking global option value when not using it.
   1412 (Arnaud Decara, 2015 Jul 23)
   1413 
   1414 When 'showbreak' is set repeating a Visual operation counts the size of the
   1415 'showbreak' text as part of the operation. (Axel Bender, 2015 Jul 20)
   1416 
   1417 Patch to add grepfile(). (Scott Prager, 2015 May 26)
   1418 Work in progress.
   1419 
   1420 Would be useful to have a treemap() or deepmap() function.  Like map() but
   1421 when an item is a list or dict would recurse into it.
   1422 
   1423 Patch for global-local options consistency. (Arnaud Decara, 2015 Jul 22)
   1424 Is this right?
   1425 
   1426 Patch to make getregtype() return the right size for non-linux systems.
   1427 (Yasuhiro Matsumoto, 2014 Jul 8)
   1428 Breaks test_eval.  Inefficient, can we only compute y_width when needed?
   1429 
   1430 Patch to use different terminal mode settings for system(). (Hayaki Saito)
   1431 Does this work for everybody?
   1432 
   1433 Patch for man.vim. (SungHyun Nam, 2015 May 20)
   1434 Doesn't work completely (Dominique Orban)
   1435 
   1436 Patch to add a "literal" argument to bufnr().  (Olaf Dabrunz, 2015 Aug 4)
   1437 
   1438 Extended file attributes lost on write (backupcopy=no).  Issue 306.
   1439 Would require reading attributes from the original file with listxattr() and
   1440 getxattr() and adding them to the new file.
   1441 
   1442 Patch to add :lockjumps. (Carlo Baldassi, 2015 May 25)
   1443 OK to not block marks?
   1444 
   1445 Patch on Issue 72: 'autochdir' causes problems for :vimgrep.
   1446 
   1447 When two SIGWINCH arrive very quickly, the second one may be lost.
   1448 (Josh Triplett, 2015 Sep 17)
   1449 
   1450 Make comments in the test Makefile silent. (Kartik Agaram, 2014 Sep 24)
   1451 
   1452 Result of systemlist() does not show whether text ended in line break.
   1453 (Bjorn Linse, 2014 Nov 27)
   1454 
   1455 When in 'comments' "n:x" follows after three-part comment directly it repeats
   1456 any one-character from the previous line. (Kartik Agaram, 2014 Sep 19)
   1457 
   1458 Patch: Let rare word highlighting overrule good word highlighting.
   1459 (Jakson A. Aquino, 2010 Jul 30, again 2011 Jul 2)
   1460 
   1461 Patch to add digits argument to round(). (Yasuhiro Matsumoto, 2015 Apr 26)
   1462 
   1463 Can assign to s:type when a function s:type has been defined.
   1464 Also the other way around: define a function while a variable with that name
   1465 was already defined.
   1466 (Yasuhiro Matsumoto, 2014 Nov 3)
   1467 
   1468 Patch for ordered dict. (Ozaki Kiichi, 2015 May 7)
   1469 
   1470 Patch for building a 32bit Vim with 64bit MingW compiler.
   1471 (Michael Soyka, 2014 Oct 15)
   1472 
   1473 Patch: On MS-Windows shellescape() may have to triple double quotes.
   1474 (Ingo Karkat, 2015 Jan 16)
   1475 
   1476 Patch for glob(), adding slash to normal files. (Ingo Karkat, 2014 Dec 22)
   1477 
   1478 When entering and leaving the preview window autocommands are triggered, but
   1479 these may not work well.  Perhaps set a flag to indicate that the preview
   1480 window is involved? (John Otter, 2015 Oct 27)
   1481 
   1482 Using "." to repeat an Ex command puts that command in history.  Probably
   1483 should not happen.  If the command is the result of a mapping it's not put in
   1484 history either. (Jacob Niehus, 2014 Nov 2)
   1485 Patch from Jacob, Nov 2.
   1486 
   1487 "hi link" does not respect groups with GUI settings only. (Mark Lodato, 2014
   1488 Jun 8)
   1489 
   1490 Bug: Autocompleting ":tag/pat" replaces "/pat" with a match but does not
   1491 insert a space. (Micha Mos, 2014 Nov 7)
   1492 
   1493 No error for missing endwhile. (ZyX, 2014 Mar 20)
   1494 
   1495 Patch to make extend() fail early when it might fail at some point.
   1496 (Olaf Dabrunz, 2015 May 2)  Makes extend() slower, do we still want it?
   1497 Perhaps only the checks that can be done without looping over the dict or
   1498 arguments.
   1499 
   1500 Problem with transparent and matchgroup.  Issue #475
   1501 
   1502 Idea: For a window in the middle (has window above and below it), use
   1503 right-mouse-drag on the status line to move a window up/down without changing
   1504 its height?  It's like dragging the status bar above it at the same time.
   1505 
   1506 Patch to add a :domodeline command. (Christian Brabandt, 2014 Oct 21)
   1507 
   1508 This does not give an error: (Andre Sihera, 2014 Mar 21)
   1509     vim -u NONE 1 2 3 -c 'bufdo if 1 | echo 1'
   1510 This neither: (ZyX)
   1511     vim -u NONE 1 2 3 -c 'bufdo while 1 | echo 1'
   1512 
   1513 'viewdir' default on MS-Windows is not a good choice, it's a system directory.
   1514 Change 'viewdir' to "$HOME/vimfiles/view" and use 'viewdiralt' to also read
   1515 from?
   1516 
   1517 Include a plugin manager with Vim? vim-plug seems to be the best currently:
   1518 https://github.com/junegunn/vim-plug.
   1519 Also Vundle: https://github.com/gmarik/vundle
   1520 Or minpac: https://github.com/k-takata/minpac, since it leverages the builtin
   1521 package feature.
   1522 Long message about this from ZyX, 2014 Mar 23.  And following replies.
   1523 Also see (link seems dead):
   1524 vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html
   1525 User view:
   1526 - Support multiple sources, basically any http:// URL. Or a central place that
   1527   will work for everybody (github?  redirects from vim.org?).
   1528   Be able to look into the files before deciding to install.
   1529 - Be able to try out a plugin and remove it again with (almost) no traces.
   1530 - Each plugin needs a "manifest" file that has the version, dependencies
   1531   (including Vim version and features), conflicts, list of files, etc.
   1532   Updater uses that to decide what/how to update.
   1533   Dependencies can use a URL for specific versions, or short name for scripts
   1534   on vim.org.
   1535 - Once a plugin is installed it remembers where it came from, updater checks
   1536   there.  Can manually update when really needed.
   1537 - Must be possible to install for one user.  Also system wide?
   1538 - Can edit plugin config with Vim. Can temporarily disable a plugin.
   1539 - Run the update manually, find latest version and install.
   1540 - Be able to download without special tools, must work for 95% of users.
   1541 Implementation:
   1542 - Avoid the 'runtimepath' getting long.  Need some other way to keep each
   1543   plugin separate.
   1544 - When installing or updating, first figure out what needs to be done. This
   1545   may involve recursively fetching manifest files for dependencies.  Then show
   1546   the user what's going to change and ask for OK.
   1547 - Scripts on Vim.org must be able to consist of several files.  Is zip format
   1548   sufficient?  Upload the manifest?  Or refer to a site that has the manifest?
   1549 - Best is to fetch individual files or use a Vimball. Reduces dependency on
   1550   tools that might be missing and allows inspection of the files before
   1551   installing.
   1552 Out of scope:
   1553 - Overview of plugins, ratings, comments, etc.  That's another world.
   1554 - Development work on plugins (although diff with distributed version would be
   1555   useful).
   1556 
   1557 When typing the first character of a command, e.g. "f", then using a menu, the
   1558 menu item doesn't work.  Clear typeahead when using a menu?
   1559 
   1560 Editing an ascii file as ucs-2 or ucs-4 causes display errors.
   1561 (ZyX, 2014 Mar 30)
   1562 
   1563 ":Next 1 some-arg" does not complain about trailing argument.  Also for
   1564 various other commands.  (ZyX, 2014 Mar 30)
   1565 
   1566 Patch to skip sort if no line matches the expression.
   1567 (Christian Brabandt, 2014 Jun 25)
   1568 
   1569 VMS: Select() doesn't work properly, typing ESC may hang Vim.  Use sys$qiow
   1570 instead. (Samuel Ferencik, 2013 Sep 28)
   1571 
   1572 Patch for XDG base directory support. (Jean Franรงois Bignolles, 2014 Mar 4)
   1573 Remark on the docs.  Should not be a compile time feature.  But then what?
   1574 Also see #2034.
   1575 
   1576 Patch to define macros for hardcoded values. (Elias Diem, 2013 Dec 14)
   1577 
   1578 Updated spec ftplugin. (Matฤ›j Cepl, 2013 Oct 16)
   1579 
   1580 Patch to handle integer overflow. (Aaron Burrow, 2013 Dec 12)
   1581 
   1582 7   Windows XP: When using "ClearType" for text smoothing, a column of yellow
   1583     pixels remains when typing spaces in front of a "D" ('guifont' set to
   1584     "lucida_console:h8").
   1585 Patch by Thomas Tuegel, also for GTK, 2013 Nov 24
   1586 
   1587 :help gives example for z?, but it does not work.  m? and t? do work.
   1588 
   1589 Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
   1590 
   1591 Checking runtime scripts: Thilo Six, 2012 Jun 6.
   1592 
   1593 When evaluating expression in backticks, autoload doesn't work.
   1594 (Andy Wokula, 2013 Dec 14)
   1595 
   1596 Using <nr>ifoobar<esc> can slow down Vim.  Patch by Christian Brabandt, 2013
   1597 Dec 13.  Only helps a bit, 10000ii<Esc> is still too slow.
   1598 
   1599 Javascript file where indent gets stuck on: GalaxyMaster, 2012 May 3.
   1600 
   1601 The BufUnload event is triggered when re-using the empty buffer.
   1602 (Pokey Rule, 2013 Jul 22)
   1603 Patch by Marcin Szamotulski, 2013 Jul 22.
   1604 
   1605 Patch to allow more types in remote_expr(). (Lech Lorens, 2014 Jan 5)
   1606 Doesn't work for string in list.  Other way to pass all types of variables
   1607 reliably?
   1608 
   1609 Patch to add {lhs} to :mapclear: clear all maps starting with {lhs}.
   1610 (Christian Brabandt, 2013 Dec 9)
   1611 
   1612 Exception caused by argument of return is not caught by try/catch.
   1613 (David Barnett, 2013 Nov 19)
   1614 Bug in try/catch: return with invalid compare throws error that isn't caught.
   1615 (ZyX, 2011 Jan 26)
   1616 try/catch not working for argument of return. (Matt Wozniski, 2008 Sep 15)
   1617 try/catch not working when inside a for loop. (ZyX, 2011 Jan 25)
   1618 
   1619 Patch to fix that 'cedit' is recognized after :normal. (Christian Brabandt,
   1620 2013 Mar 19, later message)
   1621 
   1622 Patch to view coverage of the tests. (Nazri Ramliy, 2013 Feb 15)
   1623 
   1624 Patch to add "Q" and "A" responses to interactive :substitute. They are
   1625 carried over when using :global. (Christian Brabandt, 2013 Jun 19)
   1626 
   1627 Bug with 'cursorline' in diff mode.  Line being scrolled into view gets
   1628 highlighted as the cursor line.  (Alessandro Ivaldi, 2013 Jun 4)
   1629 
   1630 Two highlighting bugs. (ZyX, 2013 Aug 18)
   1631 
   1632 Patch to support 'u' in interactive substitute. (Christian Brabandt, 2012 Sep
   1633 28)  With tests: Oct 9.
   1634 
   1635 Dialog is too big on Linux too. (David Fishburn, 2013 Sep 2)
   1636 
   1637 -   Add regexp for 'paragraphs' and 'sections': 'parare' and 'sectre'.
   1638     Combine the two into a regexp for searching. (Ned Konz)
   1639 Patch by Christian Brabandt, 2013 Apr 20, unfinished.
   1640 
   1641 Bug: findfile("any", "file:///tmp;") does not work.
   1642 
   1643 Patch to add getsid(). (Tyru, 2011 Oct 2)  Do we want this?  Update Oct 4.
   1644 Or use expand('<sid>')?
   1645 
   1646 Patch to make confirm() display colors. (Christian Brabandt, 2012 Nov 9)
   1647 
   1648 Problem with refresh:always in completion. (Tyler Wade, 2013 Mar 17)
   1649 
   1650 b:undo_ftplugin cannot call a script-local function. (Boris Danilov, 2013 Jan
   1651 7)
   1652 
   1653 Patch for :tabcloseleft, after closing a tab go to left tab. (William Bowers,
   1654 2012 Aug 4)
   1655 
   1656 Patch to improve equivalence classes in regexp patterns.
   1657 (Christian Brabandt, 2013 Jan 16, update Jan 17)
   1658 
   1659 Patch with suggestions for starting.txt. (Tony Mechelynck, 2012 Oct 24)
   1660 But use Gnome instead of GTK?
   1661 
   1662 Should be possible to enable/disable matchparen per window or buffer.
   1663 Add a check for b:no_match_paren in Highlight_matching_Pair() (Marcin
   1664 Szamotulski, 2012 Nov 8)
   1665 
   1666 'iminsert' global value set when using ":setlocal iminsert"? (Wu, 2012 Jun 23)
   1667 
   1668 Patch to append regexp to tag commands to make it possible to select one out
   1669 of many matches. (Cody Cutler, 2013 Mar 28)
   1670 
   1671 The input map for CTRL-O in mswin.vim causes problems after CTRL-X CTRL-O.
   1672 Suggestion for another map. (Philip Mat, 2012 Jun 18)
   1673 But use "gi" instead of "a".  Or use CTRL-\ CTRL-O.
   1674 
   1675 When there are no command line arguments ":next" and ":argu" give E163, which
   1676 is confusing.  Should say "the argument list is empty".
   1677 
   1678 URXVT:
   1679 - will get stuck if byte sequence does not contain the expected semicolon.
   1680 - Use urxvt mouse support also in xterm.  Explanations:
   1681   http://www.midnight-commander.org/ticket/2662
   1682 
   1683 Patch to add tests for if_xcmdsrv.c., Jul 8, need some more work. (Brian Burns)
   1684 New tests Jul 13.   Update Jul 17.  Discussion Jul 18.
   1685 
   1686 Patch for input method status. (Hirohito Higashi, 2012 Apr 18)
   1687 
   1688 Update Vim app icon (for Gnome). (Jakub Steiner, 2013 Dec 6)
   1689 
   1690 Patch to use .png icons for the toolbar on MS-Windows. (Martin Gieseking, 2013
   1691 Apr 18)
   1692 
   1693 Patch for has('unnamedplus') docs. (Tony Mechelynck, 2011 Sep 27)
   1694 And one for gui_x11.txt.
   1695 
   1696 ":cd" doesn't work when current directory path contains "**".
   1697 finddir() has the same problem.  (Yukihiro Nakadaira, 2012 Jan 10)
   1698 Requires a rewrite of the file_file_in_path code.
   1699 
   1700 Should use has("browsefilter") in ftplugins.  Requires patch 7.3.593.
   1701 
   1702 Update for vim2html.pl. (Tyru, 2013 Feb 22)
   1703 
   1704 Patch to sort functions starting with '<' after others.  Omit dict functions,
   1705 they can't be called. (Yasuhiro Matsumoto, 2011 Oct 11)
   1706 
   1707 Patch to pass list to or(), and() and xor(). (Yasuhiro Matsumoto, 2012 Feb 8)
   1708 
   1709 Patch to improve "it" and "at" text object matching. (Christian Brabandt, 2011
   1710 Nov 20)
   1711 
   1712 Patch to improve GUI find/replace dialog. (Christian Brabandt, 2012 May 26)
   1713 Update Jun 2.
   1714 
   1715 `] moves to character after insert, instead of the last inserted character.
   1716 (Yukihiro Nakadaira, 2011 Dec 9)
   1717 
   1718 Plugin for Modeleasy. (Massimiliano Tripoli, 2011 Nov 29)
   1719 
   1720 BufWinLeave triggers too late when quitting last window in a tab page. (Lech
   1721 Lorens, 2012 Feb 21)
   1722 
   1723 Patch for 'transparency' option. (Sergiu Dotenco, 2011 Sep 17)
   1724 Only for MS-Windows.  No documentation.  Do we want this?
   1725 
   1726 Patch to support cursor shape in Cygwin console. (Ben bgold, 2011 Dec 27)
   1727 
   1728 On MS-Windows a temp dir with a & init causes system() to fail. (Ben Fritz,
   1729 2012 Jun 19)
   1730 
   1731 'cursorline' is displayed too short when there are concealed characters and
   1732 'list' is set.  (Dennis Preiser)
   1733 Patch 7.3.116 was the wrong solution.
   1734 Christian Brabandt has another incomplete patch. (2011 Jul 13)
   1735 
   1736 Win32: Patch to use task dialogs when available. (Sergiu Dotenco, 2011 Sep 17)
   1737 New feature, requires testing.  Made some remarks.
   1738 
   1739 Win32: Patch for alpha-blended icons and toolbar height. (Sergiu Dotenco, 2011
   1740 Sep 17)  Asked for feedback from others.
   1741 
   1742 Win32: Cannot cd into a directory that starts with a space. (Andy Wokula, 2012
   1743 Jan 19)
   1744 
   1745 Need to escape $HOME on Windows for fnameescape()?  (ZyX, 2011 Jul 21,
   1746 discussion 2013 Jul 4) Can't simply use a backslash, \$HOME has a different
   1747 meaning already.  Would be possible to use $$HOME where $HOME is to be used.
   1748 
   1749 "2" in 'formatoptions' not working in comments. (Christian Corneliussen, 2011
   1750 Oct 26)
   1751 
   1752 Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
   1753 
   1754 Windows keys not set properly on Windows 7?  (cncyber, 2010 Aug 26)
   1755 
   1756 When using a Vim server, a # in the path causes an error message.
   1757 (Jeff Lanzarotta, 2011 Feb 17)
   1758 
   1759 When there is a ">" in a line that "gq" wraps to the start of the next line,
   1760 then the following line will pick it up as a leader.  Should get the leader
   1761 from the first line, not a wrapped line. (Matt Ackeret, 2012 Feb 27)
   1762 
   1763 Using ":break" or something else that stops executing commands inside a
   1764 ":finally" does not rethrow a previously uncaught exception. (ZyX, 2010 Oct
   1765 15)
   1766 
   1767 Vim using lots of memory when joining lines. (John Little, 2010 Dec 3)
   1768 
   1769 BT regexp engine: After trying a \@> match and failing, submatches are not
   1770 cleared.  See test64.
   1771 
   1772 On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a
   1773 64 bits value.  Change all number options to use nropt_T and define it to the
   1774 right type.
   1775 
   1776 string() can't parse back "inf" and "nan".  Fix documentation or fix code?
   1777 (ZyX, 2010 Aug 23)
   1778 
   1779 When doing "redir => s:foo" in a script and then "redir END" somewhere else
   1780 (e.g. in a function) it can't find s:foo.
   1781 When a script contains "redir => s:foo" but doesn't end redirection, a
   1782 following "redir" command gives an error for not being able to access s:foo.
   1783 (ZyX, 2011 Mar 27)
   1784 
   1785 When setqflist() uses a filename that triggers a BufReadCmd autocommand Vim
   1786 doesn't jump to the correct line with :cfirst. (ZyX,  2011 Sep 18)
   1787 
   1788 Behavior of i" and a" text objects isn't logical. (Ben Fritz, 2013 Nov 19)
   1789 
   1790 When setting a local option value from the global value, add a script ID that
   1791 indicates this, so that ":verbose set" can give a hint.  Check with options in
   1792 the help file.
   1793 
   1794 After patch 7.3.097 still get E15. (Yukihiro Nakadaira, 2011 Jan 18)
   1795 Also for another example (ZyX, 2011 Jan 24)
   1796 
   1797 "0g@$" puts '] on last byte of multibyte. (ZyX, 2011 Jan 22)
   1798 
   1799 Patch for :tabrecently. (Hirokazu Yoshida, 2012 Jan 30)
   1800 
   1801 Problem with "syn sync grouphere". (Gustavo Niemeyer, 2011 Jan 27)
   1802 
   1803 Loading autoload script even when usage is inside "if 0". (Christian Brabandt,
   1804 2010 Dec 18)
   1805 
   1806 With a filler line in diff mode, it isn't displayed in the column with line
   1807 number, but it is in the sign column.  Doesn't look right. (ZyX 2011 Jun 5)
   1808 Patch by Christian Brabandt, 2011 Jun 5.  Introduces new problems.
   1809 
   1810 Add jump() function. (Marcin Szamotulski, 2013 Aug 29)
   1811 Is this needed?  CTRL-O and CTRL-I do the same, just more difficult to use.
   1812 
   1813 8   Add a command to jump to the next character highlighted with "Error".
   1814 Patch by Christian Brabandt, uses ]e [e ]t and [t. 2011 Aug 9.
   1815 
   1816 Add event for when the text scrolls.  A bit like CursorMoved.  Also a similar
   1817 one for insert mode.  Use the event in matchparen to update the highlight if
   1818 the match scrolls into view.
   1819 
   1820 7   Use "++--", "+++--" for different levels instead of "+---" "+----".
   1821 Patch by Christian Brabandt, 2011 Jul 27.
   1822 Update by Ben Fritz, with fix for TOhtml. (2011 Jul 30)
   1823 
   1824 9   Add %F to 'errorformat': file name without spaces.  Useful on Unix to
   1825     avoid matching something up to a time 11:22:33.
   1826 Patch by Christian Brabandt, 2011 Jul 27.
   1827 
   1828 Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22)
   1829 Also add named groups: \%{name}(re)  and \%{name}g
   1830 
   1831 In the sandbox it's not allowed to do many things, but it's possible to change
   1832 or set variables.  Add a way to prevent variables from being changed in the
   1833 sandbox?  E.g.: ":protect g:restore_settings".
   1834 
   1835 Win32: tear-off menu does not work when menu language is German. (Markus
   1836 Bossler, 2011 Mar 2)  Fixed by 7.3.095?
   1837 
   1838 Wish for NetBeans commands:
   1839     - make it possible to have 'defineAnnoType' also handle terminal colors.
   1840 
   1841 7.3.014 changed how backslash at end of line works, but still get a NUL when
   1842 there is one backslash. (Ray Frush, 2010 Nov 18)  What does the original ex
   1843 do?
   1844 
   1845 New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
   1846 - move compflags to separate growarray?
   1847 - instead of a regexp use a hashtable.  Expand '?', '*', '+'.  What would be
   1848   the maximum repeat for * and +?
   1849 
   1850 "L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle,
   1851 2011 Feb 27)
   1852 
   1853 Editing a file with a ^M with 'ff' set to "mac", opening a help file, then the
   1854 ^M is displayed as ^J sometimes.  Getting 'ff' value from wrong window/buffer?
   1855 
   1856 When Vim is put in the background (SIGTSTP) and then gets a SIGHUP it doesn't
   1857 exit.  It exists as soon as back in the foreground. (Stephen Liang, 2011 Jan
   1858 9)  Caused by vim_handle_signal(SIGNAL_BLOCK); in ui.c.
   1859 
   1860 g` not working correctly when using :edit.  It works OK when editing a file on
   1861 the command line. (Ingo Karkat, 2011 Jan 25)
   1862 
   1863 Since patch 7.2.46 Yankring plugin has become very slow, eventually make Vim
   1864 crash? (Raiwil, 2010 Nov 17)
   1865 
   1866 Regexp engine performance:
   1867 - Profiling:
   1868 	./vim -u NONE -s ~/vim/test/ruby.vim
   1869 	./vim -u NONE -s ~/vim/test/loop.vim
   1870 	./vim -u NONE -s ~/vim/test/alsa.vim
   1871 	./vim -s ~/vim/test/todo.vim
   1872 	./vim -s ~/vim/test/xml.vim
   1873     Dominique Pelle:  xmlSyncDT is particularly slow (Jun 7)
   1874 - More test files from the src/pkg/regexp/testdata directory in the Go repo.
   1875 - Performance tests:
   1876   - Using asciidoc syntax. (Marek Schimara, 2013 Jun 6)
   1877   - ~/vim/text/FeiqCfg.xml (file from Netjune)
   1878   - ~/vim/text/edl.svg  (also XML)
   1879   - glts has five tests. (May 25)
   1880   - ~/vim/test/slowsearch
   1881   - ~/vim/test/rgb.vim
   1882   - search for  a.*e*exn  in the vim executable.  Go to last line to use
   1883     'hlsearch'.
   1884   - Slow combination of folding and PHP syntax highlighting.  Script to
   1885     reproduce it.  Caused by "syntax sync fromstart" in combination with patch
   1886     7.2.274.  (Christian Brabandt, 2010 May 27) Generally, folding with
   1887     'foldmethod' set to "syntax" is slow.  Do profiling to find out why.
   1888 
   1889 Problem producing tags file when hebrew.frx is present.  It has a BOM.
   1890 Results in E670. (Tony Mechelynck, 2010 May 2)
   1891 
   1892 'beval' option should be global-local.
   1893 
   1894 Ruby: ":ruby print $buffer.number" returns zero.
   1895 
   1896 setpos() does not restore cursor position after :normal. (Tyru, 2010 Aug 11)
   1897 
   1898 With "tw=55 fo+=a" typing space before ) doesn't work well. (Scott Mcdermott,
   1899 2010 Oct 24)
   1900 
   1901 Messages in message.txt are highlighted as examples.
   1902 
   1903 When using cp850 the NBSP (0xff) is not drawn correctly. (Brett Stahlman, 2010
   1904 Oct 22)  'isprint' is set to "@,161-255".
   1905 
   1906 ":echo "\x85" =~# '[\u0085]'" returns 1 instead of 0. (ZyX, 2010 Oct 3)
   1907 
   1908 'cindent' not correct when 'list' is set. (Zdravi Korusef, 2010 Apr 15)
   1909 
   1910 C-indenting: A matching { in a comment is ignored, but intermediate { are not
   1911 checked to be in a comment.  Implement FM_SKIPCOMM flag of findmatchlimit().
   1912 Issue 46.
   1913 
   1914 Using CompilerSet doesn't record where an option was set from.  E.g., in the
   1915 gcc compiler plugin. (Gary Johnson, 2010 Dec 13)
   1916 
   1917 ":helpgrep" does not put the cursor in the correct column when preceded by
   1918 accented character. (Tony Mechelynck, 2010 Apr 15)
   1919 
   1920 Don't call check_restricted() for histadd(), setbufvar(), settabvar(),
   1921 setwinvar().
   1922 
   1923 Patch for gVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7)
   1924 
   1925 When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines
   1926 instead of one. (Constantin Pan, 2010 Sep 10)
   1927 
   1928 Gui menu edit/paste in block mode insert only inserts in one line (Bjorn
   1929 Winckler, 2011 May 11)
   1930 Requires a map mode for Insert mode started from blockwise Visual mode.
   1931 
   1932 Problem with cursor in the wrong column. (SungHyun Nam, 2010 Mar 11)
   1933 Additional info by Dominique Pelle. (also on 2010 Apr 10)
   1934 
   1935 CreateFile and CreateFileW are used without sharing, filewritable() fails when
   1936 the file was already open (e.g. script is being sourced).  Add FILE_SHARE_READ|
   1937 FILE_SHARE_WRITE in mch_access()? (Philippe Vaucher, 2010 Nov 2)
   1938 
   1939 Is ~/bin (literally) in $PATH supposed to work?  (Paul, 2010 March 29)
   1940 Looks like only bash can do it. (Yakov Lerner)
   1941 
   1942 Cscope "cs add" stopped working somewhat before 7.2.438. (Gary Johnson, 2010
   1943 Jun 29)  Caused by 7.2.433?
   1944 
   1945 Jumplist doesn't work properly in Insert mode? (Jean Johner, 2010 Mar 20)
   1946 
   1947 Problem with transparent cmdline.  Also: Terminal title is wrong with
   1948 non-ASCII character. (Lily White, 2010 Mar 7)
   1949 
   1950 iconv() doesn't fail on an illegal character, as documented. (Yongwei Wu, 2009
   1951 Nov 15, example Nov 26)  Add argument to specify whether iconv() should fail
   1952 or replace with a character and continue?
   1953 
   1954 Add local time at start of --startuptime output.
   1955 Requires configure check for localtime().
   1956 Use format year-month-day hr:min:sec.
   1957 
   1958 Patch to make ":hi link" also take arguments. (Nate Soares, 2012 Dec 4)
   1959 
   1960 Shell not recognized properly if it ends in "csh -f". (James Vega, 2009 Nov 3)
   1961 Find tail?  Might have a / in argument.  Find space?  Might have space in
   1962 path.
   1963 
   1964 Test 51 fails when language set to German. (Marco, 2011 Jan 9)
   1965 Dominique can't reproduce it.
   1966 
   1967 'ambiwidth' should be global-local.
   1968 
   1969 ":function f(x) keepjumps" creates a function where every command is executed
   1970 like it has ":keepjumps" before it.
   1971 
   1972 Coverity: Check if there are new reported defects:
   1973 https://scan.coverity.com/projects/241
   1974 
   1975 Problem with editing file in binary mode. (Ingo Krabbe, 2009 Oct 8)
   1976 
   1977 Display error when 'tabline' that includes a file name with double-width
   1978 characters. (2010 Aug 14, bootleq)
   1979 
   1980 Problem with stop directory in findfile(). (Adam Simpkins, 2009 Aug 26)
   1981 
   1982 Using ']' as the end of a range in a pattern requires double escaping:
   1983      /[@-\\]]  (Andy Wokula, 2011 Jun 28)
   1984 
   1985 For running gvim on a USB stick: avoid the OLE registration.  Use a command
   1986 line argument -noregister.
   1987 
   1988 When using an expression in 'statusline' leading white space sometimes goes
   1989 missing (but not always). (ZyX, 2010 Nov 1)
   1990 
   1991 When a mapping exists both for insert mode and lang-insert mode, the last one
   1992 doesn't work. (Tyru, 2010 May 6)  Or is this intended?
   1993 
   1994 Still a problem with ":make" in the wrong directory.  Caused by ":bufdo".
   1995 (Ajit Thakkar, 2009 Jul 1) More information Jul 9, Jul 15.
   1996 Caused by "doautoall syntaxset BufEnter *" in syntax/nosyntax.vim ?
   1997 There also is a BufLeave/BufEnter aucmd to save/restore view.
   1998 Does the patch to save/restore globaldir work?
   1999 
   2000 ":bufdo normal gg" while 'hidden' is set leaves buffers without syntax
   2001 highlighting.  Don't disable Syntax autocommands then?  Or add a flag/modifier
   2002 to avoid changing 'eventignore'?
   2003 
   2004 Patch for displaying 0x200c and 0x200d. (Ali Gholami Rudi, 2009 May 6)
   2005 Probably needs a bit of work.
   2006 
   2007 List of encoding aliases. (Takao Fujiwara, 2009 Jul 18)
   2008 Are they all OK?  Update Jul 22.
   2009 
   2010 Win32: Improved Makefile for MSVC. (Leonardo Valeri Manera, 2010 Aug 18)
   2011 
   2012 Win32: Expanding 'path' runs into a maximum size limit. (bgold12, 2009 Nov 15)
   2013 
   2014 Win32: Patch for using .png files for icons. (Charles Peacech, 2012 Feb 5)
   2015 
   2016 Putting a Visual block while 'visualedit' is "all" does not leave the cursor
   2017 on the first character. (John Beckett, 2010 Aug 7)
   2018 
   2019 Setting 'tags' to "tagsdir/*" does not find "tagsdir/tags". (Steven K. Wong,
   2020 2009 Jul 18)
   2021 
   2022 Patch to add "focusonly" to 'scrollopt', so that scrollbind also applies in
   2023 window that doesn't have focus. (Jonathon Mah, 2009 Jan 12)
   2024 Needs more work.
   2025 
   2026 Problem with <script> mappings (Andy Wokula, 2009 Mar 8)
   2027 
   2028 When starting Vim with "gvim -f -u non_existent_file > foo.txt" there are a
   2029 few control characters in the output. (Dale Wiles, 2009 May 28)
   2030 
   2031 'cmdwinheight' is only used in last window when 'winheight' is a large value.
   2032 (Tony Mechelynck, 2009 Apr 15)
   2033 
   2034 Status line containing winnr() isn't updated when splitting the window (Clark
   2035 J.  Wang, 2009 Mar 31)
   2036 
   2037 When $VIMRUNTIME is set in .vimrc, need to reload lang files.  Already done
   2038 for GTK, how about others? (Ron Aaron, 2010 Apr 10)
   2039 
   2040 ":tab split fname" doesn't set the alternate file in the original window,
   2041 because win_valid() always returns FALSE.  Below win_new_tabpage() in
   2042 ex_docmd.c.
   2043 
   2044 Space before comma in function definition not allowed: "function x(a , b)"
   2045 Give a more appropriate error message.  Add a remark to the docs.
   2046 
   2047 string_convert() should be able to convert between utf-8 and utf-16le.  Used
   2048 for GTK clipboard.  Avoid requirement for iconv.
   2049 
   2050 Now that colnr_T is int instead of unsigned, more type casts can be removed.
   2051 
   2052 Don't load macmap.vim on startup, turn it into a plugin. (Ron Aaron,
   2053 2009 Apr 7)  Reminder Apr 14.
   2054 
   2055 Add "no_hlsearch" to winsaveview().
   2056 
   2057 Bug: When reloading a buffer changed outside of Vim, BufRead autocommands
   2058 are applied to the wrong buffer/window. (Ben Fritz, 2009 Apr 2, May 11)
   2059 Ignore window options when not in the right window?
   2060 Perhaps we need to use a hidden window for applying autocommands to a buffer
   2061 that doesn't have a window.
   2062 
   2063 When using "ab foo bar" and mapping <Tab> to <Esc>, pressing <Tab> after foo
   2064 doesn't trigger the abbreviation like <Esc> would. (Ramana Kumar, 2009 Sep 6)
   2065 
   2066 getbufvar() to get a window-local option value for a buffer that's not
   2067 displayed in a window should return the value that's stored for that buffer.
   2068 
   2069 ":he ctrl_u" can be auto-corrected to ":he ctrl-u".
   2070 
   2071 Win32: completion of file name ":e c:\!test" results in ":e c:\\!test", which
   2072 does not work. (Nieko Maatjes, 2009 Jan 8, Ingo Karkat, 2009 Jan 22)
   2073 
   2074 Using ~ works OK on 'a' with composing char, but not on 0x0418  with composing
   2075 char 0x0301. (Tony Mechelynck, 2009 Mar 4)
   2076 
   2077 This does not work yet: "a\(%C\)" (get composing characters into a submatch).
   2078 
   2079 Inconsistent: starting with $LANG set to es_ES.utf-8 gives Spanish
   2080 messages, even though locale is not supported.  But ":lang messages
   2081 es_ES.utf-8" gives an error and doesn't switch messages. (Dominique Pelle,
   2082 2009 Jan 26)
   2083 
   2084 When $HOME contains special characters, such as a comma, escape them when used
   2085 in an option. (Michael Hordijk, 2009 May 5)
   2086 
   2087 Should make 'ignorecase' global-local, so that it makes sense setting it from
   2088 a modeline.
   2089 
   2090 Add cscope target to Makefile. (Tony Mechelynck, 2009 Jun 18, replies by
   2091 Sergey Khorev)
   2092 
   2093 Completion for ":buf" doesn't work properly on Win32 when 'shellslash' is off.
   2094 (Henrik Ohman, 2009, Jan 29)
   2095 
   2096 shellescape() depends on 'shellslash' for quoting.  That doesn't work when
   2097 'shellslash' is set but using cmd.exe. (Ben Fritz)
   2098 Use a different option or let it depend on whether 'shell' looks like a
   2099 unix-like shell?
   2100 
   2101 Bug: in Ex mode (after "Q") backslash before line break, when yanked into a
   2102 register and executed, results in <Nul>: instead of line break.
   2103 (Konrad Schwarz, 2010 Apr 16)
   2104 
   2105 Have a look at patch for utf-8 line breaking. (Yongwei Wu, 2008 Mar 1, Mar 23)
   2106 Now at: http://vimgadgets.sourceforge.net/liblinebreak/
   2107 
   2108 Greek sigma character should be lower cased depending on the context.  Can we
   2109 make this work?  (Dominique Pelle, 2009 Sep 24)
   2110 
   2111 When changing 'encoding' convert all the swap file names, so that we can
   2112 still delete them.  Also convert all buffer file names?
   2113 
   2114 "gqip" in Insert mode has an off-by-one error, causing it to reflow text.
   2115 (Raul Coronado, 2009 Nov 2)
   2116 
   2117 MS-Windows: editing the first, empty buffer, 'ffs' set to "unix,dos", ":enew"
   2118 doesn't set 'ff' to "unix".  (Ben Fritz, 2008 Dec 5) Reusing the old buffer
   2119 probably causes this.
   2120 
   2121 'scrollbind' is not respected when deleting lines or undo. (Milan Vancura,
   2122 2009 Jan 16)
   2123 
   2124 Having "Syntax" in 'eventignore' for :bufdo may cause problems, e.g. for
   2125 ":bufdo e" when buffers are open in windows.  ex_listdo(eap) could set the
   2126 option only for when jumping to another buffer, not when the command argument
   2127 is executed.
   2128 
   2129 ":pedit %" with a BufReadPre autocommand causes the cursor to move to the
   2130 first line. (Ingo Karkat, 2008 Jul 1)  Ian Kelling is working on this.
   2131 Similar problem with ":e". (Marc Montu, 2014 Apr 22)
   2132 
   2133 Cursor line moves in other window when using CTRL-W J that doesn't change
   2134 anything.  (Dasn, 2009 Apr 7)
   2135 
   2136 On Unix "glob('does not exist~')" returns the string.  Without the "~" it
   2137 doesn't. (John Little, 2008 Nov 9)
   2138 Shell expansion returns unexpanded string?
   2139 Don't use shell when "~" is not at the start?
   2140 
   2141 When using ":e ++enc=foo file" and the file is already loaded with
   2142 'fileencoding' set to "bar", then do_ecmd() uses that buffer, even though the
   2143 fileencoding differs.  Reload the buffer in this situation?  Need to check for
   2144 the buffer to be unmodified.
   2145 Unfinished patch by Ian Kelling, 2008 Jul 11.  Followup Jul 14, need to have
   2146 another look at it.
   2147 
   2148 c.vim: XXX in a comment is colored yellow, but not when it's after "#if 0".
   2149 (Ilya Dogolazky, 2009 Aug 7)
   2150 
   2151 You can type ":w ++bad=x fname", but the ++bad argument is ignored.  Give an
   2152 error message?  Or is this easy to implement?  (Nathan Stratton Treadway, 2008
   2153 Aug 20)  This is in ucs2bytes(), search for 0xBF.  Using the ++bad argument is
   2154 at the other match for 0xBF.
   2155 
   2156 When adding "-complete=file" to a user command this also changes how the
   2157 argument is processed for <f-args>. (Ivan Tishchenko, 2008 Aug 19)
   2158 
   2159 Win32: associating a type with Vim doesn't take care of space after a
   2160 backslash? (Robert Vibrant, 2008 Jun 5)
   2161 
   2162 When 'rightleft' is set, cursorcolumn isn't highlighted after the end of a
   2163 line.  It's also wrong in folds. (Dominique Pelle, 2010 Aug 21)
   2164 
   2165 ":help s/~" jumps to *s/\~*, while ":help s/\~" doesn't find anything. (Tim
   2166 Chase)  Fix by Ian Kelling, 2008 Jul 14.
   2167 
   2168 When mapping : to ; and ; to :, @; doesn't work like @: and @: doesn't work
   2169 either.  Matt Wozniski:  nv_at() calls do_execreg() which uses
   2170 put_in_typebuf().  Char mapped twice?
   2171 
   2172 Despite adding save_subexpr() this still doesn't work properly:
   2173 Regexp: matchlist('12a4aaa', '^\(.\{-}\)\(\%5c\@<=a\+\)\(.\+\)\?')
   2174 Returns ['12a4', 'aaa', '4aaa'], should be ['12a4', 'aaa', '']
   2175 Backreference not cleared when retrying after \@<= fails?
   2176 (Brett Stahlman, 2008 March 8)
   2177 
   2178 Problem with remote_send(). (Charles Campbell, 2008 Aug 12)
   2179 
   2180 ftplugin for help file should set 'isk' to help file value.
   2181 
   2182 Win32: remote editing fails when the current directory name contains "[".
   2183 (Ivan Tishchenko, Liu Yubao)  Suggested patch by Chris Lubinski: Avoid
   2184 escaping characters where the backslash is not removed later.  Asked Chris for
   2185 an alternate solution, also for src/ex_getln.c.
   2186 This also fails when the file or directory name contains "%". (Thoml, 2008
   2187 July 7)
   2188 Using --remote-silent while the current directory has a # in the name does not
   2189 work, the # needs to be escaped. (Tramblay Bruno, 2012 Sep 15)
   2190 
   2191 When using remote-silent the -R flag is not passed on. (Axel Bender, 2012 May
   2192 31)
   2193 
   2194 Win32: A --remote command that has a directory name starting with a ( doesn't
   2195 work, the backslash is removed, assuming that it escapes the (. (Valery
   2196 Kondakoff, 2009 May 13)
   2197 
   2198 Win32: Using "gvim --remote-tab-silent elลuti.txt" doesn't work, the
   2199 multibyte character isn't passed and edits elsuti.txt.
   2200 (Raรบl Nรบรฑez de Arenas Coronado, 2015 Dec 18)
   2201 
   2202 Problem with CTRL-F. (Charles Campbell, 2008 March 21)
   2203 Only happens with "gvim -geometry "160x26+4+27" -u NONE -U NONE prop.c".
   2204 'lines' is 54. (2008 March 27)
   2205 
   2206 Problem with pointer wrapping around in getvcol(). (Wolfgang Kroworsch, 2008
   2207 Oct 19)  Check for "col" being "MAXCOL" separately?
   2208 
   2209 Unexpectedly inserting a double quote. (Anton Woellert, 2008 Mar 23)
   2210 Works OK when 'cmdheight' is 2.
   2211 
   2212 8   Use a mechanism similar to omni completion to figure out the kind of tab
   2213     for CTRL-] and jump to the appropriate matching tag (if there are
   2214     several).
   2215 
   2216 The utf class table is missing some entries:
   2217 	0x2212, minus sign
   2218 	0x2217, star
   2219 	0x2500, bar
   2220 	0x26ab, circle
   2221 
   2222 Visual line mode doesn't highlight properly when 'showbreak' is used and the
   2223 line doesn't fit. (Dasn, 2008 May 1)
   2224 
   2225 GUI: In Normal mode can't yank the modeless selection.  Make "gy" do this?
   2226 Works like CTRL-Y in Command line mode.
   2227 
   2228 C't: On utf-8 system, editing file with umlaut through Gnome results in URL
   2229 with %nn%nn, which is taken as two characters instead of one.
   2230 Try to reproduce at work.
   2231 
   2232 Patch for default choice in file changed dialog. (Bjorn Winckler, 2008 Oct 19)
   2233 Is there a way to list all the files first?
   2234 
   2235 Fail to edit file after failed register access.  Error flag remains set?
   2236 (Lech Lorens, 2010 Aug 30)
   2237 
   2238 Problem with 'ts' set to 9 and 'showbreak' to ">>>". (Matthew Winn, 2007 Oct
   2239 1)
   2240 
   2241 ":tab help" always opens a new tab, while ":help" re-uses an existing window.
   2242 Would be more consistent when an existing tab is re-used. (Tony Mechelynck)
   2243 
   2244 Using Aap to build Vim: add remarks about how to set personal preferences.
   2245 Example on www.calmar.ws/tmp/aap.html (link seems dead)
   2246 
   2247 When 'diffopt' has "context:0" a single deleted line causes two folds to merge
   2248 and mess up syncing. (Austin Jennings, 2008 Jan 31)
   2249 
   2250 Gnome improvements: Edward Catmur, 2007 Jan 7
   2251     Also use Save/Discard for other GUIs
   2252 
   2253 New PHP syntax file, use it? (Peter Hodge)
   2254 
   2255 ":echoe" in catch block stops processing, while this doesn't happen outside of
   2256 a catch block. (ZyX, 2011 Jun 2)
   2257 
   2258 Test 54 uses shell commands, that doesn't work on non-Unix systems.  Use some
   2259 other way to test buffer-local autocommands.
   2260 
   2261 The documentation mentions the priority for ":2match" and ":3match", but it
   2262 appears the last one wins. (John Beckett, 2008 Jul 22)  Caused by adding
   2263 matchadd()?  Suggested patch by John, 2008 Jul 24.
   2264 
   2265 When 'encoding' is utf-8 the command line is redrawn as a whole on every
   2266 character typed. (Tyler Spivey, 2008 Sep 3)  Only redraw cmdline for
   2267 'arabicshape' when there is a character on the command line for which
   2268 (ARABIC_CHAR(u8c)) is TRUE.
   2269 
   2270 Cheng Fang made javacomplete. (2007 Aug 11)
   2271 Asked about latest version: 0.77.1 is on www.vim.org.
   2272 
   2273 More AmigaOS4 patches. (Peter Bengtsson, Nov 9)
   2274 
   2275 Amiga patches with vbcc. (Adrien Destugues, 2010 Aug 30)
   2276 (link seems dead): pulkomandy.ath.cx/drop/vim73_vbcc_amiga.diff
   2277 
   2278 Problem with compound words?  (Bert, 2008 May 6)
   2279 No warning for when flags are defined after they are used in an affix.
   2280 
   2281 Screen redrawing when continuously updating the buffer and resizing the
   2282 terminal. (Yakov Lerner, 2006 Sept 7)
   2283 
   2284 Add option settings to help ftplugin. (David Eggum, 2006 Dec 18)
   2285 
   2286 Autoconf problem: when checking for iconv library we may add -L/usr/local/lib,
   2287 but when compiling further tests -liconv is added without the -L argument,
   2288 that may fail (e.g., sizeof(int)). (Blaine, 2007 Aug 21)
   2289 
   2290 Problem with ".add" files when using two languages and restarting Vim. (Raul
   2291 Coronado, 2008 Oct 30)
   2292 
   2293 Popup menu redraw: Instead of first redrawing the text and then drawing the
   2294 popup menu over it, first draw the new popup menu, remember its position and
   2295 size and then redraw the text, skipping the characters under the popup menu.
   2296 This should avoid flicker.  Other solution by A.Politz, 2007 Aug 22.
   2297 
   2298 When the file name has parenthesis, e.g., "foo (bar).txt", ":!ls '%'" has the
   2299 parenthesis escaped but not the space.  That's inconsistent.  Either escape
   2300 neither or both.  No escaping might be best, because it doesn't depend on
   2301 particularities of the shell. (Zvi Har'El, 2007 Nov 10) (Teemu Likonen, 2008
   2302 Jun 3)
   2303 However, for backwards compatibility escaping might be necessary.  Check if
   2304 the user put quotes around the expanded item?
   2305 
   2306 A throw in a function causes missing an endif below the call. (Spiros
   2307 Bousbouras, 2011 May 16)
   2308 
   2309 Error E324 can be given when a cron script has wiped out our temp directory.
   2310 Give a clear error message about this (and tell them not to wipe out /tmp).
   2311 
   2312 Color for cUserLabel should differ from case label, so that a mistake in a
   2313 switch list is noticed:
   2314     switch (i)
   2315     {
   2316     case 1:
   2317     foobar:
   2318     }
   2319 
   2320 Look at http://www.gtk-server.org/ .  It has a Vim script implementation.
   2321 
   2322 Netbeans problem.  Use "nc -l 127.0.0.1 55555" for the server, then run gvim
   2323 with "gvim -nb:localhost:55555:foo".  From nc do: '1:editFile!0 "foo"'.  Then
   2324 go to Insert mode and add a few lines.  Then backspacing every other time
   2325 moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)
   2326 
   2327 Windows installer could add a "open in new tab of existing Vim" menu entry.
   2328 GvimExt: patch to add "Edit with single Vim &tabbed" menu entry.
   2329 Just have two choices, always using one Vim and selecting between using an
   2330 argument list or opening each file in a separate tab.
   2331 (Erik Falor, 2008 May 21, 2008 Jun 26)
   2332 
   2333 Windows installer: licence text should not use indent, causes bad word wrap.
   2334 (Benjamin Fritz, 2010 Aug 16)
   2335 
   2336 Changes for Win32 makefile. (Mike Williams, 2007 Jan 22, Alexei Alexandrov,
   2337 2007 Feb 8)
   2338 
   2339 Win32: Can't complete shell command names.  Why is setting xp_context in
   2340 set_one_cmd_context() inside #ifndef BACKSLASH_IN_FILENAME?
   2341 
   2342 Win32: Patch for cscope external command. (Mike Williams, 2007 Aug 7)
   2343 
   2344 Win32: XPM support only works with path without spaces.  Patch by Mathias
   2345 Michaelis, 2006 Jun 9.  Another patch for more path names, 2006 May 31.
   2346 New version (link seems dead):
   2347 members.tcnet.ch/michaelis/vim/patches.zip
   2348 (also for other patches by Mathias, see mail Feb 22)
   2349 
   2350 Win32: compiling with normal features and OLE fails.  Patch by Mathias
   2351 Michaelis, 2006 Jun 4.
   2352 
   2353 Win32: using CTRL-S in Insert mode doesn't remove the "+" from the tab pages
   2354 label.  (Tsakiridis, 2007 Feb 18)  Patch from Ian Kelling, 2008 Aug 6.
   2355 
   2356 Win32: using "gvim --remote-tab-silent fname" sometimes gives an empty screen
   2357 with the more prompt.  Caused by setting the guitablabel?  (Thomas Michael
   2358 Engelke, 2007 Dec 20 - 2008 Jan 17)
   2359 
   2360 Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17)
   2361 
   2362 Win32: When 'shell' is bash shellescape() doesn't always do the right thing.
   2363 Depends on 'shellslash', 'shellquote' and 'shellxquote', but shellescape()
   2364 only takes 'shellslash' into account.
   2365 
   2366 Menu item that does "xxd -r" doesn't work when 'fileencoding' is utf-16.
   2367 Check for this and use iconv?  (Edward L. Fox, 2007 Sep 12)
   2368 Does the conversion in the other direction work when 'fileencodings' is set
   2369 properly?
   2370 
   2371 Cursor displayed in the wrong position when using 'numberwidth'. (James Vega,
   2372 2007 Jun 21)
   2373 
   2374 When $VAR contains a backslash expand('$VAR') removes it. (Teemu Likonen, 2008
   2375 Jun 18)
   2376 
   2377 C++ indenting wrong with "=". (James Kanze, 2007 Jan 26)
   2378 
   2379 ":lockvar" should use copyID to avoid endless loop.
   2380 
   2381 When using --remote-silent and the file name matches 'wildignore' get an E479
   2382 error.  without --remote-silent it works fine. (Ben Fritz, 2008 Jun 20)
   2383 
   2384 GVim: dialog for closing Vim should check if Vim is busy writing a file.  Then
   2385 use a different dialog: "busy saving, really quit? yes / no".
   2386 
   2387 Check other interfaces for changing curbuf in a wrong way.  Patch like for
   2388 if_ruby.c.
   2389 
   2390 ":helpgrep" should use the directory from 'helpfile'.
   2391 
   2392 The need_fileinfo flag is messy.  Instead make the message right away and put
   2393 it in keep_msg?
   2394 
   2395 Editing a file remotely that matches 'wildignore' results in a "no match"
   2396 error.  Should only happen when there are wildcards, not when giving the file
   2397 name literally, and esp. if there is only one name.
   2398 
   2399 Test 61 fails sometimes.  This is a timing problem: "sleep 2" sometimes takes
   2400 longer than 2 seconds.
   2401 
   2402 Using ":au CursorMoved * cmd" invokes mch_FullName(), which can be slow.
   2403 Can this be avoided? (Thomas Waba, 2008 Aug 24)
   2404 Also for ":w" without a file name.
   2405 The buffer has the full path in ffname, should pass this to the autocommand.
   2406 
   2407 "vim -C" often has 'nocompatible', because it's set in some startup script.
   2408 Set 'compatible' after startup is done?  Patch by James Vega, 2008 Feb 7.
   2409 
   2410 VMS: while editing a file found in complex, Vim will save file into the first
   2411 directory of the path and not to the original location of the file.
   2412 (Zoltan Arpadffy)
   2413 
   2414 VMS: VFC files are in some cases truncated during reading (Zoltan Arpadffy)
   2415 
   2416 input() completion should not insert a backslash to escape a space in a file
   2417 name?
   2418 
   2419 Ruby completion is insecure.  Can this be fixed?
   2420 
   2421 When 'backupskip' is set from $TEMP special characters need to be escaped.
   2422 (patch by Grembowietz, 2007 Feb 26, not quite right)
   2423 Another problem is that file_pat_to_reg_pat() doesn't recognize "\\", so "\\("
   2424 will be seen as a path separator plus "\(".
   2425 
   2426 gvim d:\path\path\(FILE).xml should not remove the \ before the (.
   2427 This also fails with --remote.
   2428 
   2429 When doing ":quit" the Netbeans "killed" event isn't sent.  (Xavier de Gaye,
   2430 2008 Nov 10)  call netbeans_file_closed() at the end of buf_freeall(), or in
   2431 all places where buf_freeall() is called?
   2432 
   2433 aucmd_prepbuf() should also use a window in another tab page.
   2434 
   2435 When unloading a buffer in a BufHidden autocommand the hidden flag is reset?
   2436 (Bob Hiestand, 2008 Aug 26, Aug 27)
   2437 
   2438 Substituting an area with a line break with almost the same area does change
   2439 the Visual area.  Can this be fixed? (James Vega, 2006 Sept 15)
   2440 
   2441 GUI: When combining fg en bg make sure they are not equal.
   2442 
   2443 Use different pt_br dictionary for spell checking. (Jackson A. Aquino, 2006
   2444 Jun 5)
   2445 
   2446 Use different romanian dictionary for spell checking. (Andrei Popescu, Nov
   2447 2008)  Use http://downloads.sourceforge.net/rospell/ro_RO.3.2.zip
   2448 Or the hunspell-ro.3.2.tar.gz file, it also has a iso-8859-2 list.
   2449 
   2450 In a C file with spell checking, in "% integer" "nteger" is seen as an error,
   2451 but "]s" doesn't find it.  "nteger" by itself is found. (Ralf Wildenhues, 2008
   2452 Jul 22)
   2453 
   2454 There should be something about spell checking in the user manual.
   2455 
   2456 Add an option to specify the character to use when a double-width character is
   2457 moved to the next line.  Default '>', set to a space to blank it out.  Check
   2458 that char is single width when it's set (compare with 'listchars').
   2459 
   2460 The generated vim.bat can avoid the loop for NT. (Carl Zmola, 2006 Sep 3)
   2461 
   2462 When showing a diff between a non-existent file and an existing one, with the
   2463 cursor in the empty buffer, the other buffer only shows the last line.  Change
   2464 the "insert" into a change from one line to many? (Yakov Lerner, 2008 May 27)
   2465 
   2466 These two abbreviations don't give the same result:
   2467 	let asdfasdf = "xyz\<Left>"
   2468 	cabbr XXX <C-R>=asdfasdf<CR>
   2469 	cabbr YYY xyz<Left>
   2470 
   2471 Michael Dietrich: maximized gvim sometimes displays output of external command
   2472 partly. (2006 Dec 7)
   2473 
   2474 In FileChangedShell command it's no longer allowed to switch to another
   2475 buffer.  But the changed buffer may differ from the current buffer, how to
   2476 reload it then?
   2477 
   2478 For Aap: include a config.arg.example file with hints how to use config.arg.
   2479 
   2480 Default for 'background' is wrong when using xterm with 256 colors.
   2481 Table with estimates from Matteo Cavalleri, 2014 Jan 10.
   2482 
   2483 Setting 'background' resets the Normal background color:
   2484    highlight Normal ctermbg=DarkGray
   2485    set background=dark
   2486 This is undesired, 'background' is supposed to tell Vim what the background
   2487 color is, not reset it.
   2488 
   2489 Completion menu: For a wrapping line, completing a long file name, only the
   2490 start of the path is shown in the menu.  Should move the menu to the right to
   2491 show more text of the completions.  Shorten the items that don't fit in the
   2492 middle?
   2493 
   2494 Accessing file#var in a function should not need the g: prepended.
   2495 
   2496 When exiting detects a modified buffer, instead of opening the buffer in the
   2497 current tab, use an existing tab, if possible.  Like finding a window where
   2498 the buffer is displayed. (Antonios Tsakiridis)
   2499 
   2500 When ":cn" moves to an error in the same line the message isn't shortened.
   2501 Only skip shortening for ":cc"?
   2502 
   2503 Problem with ":call" and dictionary function. Hari Krishna Dara, Charles
   2504 Campbell 2006 Jul 06.
   2505 
   2506 A custom completion function in a ":command" cannot be a Funcref. (Andy
   2507 Wokula, 2007 Aug 25)
   2508 
   2509 Problem with using :redir in user command completion function? (Hari Krishna
   2510 Dara, 2006 June 21)
   2511 
   2512 Another resizing problem when setting 'columns' and 'lines' to a very large
   2513 number. (Tony Mechelynck, 2007 Feb 6)
   2514 
   2515 After starting Vim, using '0 to jump somewhere in a file, ":sp" doesn't center
   2516 the cursor line.  It works OK after some other commands.
   2517 
   2518 Win32: Is it possible to have both postscript and Win32 printing?
   2519 
   2520 Using UTF-8 character with ":command" does not work properly. (Matt Wozniski,
   2521 2008 Sep 29)
   2522 
   2523 In the Netbeans interface add a "vimeval" function, so that the other side can
   2524 check the result of has("patch13").
   2525 
   2526 Cursor line at bottom of window instead of halfway after saving view and
   2527 restoring.  Only with 'nowrap'. (Robert Webb, 2008 Aug 25)
   2528 
   2529 Netrw has trouble executing autocommands only for a directory.  Add <isdir>
   2530 and <notisdir> to autocommand patterns?  Also <isfile>?
   2531 
   2532 Add command modifier that skips wildcard expansion, so that you don't need to
   2533 put backslashes before special chars, only for white space.
   2534 
   2535 In mswin.vim: Instead of mapping <C-V> for Insert mode in a complicated way,
   2536 can it be done like ":imap <C-V> <MiddleMouse>" without negative side effects?
   2537 
   2538 When right after "vim file", "M" then CTRL-W v the windows are scrolled
   2539 differently and unexpectedly.  Caused by patch 7.2.398?
   2540 
   2541 The magic clipboard format "VimClipboard2" appears in several places.  Should
   2542 be only one.
   2543 
   2544 Win32, NTFS: When editing a specific infostream directly and 'backupcopy' is
   2545 "auto" should detect this situation and work like 'backupcopy' is "yes".  File
   2546 name is something like "c:\path\foo.txt:bar", includes a colon.  (Alex
   2547 Jakushev, 2008 Feb 1)
   2548 
   2549 Small problem displaying diff filler line when opening windows with a script.
   2550 (David Luyer, 2007 Mar 1 ~/Mail/oldmail/mool/in.15872 )
   2551 
   2552 Is it allowed that 'backupext' is empty?  Problems when backup is in same dir
   2553 as original file?  If it's OK don't compare with 'patchmode'. (Thierry Closen)
   2554 
   2555 Patch for adding ":lscscope". (Navdeep Parhar, 2007 Apr 26; update 2008 Apr
   2556 23)
   2557 
   2558 ":mkview" isn't called with the right buffer argument.  Happens when using
   2559 tabs and the autocommand "autocmd BufWinLeave * mkview".  (James Vega, 2007
   2560 Jun 18)
   2561 
   2562 When completing from another file that uses a different encoding completion
   2563 text has the wrong encoding.  E.g., when 'encoding' is utf-8 and file is
   2564 latin1.  Example from Gombault Damien, 2007 Mar 24.
   2565 
   2566 In gvim the backspace key produces a backspace character, but on Linux the
   2567 VERASE key is Delete.  Set VERASE to Backspace? (patch by Stephane Chazelas,
   2568 2007 Oct 16)
   2569 
   2570 TermResponse autocommand isn't always triggered when using vimdiff. (Aron
   2571 Griffis, 2007 Sep 19)
   2572 
   2573 Create a gvimtutor.1 file and change Makefiles to install it.
   2574 
   2575 When 'encoding' is utf-8 typing text at the end of the line causes previously
   2576 typed characters to be redrawn.  Caused by patch 7.1.329. (Tyler Spivey, 2008
   2577 Sep 3, 11)
   2578 
   2579 ":vimgrep" does not recognize a recursive symlink.  Is it possible to detect
   2580 this, at least for Unix (using device/inode)?
   2581 
   2582 When switching between windows the cursor is often put in the middle.
   2583 Remember the relative position and restore that, just like lnum and col are
   2584 restored. (Luc St-Louis)
   2585 
   2586 Add an option for a minimal text length before inserting a line break for
   2587 'textwidth'.  Avoids very short lines when a very long word follows.
   2588 (Kartik Agaram)
   2589 
   2590 
   2591 Better plugin support (not plugin manager, see elsewhere for that):
   2592 - Avoid use of feedkeys, add eval functions where needed:
   2593   - manipulating the Visual selection?
   2594 - Add createmark(): add a mark like mM, but return a unique ID.  Need some way
   2595   to clean them up again...  Use a name + the script ID.
   2596   Add createmark( , 'c') to track inserts/deletes before the column.
   2597 - Plugins need to make a lot of effort, lots of mappings, to know what
   2598   happened before pressing the key that triggers a plugin action.  How about
   2599   keeping the last N pressed keys, so that they do not need to be mapped?
   2600 - equivalent of netbeans_beval_cb().  With an autocommand?
   2601 - Add something to enable debugging when a remote message is received.
   2602 
   2603 
   2604 More patches:
   2605 -   Another patch for Javascript indenting. (Hari Kumar, 2010 Jul 11)
   2606     Needs a few tests.
   2607 -   Add 'cscopeignorecase' option. (Liang Wenzhi, 2006 Sept 3)
   2608 -   Extra argument to strtrans() to translate special keys to their name (Eric
   2609     Arnold, 2006 May 22)
   2610 -   Mac: indicate whether a buffer was modified. (Nicolas Weber, 2006 Jun 30)
   2611 -   Allow negative 'nrwidth' for left aligning. (Nathan Laredo, 2006 Aug 16)
   2612 -   ml_append_string(): efficiently append to an existing line. (Brad
   2613     Beveridge, 2006 Aug 26)  Use in some situations, e.g., when pasting a
   2614     character at a time?
   2615 -   recognize hex numbers better. (Mark Manning, 2006 Sep 13)
   2616 -   Add <AbbrExpand> key, to expand an abbreviation in a mapping. (Kana
   2617     Natsuno, 2008 Jul 17)
   2618 -   Add 'wspara' option, also accept blank lines like empty lines for "{" and
   2619     "}". (Mark Lundquist, 2008 Jul 18)
   2620 -   Patch to add CTRL-T to delete part of a path on cmdline. (Adek, 2008 Jul
   2621     21)
   2622 -   Instead of creating a copy of the tutor in all the shell scripts, do it in
   2623     vimtutor.vim. (Jan Minar, 2008 Jul 20)
   2624 -   When fsync() fails there is no hint about what went wrong.  Patch by Ben
   2625     Schmidt, 2008 Jul 22.
   2626 -   testdir/Make_dos_sh.mak for running tests with MingW. (Bill McCarthy, 2008
   2627     Sep 13)
   2628 -   Replace ccomplete.vim by cppcomplete.vim from www.vim.org?  script 1520 by
   2629     Vissale Neang.  (Martin Stubenschrott) Asked Vissale to make the scripts
   2630     more friendly for the Vim distribution.
   2631     New version received 2008 Jan 6.
   2632     No maintenance in two years...
   2633 -   Patch to open dropped files in new tabs. (Michael Trim, 2010 Aug 3)
   2634 
   2635 Awaiting updated patches:
   2636 9   Mac unicode patch (Da Woon Jung, Eckehard Berns):
   2637     8   Add patch from Muraoka Taro (Mar 16) to support input method on Mac?
   2638 	New patch 2004 Jun 16
   2639     - selecting proportional font breaks display
   2640     - UTF-8 text causes display problems.  Font replacement causes this.
   2641     - Command-key mappings do not work. (Alan Schmitt)
   2642     - With 'nopaste' pasting is wrong, with 'paste' Command-V doesn't work.
   2643       (Alan Schmitt)
   2644     - remove 'macatsui' option when this has been fixed.
   2645     - when 'macatsui' is off should we always convert to "macroman" and ignore
   2646       'termencoding'?
   2647 9   HTML indenting can be slow.  Caused by using searchpair().  Can search()
   2648     be used instead?  A.Politz is looking into a solution.
   2649 8   Win32: Add minidump generation. (George Reilly, 2006 Apr 24)
   2650 7   Completion of network shares, patch by Yasuhiro Matsumoto.
   2651     Update 2004 Sep 6.
   2652     How does this work?  Missing comments.
   2653 8   Add a few more command names to the menus.  Patch from Jiri Brezina
   2654     (28 feb 2002).  Will mess the translations...
   2655 7   ATTENTION dialog choices are more logical when "Delete it" appears
   2656     before "Quit".  Patch by Robert Webb, 2004 May 3.
   2657 -   Include flipcase patch: ~/vim/patches/wall.flipcase2 ?  Make it work
   2658     for multibyte characters.
   2659 -   Win32: add options to print dialog.  Patch from Vipin Aravind.
   2660 -   Patch to add highlighting for whitespace. (Tom Schumm, 2003 Jul 5)
   2661     use the patch that keeps using HLF_8 if HLF_WS has not
   2662     been given values.
   2663     Add section in help files for these highlight groups?
   2664 7   Add "DefaultFG" and "DefaultBG" for the colors of the menu. (Marcin
   2665     Dalecki has a patch for Motif and Carbon)
   2666 -   Add possibility to highlight specific columns (for Fortran).  Or put a
   2667     line in between columns (e.g., for 'textwidth').
   2668     Patch to add 'hlcolumn' from Vit Stradal, 2004 May 20.
   2669     confirm()		add "flags" argument, with 'v' for vertical
   2670 			    layout and 'c' for console dialog. (Haegg)
   2671 			    Flemming Madsen has a patch for the 'c' flag
   2672 			    (2003 May 13)
   2673     raisewin()		raise gvim window (see HierAssist patch for
   2674 			    Tcl implementation ~/vim/HierAssist/ )
   2675     taglist()		add argument to specify maximum number of matches.
   2676 			useful for interactive things or completion.
   2677     col('^')            column of first non-white character.
   2678 			Can use "len(substitute(getline('.'), '\S.*', '', ''))
   2679 			+ 1", but that's ugly.
   2680 7   Add patch from Benoit Cerrina to integrate Vim and Perl functions
   2681     better.  Now also works for Ruby (2001 Nov 10)
   2682 7   When 'rightleft' is set, the search pattern should be displayed right
   2683     to left as well?  See patch of Dec 26. (Nadim Shaikli)
   2684 8   Option to lock all used memory so that it doesn't get swapped to disk
   2685     (unencrypted).  Patch by Jason Holt, 2003 May 23.  Uses mlock.
   2686 7   Add ! register, for shell commands. (patch from Grenie)
   2687 8   In the gzip plugin, also recognize *.gz.orig, *.gz.bak, etc.  Like it's
   2688     done for filetype detection.  Patch from Walter Briscoe, 2003 Jul 1.
   2689 7   Add a "-@ filelist" argument: read file names from a file. (David
   2690     Kotchan has a patch for it)
   2691 7   Add ":justify" command.  Patch from Vit Stradal 2002 Nov 25.
   2692 -   findmatch() should be adjusted for Lisp.  See remark at
   2693     get_lisp_indent().  Esp. \( and \) should be skipped. (Dorai Sitaram,
   2694     incomplete patch Mar 18)
   2695 -   For GUI Find/Replace dialog support using a regexp.  Patch for Motif
   2696     and GTK by degreneir (nov 10 and nov 18).
   2697 -   Patch for "paranoid mode" by Kevin Collins, March 7.  Needs much more work.
   2698 -   Patch for redo register. (Ben Schmidt, 2007 Oct 19)
   2699     Await response to question to make the register writable.
   2700 
   2701 
   2702 Better 'rightleft' or BIDI support:
   2703 - Minimal Vi with bidi support: https://github.com/aligrudi/neatvi
   2704   By Ali Gholami Rudi, also worked on arabic.c
   2705 
   2706 
   2707 Spell checking:
   2708 -   List of common misspellings in English:
   2709     https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
   2710     There are other languages.
   2711 -   [s does not find missing capital at start of the line.  #10838
   2712     Probably because the dot at the end of the previous line isn't seen.
   2713 -   When 'cursorline' is set and the first word should have SpellCap
   2714     highlighting, redrawing the line removes it when moving the cursor away
   2715     from the line. (#7085)  Would need to inspect the end of the previous line
   2716     and update "capcol_lnum" and "cap_col".
   2717 -   Mixup of highlighting when there is a match and SpellBad. (ZyX, 2015 Jan 1)
   2718 -   Spell files use a latin single quote. Unicode also has another single
   2719     quote: 0x2019.  (Ron Aaron, 2014 Apr 4)
   2720     New OpenOffice spell files support this with ICONV.  But they are not
   2721     compatible with Vim spell files.  The old files can no longer be
   2722     downloaded.
   2723 -   Add a feature to only consider two spaces after a dot to start a new
   2724     sentence.  Don't give the capitalization error when there is one space.
   2725 -   Add a way to specify punctuation characters.  Add the superscript numbers
   2726     by default: 0x2070, 0xb9, 0xb2, 0xb3, 0x2074 - 0x2079.
   2727 -   In popup menu: If the only problem is the case of the first character,
   2728     don't offer "ignore" and "add to word list".
   2729 -   Spell menu: When using the Popup menu to select a replacement word,
   2730     ":spellrepeat" doesn't work.  SpellReplace() uses setline().  Can it use
   2731     "z=" somehow?  Or use a new function.
   2732 
   2733 
   2734 Quickfix/Location List:
   2735 -   Window size is wrong when using quickfix window. (Lifepillar, 2018 Aug 24,
   2736     #2999)
   2737 -   When using CTRL-W CR in the quickfix window, the jumplist in the opened
   2738     window is cleared, to avoid going back to the list of errors buffer (would
   2739     have two windows with it).  Can we just remove the jump list entries for
   2740     the quickfix buffer?
   2741 -   When an item in the quickfix list has a file name that does not exist,
   2742     behave like the item was not a match for :cnext.
   2743 -   When adding an item to a new quickfix list make ":cnext" jump to that
   2744     item.  Make a difference being at the first item and not having used
   2745     :cnext at all.  (Afanasiy Fet, 2017 Jan 3)
   2746 -   When opening quickfix window, disable spell checking?
   2747 -   Patch for supporting count before CR in quickfix window. (AOYAMA Shotaro,
   2748     2007 Jan 1)
   2749 -   Patch from Herculano de Lima Einloft Neto for better formatting of the
   2750     quickfix window (2004 dec 2)
   2751 -   Amiga: When using quickfix with the Manx compiler we only get the first 25
   2752     errors.  How do we get the rest?
   2753 8   The quickfix file is read without conversion, thus in 'encoding'.  Add an
   2754     option to specify the encoding of the errorfile and convert it.  Also for
   2755     ":grep" and ":helpgrep".
   2756     More generic solution: support a filter (e.g., by calling a function).
   2757 7   Add a command that goes back to the position from before jumping to the
   2758     first quickfix location.
   2759 
   2760 
   2761 Python Interface:
   2762 -   Python 3.8 doesn't work. (Antonios Hadjigeorgalis, #5509)
   2763 -   Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
   2764 -   Build with Python on Mac does not always use the right library.
   2765     (Kazunobu Kuriyama, 2015 Mar 28)
   2766 -   Win32: The Python interface only works with one version of Python,
   2767     selected at compile time.  Can this be made to work with version 2.1 and
   2768     2.2 dynamically?
   2769 -   Be able to define a Python function that can be called directly from Vim
   2770     script.  Requires converting the arguments and return value, like with
   2771     vim.bindeval().
   2772 
   2773 
   2774 Vi incompatibility:
   2775 -   Try new POSIX tests, made after my comments. (Geoff Clare, 2005 April 7)
   2776     Version 1.5 is in ~/src/posix/1.5. (Lynne Canal)
   2777 8   With undo/redo only marks in the changed lines should be changed.  Other
   2778     marks should be kept.  Vi keeps each mark at the same text, even when it
   2779     is deleted or restored. (Webb)
   2780     Also: A mark is lost after: make change, undo, redo and undo.
   2781     Example: "{d''" then "u" then "d''": deletes an extra line, because the ''
   2782     position is one line down. (Veselinovic)
   2783 8   When stdin is not a tty, and Vim reads commands from it, an error should
   2784     make Vim exit.
   2785 7   Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
   2786     (currently you can continue typing, but it's truncated later anyway).
   2787     Requires a way to make CTRL-C interrupt select() when in cooked input.
   2788 8   When loading a file in the .exrc, Vi loads the argument anyway.  Vim skips
   2789     loading the argument if there is a file already.  When no file argument
   2790     given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
   2791 6   In Insert mode, when using <BS> or <Del>, don't wipe out the text, but
   2792     only move back the cursor.	Behaves like '$' in 'cpoptions'.  Use a flag
   2793     in 'cpoptions' to switch this on/off.
   2794 8   When editing a file which is a symbolic link, and then opening another
   2795     symbolic link on the same file, Vim uses the name of the first one.
   2796     Adjust the file name in the buffer to the last one used?  Use several file
   2797     names in one buffer???
   2798     Also: When first editing file "test", which is symlink to "test2", and
   2799     then editing "test2", you end up editing buffer "test" again.  It's not
   2800     logical that the name that was first used sticks with the buffer.
   2801 7   The ":undo" command works differently in Ex mode.  Edit a file, make some
   2802     changes, "Q", "undo" and _all_ changes are undone, like the ":visual"
   2803     command was one command.
   2804     On the other hand, an ":undo" command in an Ex script only undoes the last
   2805     change (e.g., use two :append commands, then :undo).
   2806 7   The ":map" command output overwrites the command.  Perhaps it should keep
   2807     the ":map" when it's used without arguments?
   2808 7   CTRL-L is not the end of a section?  It is for Posix!  Make it an option.
   2809 7   Add a way to send an email for a crashed edit session.  Create a file when
   2810     making changes (containing name of the swap file), delete it when writing
   2811     the file.  Supply a program that can check for crashed sessions (either
   2812     all, for a system startup, or for one user, for in a .login file).
   2813 7   Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
   2814 7   "z3<CR>" should still use the whole window, but only redisplay 3 lines.
   2815 7   ":tag xx" should move the cursor to the first non-blank.  Or should it go
   2816     to the match with the tag?	Option?
   2817 7   Implement 'autoprint'/'ap' option.
   2818 7   Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
   2819     (Sayre).
   2820 7   Add flag in 'cpoptions' that makes operator (yank, filter) not move the
   2821     cursor, at least when cancelled. (default Vi compatible).
   2822 7   This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
   2823     In Vi you can edit in visual mode, and when doing "Q" you jump to the next
   2824     match.  Nvi can do it too.
   2825 7   Support '\' for line continuation in Ex mode for these commands: (Luebking)
   2826 	g/./a\		    g/pattern1/ s/pattern2/rep1\\
   2827 	line 1\		    line 2\\
   2828 	line 2\		    line 3\\
   2829 	.		    line4/
   2830 6   ":e /tmp/$tty" doesn't work.  ":e $uid" does.  Is $tty not set because of
   2831     the way the shell is started?
   2832 6   Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
   2833     thing.  (only repeat insert for the first line).
   2834 
   2835 
   2836 GTK+ GUI:
   2837 9   Crash with X command server over ssh. (Ciaran McCreesh, 2006 Feb 6)
   2838 8   GTK 2: Combining UTF-8 characters not displayed properly in menus (Mikolaj
   2839     Machowski)  They are displayed as separate characters.  Problem in
   2840     creating a label?
   2841 8   GTK 2: Combining UTF-8 characters are sometimes not drawn properly.
   2842     Depends on the font size, "monospace 13" has the problem.  Vim seems to do
   2843     everything right, must be a GTK bug.  Is there a way to work around it?
   2844 9   Can't paste a Visual selection from GTK-gvim to vim in xterm or Motif gvim
   2845     when it is longer than 4000 characters.  Works OK from gvim to gvim and
   2846     vim to vim.  Pasting through xterm (using the shift key) also works.
   2847     It starts working after GTK gvim loses the selection and gains it again.
   2848 -   Gnome2: When moving the toolbar out of the dock, so that it becomes
   2849     floating, it can no longer be moved.  Therefore making it float has been
   2850     blocked for now.
   2851 -   Mapping with partial match not executed properly in GTK. (Ingo Karkat,
   2852     #7082)
   2853 -   Add more testing of the GTK GUI.
   2854     - gtk_test_widget_click() can be used to simulate a click in a widget.
   2855 -   Tests failing for "make testgui" with GTK:
   2856     - Test_setbufvar_options()
   2857     - Test_exit_callback_interval()
   2858 -   When adding a timer from 'balloonexpr' it won't fire, because
   2859     g_main_context_iteration() doesn't return.  Need to trigger an event when
   2860     the timer expires.
   2861 -   problem with 'L' in 'guioptions' changing the window width.  (Aaron
   2862     Cornelius, 2012 Feb 6)
   2863 -   Patch to invert characters differently in GTK. (Yukihiro Nakadaira, 2013
   2864     May 5)
   2865 -   drawing a double-width combining character over single-width characters
   2866     doesn't look right. (Dominique Pelle, 2010 Aug 8)
   2867 -   tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25)
   2868 -   Patch for GTK buttons X1Mouse and X2Mouse. (Christian J. Robinson, 2010
   2869     Aug 9)
   2870 -   When setting 'columns' in a startup script and doing ":vertical diffsplit"
   2871     the window isn't redrawn properly, see two vertical bars.
   2872 -   when the Tab pages bar appears or disappears while the window is maximized
   2873     the window is no longer maximized.  Patch that has some idea but doesn't
   2874     work from Geoffrey Antos, 2008 May 5.  Also: the window may no longer fit
   2875     on the screen, thus the command line is not visible.
   2876 -   Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn
   2877     Winckler, 2010 Jun 30)
   2878 
   2879 
   2880 Win32 GUI known bugs:
   2881 -   Win32: tearoff menu window should have a scrollbar when it's taller than
   2882     the screen.
   2883 8   The -P argument doesn't work very well with many MDI applications.
   2884     The last argument of CreateWindowEx() should be used, see MSDN docs.
   2885     Tutorial (link seems dead): win32assembly.online.fr/tut32.html
   2886 6   Win32 GUI: With "-u NONE -U NONE" and doing "CTRL-W v" "CTRL-W o", the ":"
   2887     of ":only" is highlighted like the cursor.  (Lipelis)
   2888 8   When 'encoding' is "utf-8", should use 'guifont' for both normal and wide
   2889     characters to make Asian languages work.  Win32 fonts contain both
   2890     type of characters.
   2891 7   When font smoothing is enabled, redrawing can become very slow.  The reason
   2892     appears to be drawing with a transparent background.  Would it be possible
   2893     to use an opaque background in most places?
   2894 7   The cursor color indicating IME mode doesn't work properly. (Shizhu Pan,
   2895     2004 May 9)
   2896 8   Win32: When clicking on the gvim title bar, which gives it focus, produces
   2897     a file-changed dialog, after clicking on a button in that dialog the gvim
   2898     window follows the mouse.  The button-up event is lost.  Only with
   2899     MS-Windows 98?
   2900     Try this: ":set sw ts", get enter-prompt, then change the file in a
   2901     console, go back to Vim and click "reload" in the dialog for the changed
   2902     file: Window moves with the cursor!
   2903     Put focus event in input buffer and let generic Vim code handle it?
   2904 8   When Vim is minimized and when maximizing it a file-changed dialog pops
   2905     up, Vim isn't maximized.  It should be done before the dialog, so that it
   2906     appears in the right position. (Webb)
   2907 9   When selecting at the more-prompt or hit-enter-prompt, the right mouse
   2908     button doesn't give popup menu.
   2909     At the hit-enter prompt CTRL-Y doesn't work to copy the modeless
   2910     selection.
   2911     On the command line, don't get a popup menu for the right mouse button.
   2912     Let the middle button paste selected text (not the clipboard but the
   2913     non-Visual selection)?  Otherwise CTRL-Y has to be used to copy the text.
   2914 8   When 'grepprg' doesn't execute, the error only flashes by, the
   2915     user can hardly see what is wrong. (Moore)
   2916     Could use vimrun with an "-nowait" argument to only wait when an error
   2917     occurs, but "command.com" doesn't return an error code.
   2918 8   When the 'shell' cannot be executed, should give an appropriate error msg.
   2919     Esp. for a filter command, currently it only complains the file could not
   2920     be read.
   2921 7   At the hit-enter prompt scrolling now no longer works.  Need to use the
   2922     keyboard to get around this.  Pretend <CR> was hit when the user tries to
   2923     scroll?
   2924 7   Scrollbar width doesn't change when selecting other windows appearance.
   2925     Also background color of Toolbar and rectangle below vert. scrollbar.
   2926 6   Drawing text transparently doesn't seem to work (when drawing part cursor).
   2927 8   CTRL key doesn't always work in combination with ALT key.  It does work
   2928     for function keys, not for alphabetic characters.  Perhaps this is because
   2929     CTRL-ALT is used by Windows as AltGr?
   2930 8   CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY.  How do we
   2931     know which keyboard is being used?
   2932 7   When scrolling, and a background color is dithered, the dither pattern
   2933     doesn't always join correctly between the scrolled area and the new drawn
   2934     area (Koloseike).
   2935 8   When gui_init_font() is called with "*", p_guifont is freed while it might
   2936     still be used somewhere.  This is too tricky, do the font selection first,
   2937     then set the new font by name (requires putting all logfont parameters in
   2938     the font name).
   2939 -   When running a fast timer, the cursor no longer blinks.  Was reported:
   2940     cursor blinks in terminal on widows with a timer. (xtal8, #2142)
   2941 -   Last message from startup doesn't show up when there is an echoerr
   2942     command. (Cyril Slobin, 2009 Mar 13)
   2943 
   2944 
   2945 Motif:
   2946 6   New Motif toolbar button from Marcin Dalecki:
   2947     - When the mouse pointer is over an Agide button the red becomes black.
   2948       Something with the way colors are specified in the .xpm file.
   2949     - The pixmap is two pixels smaller than it should be.  The gap is filled
   2950       with grey instead of the current toolbar background color.
   2951 9   Can configure be changed to disable netbeans if the Xpm library is
   2952     required and it's missing?
   2953 8   When using the resource "Vim*borderwidth 2" the widgets are positioned
   2954     wrong.
   2955 9   XIM is disabled by default for SGI/IRIX.  Fix XIM so that 'imdisable' can
   2956     be off by default.
   2957 9   XIM doesn't work properly for Motif. (Yasuhiro Matsumoto)  For now,
   2958     keep XIM active at all times when the input method has the preediting
   2959     flag.
   2960 8   X11: A menu that contains an umlaut is truncated at that character.
   2961     Happens when the locale is "C", which uses ASCII instead of IS0-8859-1.
   2962     Is there a way to use latin1 by default?  Gnome_init() seems to do this.
   2963 8   Perhaps use fontsets for everything?
   2964 6   When starting in English and switching the language to Japanese, setting
   2965     the locale with ":lang", 'guifontset' and "hi menu font=", deleting all
   2966     menus and setting them again, the menus don't use the new font.  Most of
   2967     the tooltips work though...
   2968 7   Motif: when using a file selection dialog, the specified file name is not
   2969     always used (when specifying a filter or another directory).
   2970 8   When 'encoding' is different from the current locale (e.g., utf-8) the
   2971     menu strings don't work.  Requires conversion from 'encoding' to the
   2972     current locale.  Workaround: set 'langmenu'.
   2973 
   2974 
   2975 Motif GUI:
   2976 -   gui_mch_browsedir() is missing, browsedir() doesn't work nicely.
   2977 7   Use XmStringCreateLocalized() instead of XmStringCreateSimple()?
   2978     David Harrison says it's OK (it exists in Motif 1.2).
   2979 8   Lesstif: When deleting a menu that's torn off, the torn off menu becomes
   2980     very small instead of disappearing.  When closing it, Vim crashes.
   2981     (Phillipps)
   2982 
   2983 
   2984 GUI:
   2985 9   On Solaris, creating the popup menu causes the right mouse button no
   2986     longer to work for extending the selection. (Halevy)
   2987 9   When running an external program, it can't always be killed with CTRL-C.
   2988     e.g., on Solaris 5.5, when using "K" (Keech).  Other 'guipty' problems on
   2989     Solaris 2.6. (Marley)
   2990 9   On Solaris: Using a "-geometry" argument, bigger than the window where Vim
   2991     is started from, causes empty lines below the cmdline. (raf)
   2992 8   When setting 'langmenu', it should be effective immediately.  Store both
   2993     the English and the translated text in the menu structure.  Re-generate
   2994     the translation when 'langmenu' has changed.
   2995 8   Basic flaw in the GUI code: NextScreen is updated before calling
   2996     gui_write(), but the GUI code relies on NextScreen to represent the state
   2997     of where it is processing the output.
   2998     Need better separation of Vim core and GUI code.
   2999 8   When fontset support is enabled, setting 'guifont' to a single font
   3000     doesn't work.
   3001 8   Menu priority for sub-menus for: Amiga.
   3002 8   When translating menus ignore the part after the Tab, the shortcut.  So
   3003     that the same menu item with a different shortcut (e.g., for the Mac) are
   3004     still translated.
   3005 8   Add menu separators for Amiga.
   3006 8   Add way to specify the file filter for the browse dialog.  At least for
   3007     browse().
   3008 8   Add dialog for search/replace to other GUIs?  Tk has something for this,
   3009     use that code?  Or use console dialog.
   3010 8   When selecting a font with the font dialog and the font is invalid, the
   3011     error message disappears too quick.
   3012 7   More features in the find/replace dialog:
   3013     - regexp on/off
   3014     - search in selection/buffer/all buffers/directory
   3015        when all buffers/directory is used:
   3016 	- filter for file name
   3017        when directory is used:
   3018 	- subdirectory on/off
   3019 	- top directory browser
   3020 8   gui_check_colors() is not called at the right moment.  Do it much later,
   3021     to avoid problems.
   3022 8   gui_update_cursor() is called for a cursor shape change, even when there
   3023     are mappings to be processed.  Only do something when going to wait for
   3024     input.  Or maybe every 100 ms?
   3025 8   X11: When the window size is reduced to fit on screen, there are blank
   3026     lines below the text and bottom scrollbar.  "gvim -geometry 80x78+0+0".
   3027     When the "+0+0" is omitted it works.
   3028 8   When starting an external command, and 'guipty' set, BS and DEL are mixed
   3029     up.  Set erase character somehow?
   3030 8   The compose key doesn't work properly (Cepas).  Both for Win32 and X11.
   3031 7   The cursor in an inactive window should be hollow.  Currently it's not
   3032     visible.
   3033 7   GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
   3034     hollow, after window lowered/raised it's OK. (Godfrey)
   3035 7   When starting GUI with ":gui", and window is made smaller because it
   3036     doesn't fit on the screen, there is an extra redraw.
   3037 8   When setting font with .Xdefaults, there is an extra empty line at the
   3038     bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
   3039 8   When font shape changes, but not the size, doing ":set font=" does not
   3040     redraw the screen with the new font.  Also for Win32.
   3041     When the size changes, on Solaris 2.5 there isn't a redraw for the
   3042     remaining part of the window (Phillipps).
   3043 -   Flashes really badly in certain cases when running remotely from a Sun.
   3044 4   Re-write the code so that the highlighting isn't changed multiple times
   3045     when doing a ":hi clear".  The color changes happen three or more times
   3046     currently.  This is very obvious on a 66Mhz 486.
   3047 
   3048 
   3049 Win32 console:
   3050 8   Should $USERPROFILE be preferred above $HOMEDRIVE/$HOMEPATH?  No, but it's
   3051     a good fallback, thus use:
   3052 	    $HOME
   3053 	    $HOMEDRIVE$HOMEPATH
   3054 	    SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_APPDATA, FALSE);
   3055 	    $USERPROFILE
   3056 	    SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_COMMON_APPDATA, FALSE);
   3057 	    $ALLUSERSPROFILE
   3058 	    $SYSTEMDRIVE\
   3059 	    C:\
   3060 8   Win32 console: <M-Up> and <M-Down> don't work. (Geddes)  We don't have
   3061     special keys for these.  Should use modifier + key.
   3062 8   Win32 console: caps-lock makes non-alpha keys work like with shift.
   3063     Should work like in the GUI version.
   3064 8   Environment variables in DOS are not case sensitive.  Make a define for
   3065     STRCMP_ENV(), and use it when comparing environment var names.
   3066 8   Setting 'shellslash' has no immediate effect.  Change all file names when
   3067     it is set/reset?  Or only use it when actually executing a shell command?
   3068 8   When editing a file on a Samba server, case might matter.  ":e file"
   3069     followed by ":e FILE" will edit "file" again, even though "FILE" might be
   3070     another one.  Set last used name in buflist_new()?  Fix do_ecmd(), etc.
   3071 8   When a buffer is editing a file like "ftp://mach/file", which is not going
   3072     to be used like a normal file name, don't change the slashes to
   3073     backslashes. (Ronald Hoellwarth)
   3074 
   3075 
   3076 Win32 console:
   3077 9   When editing a file by its short file name, it should be expanded into its
   3078     long file name, to avoid problems like these: (Mccollister)
   3079      1) Create a file called ".bashrc" using some other editor.
   3080      2) Drag that file onto a shortcut or the actual executable.
   3081      3) Note that the file name is something like BASHRC~1
   3082      4) Go to File->Save As menu item and type ".bashrc" as the file name.
   3083      5) Press "Yes" to indicate that I want to overwrite the file.
   3084      6) Note that the message "File exists (add ! to override)" is displayed
   3085 	and the file is not saved.
   3086     Use FindFirstFile() to expand a file name and directory in the path to its
   3087     long name.
   3088 8   Also implement 'conskey' option for the Win32 console version?  Look at
   3089     how Xvi does console I/O under Windows NT.
   3090 7   Re-install the use of $TERM and support the use of different terminals,
   3091     besides the console.
   3092 8   Use of <altgr> modifier doesn't work?  5.3 was OK. (Garcia-Suarez/Guckes)
   3093 9   Mapping <C-S-Tab> doesn't work correctly.  How to see the difference with
   3094     <C-S-i>?
   3095 9   tmpnam() uses file in root of file system: "\asdf".  That doesn't work on
   3096     a Netware network drive.  Use same function as for Win32 GUI?
   3097 8   In os_win32.h, HAVE_STRICMP and HAVE_STRNICMP are defined only if __GNUC__
   3098     is not defined.  Shouldn't that be the other way around?
   3099 
   3100 
   3101 Amiga:
   3102 8   In mch_inchar() should use convert_input_safe() to handle incomplete byte
   3103     sequences.
   3104 9   In mch_expandpath() a "*" is to be expanded, but "\*" isn't.  Remove
   3105     backslashes in result.
   3106 8   Executing a shell, only one option for 'shell' is separated.  Should do
   3107     all options, using white space separation.
   3108 
   3109 
   3110 Macintosh:
   3111 -   GUI: gui_mch_browsedir() is missing.
   3112 7   Loading the Perl library only works on OS/X 10.2 or 10.3, never on both.
   3113     Load the Perl library dynamically see Python sources file dynload_mac
   3114     (Jack)
   3115     dynamic linking: https://developer.apple.com/library/archive/technotes/tn2064/_index.html
   3116 8   inputdialog() doesn't resize when giving more text lines. (David Fishburn,
   3117     2006 Sept 28)
   3118 8   Define vim_mkdir() for Macintosh.
   3119 8   Define mch_writable() for Macintosh.
   3120 9   When DiskLock is running, using a swap file causes a crash.  Appears to be
   3121     a problem with writing a file that starts with a dot. (Giacalone)
   3122 9   In mac_expandpath() check that handling of backslashes is done properly.
   3123 -   Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
   3124 -   Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
   3125 -   Mac with X11: clipboard doesn't work properly. (Raf, 2010 Aug 16)
   3126 -   Move Carbon todo items to os_mac.txt.  Note that this version is frozen,
   3127     try the Cocoa version.
   3128 -   After a ":vsplit" the left scrollbar doesn't appear until 'columns' is
   3129     changed or the window is resized.
   3130 -   Patch for configure: remove arch from ruby link args. (Knezevic, 2008 Mar
   3131     5)  Alternative: Kazuki Sakamoto, Mar 7.
   3132 -   trouble compiling with Motif, requires --disable-darwin. (Raf, 2008 Aug 1)
   3133     Reply by Ben Schmidt.
   3134 -   Using gvim: netrw window disappears. (Nick Lo, 2006 Jun 21)
   3135 
   3136 
   3137 "Small" problems:
   3138 -   When using e_secure in do_one_cmd() mention the command being executed,
   3139     otherwise it's not clear where it comes from.
   3140 9   For Turkish vim_tolower() and vim_toupper() also need to use utf_
   3141     functions for characters below 0x80. (Sertacyildiz)
   3142 9   When the last edited file is a help file, using '0 in a new Vim doesn't
   3143     edit the file as a help file.  'filetype' is OK, but 'iskeyword' isn't,
   3144     file isn't readonly, etc.
   3145 8   When an ":edit" is inside a try command and the ATTENTION prompt is used,
   3146     the :catch commands are always executed, also when the file is edited
   3147     normally.  Should reset did_emsg and undo side effects.  Also make sure
   3148     the ATTENTION message shows up.  Servatius Brandt works on this.
   3149 7   Vimtutor leaves escape sequence in terminal. This is the xterm response to
   3150     requesting the version number.  (Yasuhiro Matsumoto)
   3151 8   When redirecting and using ":silent" the current column for displaying and
   3152     redirection can be different.  Use a separate variable to hold the column
   3153     for redirection.
   3154 7   The messages for "vim --help" and "vim --version" don't use
   3155     'termencoding'.
   3156 -   Could the hit-enter prompt be avoided when a message only overlaps the
   3157     'showcmd' area?  Clear that area when the next cmd is typed.
   3158 8   When 'scrollbind' is set, a window won't scroll horizontally if the cursor
   3159     line is too short.  Add a word in 'scrollopt' to allow moving the cursor
   3160     to longer line that is visible.  A similar thing is done for the GUI when
   3161     using the horizontal scrollbar.
   3162 8   When giving a ":bwipeout" command a file-changed dialog may popup for this
   3163     buffer, which is pointless.  (Mike Williams)
   3164 8   On MS-Windows ":make" doesn't show output while it is working.  Use the
   3165     tee.exe from  http://unxutils.sourceforge.net/ ?  About 16 Kbyte in the
   3166     UnxUtils.zip archive.
   3167     Is it better than what we have in src/tee?
   3168 8   When doing Insert mode completion a mapping cannot recursively call
   3169     edit(), because the completion information is global.  Put everything in
   3170     an allocated structure?
   3171 7   mb_off2cells() doesn't work correctly on the tail byte of a double-byte
   3172     character. (Yasuhiro Matsumoto)  It should return 1 when used on a tail
   3173     byte, like for utf-8.  Store second byte of double-byte in ScreenLines2[]
   3174     (like for DBCS_JPNU) and put a zero in the second byte (like for UTF-8).
   3175 7   Inside a function with "perl <<EOF" a line with "$i++" is recognized as an
   3176     ":insert" command, causing the following "endfunction" not to be found.
   3177     Add skipping this perl construction inside function definitions.
   3178 7   When 'ttimeoutlen' is 10 and 'timeoutlen' is 1000, there is a keycode
   3179     "<Esc>a" and a mapping <Esc>x", when typing "<Esc>a" with half a second
   3180     delay should not be interpreted as a keycode. (Hans Ginzel)
   3181 7   ":botright 1 new" twice causes all window heights to be changed.  Make the
   3182     bottom window only bigger as much as needed.
   3183 7   The Cygwin and MingW makefiles define "PC", but it's not used anywhere.
   3184     Remove? (Dan Sharp)
   3185 9   User commands use the context of the script they were defined in.  This
   3186     causes a "s:var" argument to unexpectedly use a variable in the defining
   3187     script, not the calling script.  Add an argument to ":command":
   3188     "-keepcontext".  Do replace <SID>, so that a function in the defining
   3189     script can be called.
   3190 8   The Japanese message translations for MS-Windows are called ja.sjis.po,
   3191     but they use encoding cp932.  Rename the file and check that it still
   3192     works.
   3193 8   A very long message in confirm() can't be quit.  Make this possible with
   3194     CTRL-C.
   3195 8   "gf" always excludes trailing punctuation characters.  file_name_in_line()
   3196     is currently fixed to use ".,:;!".  Add an option to make this
   3197     configurable?
   3198 8   'hkmap' should probably be global-local.
   3199 8   Using ":s" in a function changes the previous replacement string.  Save
   3200     "old_sub" in save_search_patterns()?
   3201 8   Should allow multibyte characters for the delimiter: ":s+a+b+" where "+"
   3202     is a multibyte character.
   3203 8   When appending to a file and 'patchmode' isn't empty, a backup file is
   3204     always written, even when the original file already exists.
   3205 9   When getting focus while writing a large file, could warn for this file
   3206     being changed outside of Vim.  Avoid checking this while the file is being
   3207     written.
   3208 7   The message in bt_dontwrite_msg() could be clearer.
   3209 8   The script ID that is stored with an option and displayed with ":verbose
   3210     set" isn't reset when the option is set internally.  For example when
   3211     'foldlevel' is set from 'foldlevelstart'.
   3212 8   Also store the line number with the script ID and use it for ":verbose",
   3213     so that "set nocompatible" is found when it changes other option values.
   3214     When an option is set indirectly mention the command?  E.g. when
   3215     ":diffsplit" sets 'foldmethod'.
   3216 8   In the fileformat dialog, "Cancel" isn't translated.  Add a global
   3217     variable for this. (Eduardo Fernandez)
   3218 9   When editing a file with 'readonly' set, there is no check for an existing
   3219     swap file.  Then using ":write" (without making any changes) doesn't give
   3220     a warning either.  Should check for an existing swap file without creating
   3221     one. Unfinished patch by Ian Kelling, 2008 July 14.
   3222 7   When 'showbreak' is set, the amount of space a Tab occupies changes.
   3223     Should work like 'showbreak' is inserted without changing the Tabs.
   3224 7   When 'mousefocus' is set and switching to another window with a typed
   3225     command, the mouse pointer may be moved to a part of the window that's
   3226     covered by another window and we lose focus.  Only move in the y
   3227     direction, not horizontally?
   3228 8   ":hardcopy":
   3229     - Using the cterm_color[] table is wrong when t_colors is > 16.
   3230     - Need to handle unprintable characters.
   3231     - Win32: On a B&W printer syntax highlighting isn't visible.  Perform
   3232       dithering to make grey text?
   3233     - Add a flag in 'printoptions' to add an empty page to make the total
   3234       number even.  "addempty"? (Mike Williams)
   3235     - Respect 'linebreak'.  Perhaps also 'showbreak'?
   3236     - Should interpret CTRL-L as a page break.
   3237     - Grey line numbers are not always readable.  Add field in 'printoptions'.
   3238       Default to black when no syntax highlighting.
   3239     - Be able to print a window in diff mode.
   3240     - Be able to specify a colorscheme to use for printing.  And a separate
   3241       one for B&W printing (if that can be detected).
   3242 8   When 'virtualedit' is "block,insert" and encoding is "utf-8", selecting a
   3243     block of one double-wide character, then "d" deletes only half of it.
   3244 8   When 'virtualedit' is set, should "I" in blockwise visual mode also insert
   3245     in lines that don't extend into the block?
   3246 8   With 'virtualedit' set, in Insert mode just after the end of line, CTRL-O
   3247     yh does not yank the last character of the line. (Pavel Papushev)
   3248     Doing "hl" first appears to make it work.
   3249 8   With 'virtualedit' set it's possible to move into the blank area from
   3250     'linebreak'.
   3251 8   With 'virtualedit' set and 'selection' "exclusive", a Visual selection
   3252     that ends in or after a tab, "d" doesn't delete (part of) the tab.
   3253     (Helmut Stiegler)
   3254 9   When jumping to a tag, the search pattern is put in the history.  When
   3255     'magic' is on, the pattern may not work.  Translate the pattern depending
   3256     on p_magic when putting it in the history?  Alternative: Store value of
   3257     'magic' in history.  (Margo)
   3258 9   optwin.vim: Restoring a mapping for <Space> or <CR> is not correct for
   3259     ":noremap".  Add "mapcmd({string}, {mode})?  Use code from ":mkexrc".
   3260 9   term_console is used before it is set (msdos, Amiga).
   3261 9   Get out-of-memory for ":g/^/,$s//@/" on 1000 lines, this is not handled
   3262     correctly.  Get many error messages while redrawing the screen, which
   3263     cause another redraw, etc.
   3264 8   [<C-I> doesn't work when '*' is in 'iskeyword'.  find_pattern_in_path()
   3265     must escape special characters in the pattern.
   3266 8   Vim can overwrite a read-only file with ":w!".  ":w" can't overwrite an
   3267     existing file, "w!" can, but perhaps not a read-only file?  Then use
   3268     ":w!!" for that.
   3269     Or ask for permission to overwrite it (if file can be made writable) and
   3270     restore file to readonly afterwards.
   3271     Overwriting a file for which a swap file exists is similar issue.
   3272 7   When compiled with "xterm_clipboard", startup can be slower and might get
   3273     error message for invalid $DISPLAY.  Try connecting to the X server in the
   3274     background (forked), so that Vim starts up quicker?  Connect as soon as
   3275     the clipboard is to be used (Visual select mode starts, paste from
   3276     clipboard)
   3277 7   X11: Some people prefer to use CLIPBOARD instead of PRIMARY for the normal
   3278     selection.  Add an "xclipboard" argument to the 'clipboard' option? (Mark
   3279     Waggoner)
   3280 6   When the xterm reports the number of colors, a redraw occurs.  This is
   3281     annoying on a slow connection.  Wait for the xterm to report the number of
   3282     colors before drawing the screen.  With a timeout.
   3283 8   When the builtin xterm termcap contains codes that are not wanted, need a
   3284     way to avoid using the builtin termcap.
   3285 8   Xterm sends ^[[H for <Home> and ^[[F for <End> in some mode.  Also
   3286     recognize these keys?  Mostly useful for xterm simulators, like gnometerm.
   3287     See https://invisible-island.net/xterm/xterm.faq.html#xterm_pc_style
   3288 8   '[ and '] should be set to start/end of line when using a linewise operator
   3289     (e.g., ":w").
   3290 8   CTRL-A can't handle big "long" numbers, they become negative.  Check for
   3291     "-" character, if not present, use unsigned long.
   3292 8   Add suspending with CTRL-Z at the "more" prompt, and when executing a long
   3293     script in do_cmdline().
   3294 8   When using 'hidden', many swap files will be open.  When Vim runs into the
   3295     maximum number of open files, error messages will appear.  Detect that
   3296     this problem is present, and close any hidden files that don't have
   3297     changes.
   3298 8   Core dump within signal function: gdb doesn't show stack backtrace!  Option
   3299     to skip catch_signals()?
   3300 9   Repeating a "cw" with "." doesn't work if the text was pasted from the
   3301     clipboard. (Thomas Jones)  It's because the menu/toolbar item exits Insert
   3302     mode and uses "gP".  How to fix this without breaking inserting a block of
   3303     text?
   3304 8   In Replace mode pasting from the clipboard (using menu or toolbar) inserts
   3305     all the text.  Add ":rmenu"?
   3306 8   Pasting with the mouse in Replace mode inserts the text, instead of
   3307     overwriting, when it is more than one line.  Same for using <C-R>.
   3308 9   CTRL-E and CTRL-Y don't work in small window when 'so' is 4 and lines are
   3309     wrapping (Acevedo/in.226).  E.g., when using CTRL-E, window height 7,
   3310     window might actually scroll down when last line of buffer is displayed.
   3311     --> Remember if the previous command was "cursor follows screen" or
   3312     "screen follow cursor" and use this in cursupdate().
   3313 7   tilde_replace() can only handle "~/", should also do "~user/".
   3314     Get the list of home directories (from /etc/passwd?  Use getpwent()) and
   3315     use some clever algorithm to match a path with that.  Find common strings
   3316     in the list?
   3317 8   When dragging status line with mouse, sometimes a jump when first clicking
   3318     on the status line (caused by 'winheight').  Select window on button up,
   3319     instead of on button down.
   3320 8   Dragging the status line doesn't scroll but redraw.
   3321 8   When performing incremental search, should abort searching as soon as a
   3322     character is typed.
   3323 8   How to set VIMRC_FILE to \"something\" for configure?  Why does this not
   3324     work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
   3325 8   The temporary file is sometimes not writable.  Check for this, and use an
   3326     alternate name when it isn't.  Or add the 'temptemplate' option: template
   3327     for the temp file name ":set temptemplate=/usr/tmp/?????.tmp".
   3328     Also: Win32 version uses Windows temp directory, which might not work for
   3329     cygwin bash.
   3330 7   Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
   3331     Remember flags for backreferences.
   3332 7   When switching to Daylight Saving Time, Vim complains that a file has been
   3333     changed since last read.  Can we use a function that uses GMT?
   3334 7   When completing an environment variable after a '$', check for file names
   3335     that contain a '$' after all have been found.
   3336 8   When "cm" termcap entry is missing, starting gvim shouldn't complain about
   3337     it. (Lohner)  Try out with "vt100" entry, cm replaced with cX.
   3338 7   When an include file starts with "../", the check for already visiting
   3339     this file doesn't work.  Need to simplify the file name.
   3340 7   The names and comments for the arguments of do_browse() are confusing.
   3341     "dflt" isn't the default file name when "initdir" is not NULL and
   3342     "initdir" is the default path to be used.
   3343 7   When 'scrolloff' is exactly half the window height, "j" causes a scroll of
   3344     two lines at a time.  "k" doesn't do this. (Cory T. Echols)
   3345 
   3346 
   3347 I can't reproduce these (if you can, let me know how!):
   3348 9   NT 4.0 on NTFS file system: Editing ".bashrc" (drag and drop), file
   3349     disappears.  Editing ".xyz" is OK.  Also, drag&drop only works for three
   3350     files. (McCollister)
   3351 
   3352 
   3353 Problems that will (probably) not be solved:
   3354 -   GTK: when using the popup menu with spelling suggestions and releasing the
   3355     right mouse button before the menu appears selecting an item with the
   3356     right mouse button has no effect.  GTK does not produce an event for this.
   3357 -   GTK 2: Cannot use the file selector.  When using it many things become
   3358     slow.  This is caused by some code in GTK that writes
   3359     ~/.recently-used.xbel every time an event is handled.  It assumes the main
   3360     loop is never quit, which is a wrong assumption.  Also, it overwrites the
   3361     file with different file permissions, which is a privacy issue.  This
   3362     needs to be fixed in GTK.  A solution in Vim would be really complicated.
   3363     (2008 Jul 31)  This appears to be fixed in Vim 7.3.
   3364 -   xterm title: The following scenario may occur (esp. when running the Vim
   3365     test script): Vim 1 sets the title to "file1", then restores the title to
   3366     "xterm" with an ESC sequence when exiting.  Vim 2 obtains the old title
   3367     with an X library call, this may result in "file1", because the window
   3368     manager hasn't processed the "xterm" title yet.  Can apparently only be
   3369     worked around with a delay.
   3370 -   In a terminal with 'mouse' set such that the mouse is active when entering
   3371     a command line, after executing a shell command that scrolls up the
   3372     display and then pressing ":": Selecting text with the mouse works like
   3373     the display wasn't scrolled.  Vim doesn't know how much the external
   3374     command scrolled up the display.  Use Shift to select text.
   3375 -   X windows: When $DISPLAY points to a X server where there is no access
   3376     permission, trying to connect to the X server causes an error message.
   3377     XtOpenDisplay() prints this directly, there is no way to avoid it.
   3378 -   X windows: Setting 'guifontset' to an illegal value sometimes crashes Vim.
   3379     This is caused by a fault in a X library function, can't be solved in Vim.
   3380 -   Win32 tcl: has("tcl") hangs when the tcl84.dll is from cygwin.
   3381 -   Motif: When adding a menu item "Find this &Symbol", the "s" in "this" will
   3382     be underlined, instead of in "Symbol".  Motif doesn't let us specify which
   3383     character gets the highlighting.
   3384 -   Moving the cursor removes color in color-xterm.  This is a color-xterm
   3385     problem!  color-xterm ver. 6.1 beta 3 and later work properly.
   3386 -   In zsh, "gvim&" changes the terminal settings.  This is a zsh problem.
   3387     (Jennings)
   3388 -   Problem with HPterm under X: old contents of window is lost (Cosentino).
   3389 -   Amiga: The ":cq" command does not always abort the Manx compiler.  Why?
   3390 -   Linux: A file with protection r--rw-rw- is seen readonly for others.  The
   3391     access() function in GNU libc is probably wrong.
   3392 -   When doing a CTRL-Z and typing a command for the shell, while Vim is busy
   3393     (e.g. writing a file), the command for the shell is sometimes eaten by Vim,
   3394     because the terminal mode is changed from RAW to CBREAK.
   3395 -   An old version of GNU tgoto can't handle the terminfo code for "AF".  The
   3396     "%p1" is interpreted as "%p" and "1", causing color not to be working.
   3397     Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
   3398     (Benzinger).
   3399 -   When running an external command from the GUI, typeahead is going to that
   3400     program, not to Vim.  It looks like the shell eats the characters, Vim
   3401     can't get back what the external command didn't use.
   3402 -   Win32 GUI: Error code from external command not returned in shell_error.
   3403     It appears that cmd.exe and command.com don't return an error code.
   3404 -   Win32 GUI: The Toolbar is a bit too high when the flat style is being
   3405     used.  We don't have control over the height of the Toolbar.
   3406 -   Win32: All files created on the day of switching from winter to summer
   3407     time cause "changed since editing started" messages.  It goes away when
   3408     the file is written again the next day, or the timezone is adjusted.
   3409     DJGPP version is OK. (Zaimi)  Looks like a problem with the Win32 library.
   3410     Rebooting doesn't help.  Time stamps look OK in directory. (Penn)
   3411     Is this on FAT (stores wall clock time) or NTFS (stores UTS)?
   3412 -   Win32, MS-Windows XP: $HOME uses the wrong drive when the user profiles
   3413     are not on the boot disk.  This is caused by a wrong value of $HOMEDRIVE.
   3414     This is a bug in XP, see MSKB article 818134.
   3415 -   Win32, MS-Windows: expanding plugin/**/*.vim also picks up
   3416     dir/ctags.vim,v.  This is because the short file name is something like
   3417     "ctags~1.vim" and that matches the pattern.
   3418 -   SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal
   3419     scroll bar for the "files" selection.  This is a problem in the Motif
   3420     libraries, get a patch from Sun.
   3421 -   Solaris 2.6 with GTK and Perl: gvim crashes when started.  Problem with X
   3422     input method called from GDK code.  Without Perl it doesn't crash.
   3423 -   VMS: Vimdiff doesn't work with the VMS diff, because the output looks
   3424     different.  This makes test 47 fail.  Install a Unix-compatible diff.
   3425 -   GTK with Gnome: Produces an error message when starting up:
   3426 	Gdk-WARNING **: locale not supported by C library
   3427     This is caused by the gnome library gnome_init() setting $LC_CTYPE to
   3428     "en_US".  Not all systems support this locale name, thus causing the
   3429     error.  Hopefully a newer version of GTK/Gnome fixes this problem.
   3430 -   GTK 2: With this mapping the hit-enter prompt is _sometimes_ below the
   3431     screen, at other times there is a grey area below the command line:
   3432 	:nmap <F11> :if &guioptions=~'m' \| set guioptions-=m \| else \| set guioptions+=m \| endif<cr>
   3433 -   GTK: When pasting a selection from Vim to xclipboard gvim crashes with a
   3434     ABRT signal.  Probably an error in the file gdkselection.c, the assert
   3435     always fails when XmbTextListToTextProperty() fails. (Tom Allard)
   3436 -   GTK 2: gives an assertion error for every non-builtin icon in the toolbar.
   3437     This is a GTK 2.4.x bug, fixed in GTK 2.4.2. (Thomas de Grenier de Latour)
   3438 -   When using an xterm that supports the termresponse feature, and the 't_Co'
   3439     termcap option was wrong when Vim started, it will be corrected when the
   3440     termresponse is received.  Since the number of colors changes, the
   3441     highlighting needs to be initialized again.  This may cause colors defined
   3442     in the vimrc file to be lost.
   3443 -   On Windows NT 4.0 the number of files passed to Vim with drag&drop and
   3444     "Edit with Vim" is limited.  The maximum command line length is 255 chars.
   3445 
   3446 ---------------------  extensions and improvements ----------------------
   3447 						    *extensions-improvements*
   3448 
   3449 Most interesting new features to be added when all bugs have been fixed:
   3450 -   Using ":exe edit fname" has escaping problems.  Use ":edit ++(fname)".
   3451     Thus use "++=" to give arguments as expressions, comma-separated as if
   3452     calling a function.
   3453     With options: ":edit ++(['!', '++enc=abc'], ['+/pat'], fname)".
   3454     Alternative: Make a function for Ex commands: cmd_edit().
   3455 -   Add COLUMN NUMBERS to ":" commands ":line1,line2[col1,col2]cmd".  Block
   3456     can be selected with CTRL-V.  Allow '$' (end of line) for col2.
   3457     (issue #3292)
   3458 -   ECLIPSE plugin.  Problem is: the interface is very complicated.  Need to
   3459     implement part in Java and then connect to Vim.  Some hints from Alexandru
   3460     Roman, 2004 Dec 15.  Should then also work with Oracle Jdeveloper, see JSR
   3461     198 standard http://www.jcp.org/en/jsr/detail?id=198.
   3462     Eclim does it: http://eclim.sourceforge.net/  (Eric Van Dewoestine)
   3463     Plugin that uses a terminal emulator: http://vimplugin.sf.net
   3464     And another one: (dead link) satokar.com/viplugin/index.php
   3465 -   STICKY CURSOR: Add a way of scrolling that leaves the cursor where it is.
   3466     Especially when using the scrollbar.  Typing a cursor-movement command
   3467     scrolls back to where the cursor is.
   3468 -   Scroll commands by screen line. g CTRL-E and g CTRL-Y ?  Requires the
   3469     first line to be able to start halfway.
   3470 8   Add a command to jump to a certain kind of tag.  Allow the user to specify
   3471     values for the optional fields.  E.g., ":tag size type=m".
   3472     Also allow specifying the file and command, so that the result of
   3473     taglist() can be used.
   3474 -   X11: Make it possible to run Vim inside a window of another program.
   3475     This can be done with XReparentWindow().  But how exactly?
   3476 
   3477 
   3478 Documentation:
   3479 8   List of Vim runtime directories.  dotvim.txt from Charles Campbell, 2007
   3480     Feb 20.
   3481 8   The GUI help should explain the Find and Find/Replace dialogs.  Add a link
   3482     to it from ":promptrepl" and ":promptfind".
   3483 8   List of options should mention whether environment variables are expanded
   3484     or not.
   3485 8   Extend usr_27.txt a bit. (Adam Seyfarth)
   3486 9   Make the Reference Manual more precise.  For each command mention:
   3487     - change to cursor position and curswant
   3488     - if it can be undone (u/CTRL-R) and redone (.)
   3489     - how it works for folded lines
   3490     - how it works with multibyte characters
   3491 8   Spread the windows commands over the other files.  For example, ":stag"
   3492     should be with ":tag".  Cross-link with tags to avoid too much double
   3493     text.
   3494 8   Add tags for all features, e.g. "gui_running".
   3495 7   MS-Windows: When a wrong command is typed with an ALT key, give a hint to
   3496     look at the help for 'winaltkeys'.
   3497 7   Add a help.vim plugin that maps <Tab> to jump to the next tag in || and
   3498     <C-Tab> (and <S-Tab>) to the previous tag.
   3499     Patch by Balazs Kezes, 2007 Dec 30.  Remark from A. Politz.
   3500 -   Check text editor compendium for vi and Vim remarks.
   3501 
   3502 
   3503 Help:
   3504 -   First try using the ":help" argument literally, before using it as a
   3505     pattern.  And then match it as part of a tag.
   3506 -   When a help item has multiple matches make it possible to use ":tn" to go
   3507     to the other matches.
   3508 -   Support a way to view (and edit) .info files.
   3509 -   Implement a "sticky" help window, some help text lines that are always
   3510     displayed in a window with fixed height. (Guckes)  Use "~/.vimhelp" file,
   3511     user can edit it to insert favorite commands, new account can contain a
   3512     default contents.
   3513 -   Make 'winminheight' a local option, so that the user can set a minimal
   3514     height for the help window (and other windows).
   3515 -   ":help :s^I" should expand to ":help :substitute".
   3516 -   Make the help key (<F1>) context sensitive?
   3517 -   Learn mode: show short help while typing commands.
   3518 
   3519 
   3520 User Friendlier:
   3521 8   Windows install with install.exe: Use .exe instead of .bat files for
   3522     links, so that command line arguments are passed on unmodified? (Walter
   3523     Briscoe)
   3524 8   Windows install: Be able to associate Vim with a selection of file types?
   3525 8   Windows uninstall: Have uninstal.c delete the vimfiles directories that
   3526     dosinst.c creates.  List the contents of the directory (recursively) if
   3527     the user asks for it.  Requires an implementation of "rm -rf".
   3528 8   Remember the name of the vimrc file that was used (~/.vimrc, $VIM/_vimrc,
   3529     $HOME/_vimrc, etc.) and add "edit vimrc" to the File menu.
   3530 -   Add a way to save local settings and mappings into a new plugin file.
   3531     ":mkplugin <file>"?
   3532 -   Add mappings local to a window: ":map <window> ..."  #9339
   3533 9   Add buffer-local menu.  Should offer a choice between removing the menu or
   3534     disabling it.  Be careful that tear-offs don't disappear (keep one empty
   3535     item?).
   3536     Alternative: use BufEnter and BufLeave autocommands.
   3537 8   make a vimtutor script for Amiga and other systems.
   3538 7   When Vim detects a file is being edited elsewhere and it's a gvim session
   3539     of the same user it should offer a "Raise" button, so that the other gvim
   3540     window can be displayed. (Eduard)
   3541 8   Support saving and restoring session for X windows?  It should work to do
   3542     ":mksession" and use "-S fname" for the restart command.  The
   3543     gui_x11_wm_protocol_handler() already takes care of the rest.
   3544     global_event_filter() for GTK.
   3545 
   3546 
   3547 Tab pages:
   3548 9   GUI implementation for the tab pages line for other systems.
   3549 7   GUI: Control over the appearance of the text in the labels (bold, color,
   3550     font, etc.)
   3551 8   Make GUI menu in tab pages line configurable.  Like the popup menu.
   3552 8   balloons for the tab page labels that are shortened to show the full path.
   3553 7   :tabdup	 duplicate the tab with all its windows.
   3554 7   Option to put tab line at the left or right?  Need an option to specify
   3555     its width.  It's like a separate window with ":tabs" output.
   3556 8   Add local options for each tab page?  E.g., 'diffopt' could differ between
   3557     tab pages.
   3558 7   Add local highlighting for each tab page?
   3559 
   3560 
   3561 Spell checking:
   3562 -   Support more regions? Caolan McNamara argues it's needed for es_XX.
   3563     https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777
   3564 -   Unicode defines another quote character: 0x2019.  Use it as an equivalent
   3565     of a single quote, thus use it as a word character like a quote and match
   3566     with words, replacing the curly quote with a single quote.
   3567 -   Could filter &eacute; things for HTML before doing spell checking.
   3568     Similarly for TeX.
   3569 -   The Hungarian spell file uses four extra characters in the FOL/UPP/LOW
   3570     items than other spell files with the ISO-8859-2 encoding, that causes
   3571     problem when changing 'spelllang'.  There is no obvious way to fix this.
   3572 -   Considering Hunspell 1.1.4:
   3573     What does MAXNGRAMSUGS do?
   3574     Is COMPLEXPREFIXES necessary when we have flags for affixes?
   3575 -   There is no Finnish spell checking file.  For openoffice Voikko is now
   3576     used, which is based on Malaga (link seems dead):
   3577     home.arcor.de/bjoern-beutel/malaga/ (Teemu Likonen)
   3578 8   ":mkspell" still takes much too long in Hungarian dictionary from
   3579     hunspell.  Only solution appears to be to postpone secondary suffixes.
   3580 8   Handle postponed prefix with COMPOUNDPERMITFLAG or COMPOUNDFORBIDFLAG.
   3581     WFP_COMPPERMIT and WFP_COMPFORBID
   3582 8   implement use of <compoptions> in .spl file:
   3583     implement CHECKCOMPOUNDREP: when a compound word seems to be OK apply REP
   3584     items and check if the result is a valid word.
   3585     implement CHECKCOMPOUNDDUP
   3586     implement CHECKCOMPOUNDTRIPLE
   3587     Add CHECKCOMPOUNDCASE: when compounding make leading capital lower case.
   3588     How is it supposed to work?
   3589 -   Add a command the repeats ]s and z=, showing the misspelled word in its
   3590     context.  Thus to spell-check a whole file.
   3591 -   suggestion for "KG" to "kg" when it's keepcase.
   3592 -   For flags on affixes: Use a "AFFCOMPSET" flag; means the compound flags of
   3593     the word are not used.
   3594 -   Support breakpoint character ? 0xb7 and ignore it?  Makes it possible to
   3595     use same wordlist for hyphenation.
   3596 -   Compound word is accepted if nr of words is <= COMPOUNDWORDMAX OR nr of
   3597     syllables <= COMPOUNDSYLMAX.  Specify using AND in the affix file?
   3598 -   NEEDCOMPOUND also used for affix?  Or is this called ONLYINCOMPOUND now?
   3599     Or is ONLYINCOMPOUND only for inside a compound, not at start or end?
   3600 -   Do we need a flag for the rule that when compounding is done the following
   3601     word doesn't have a capital after a word character, even for Onecap words?
   3602 -   New hunspell home page: http://hunspell.sourceforge.net/
   3603     - Version 1.1.0 is out now, look into that.
   3604     - Lots of code depends on LANG, that isn't right.  Enable each mechanism
   3605       in the affix file separately.
   3606     - Example with compounding dash is bad, gets in the way of setting
   3607       COMPOUNDMIN and COMPOUNDWORDMAX to a reasonable value.
   3608     - PSEUDOROOT == NEEDAFFIX
   3609     - COMPOUNDROOT -> COMPOUNDED?  For a word that already is a compound word
   3610 	    Or use COMPOUNDED2, COMPOUNDED3, etc.
   3611 -   CIRCUMFIX: when a word uses a prefix marked with the CIRCUMFIX flag, then
   3612     the word must also have a suffix marked with the CIRCUMFIX flag.  It's a
   3613     bit primitive, since only one flag is used, which doesn't allow matching
   3614     specific prefixes with suffixes.
   3615     Alternative:
   3616 	PSFX {flag} {pchop} {padd} {pcond} {schop} {sadd}[/flags] {scond}
   3617     We might not need this at all, you can use the NEEDAFFIX flag and the
   3618     affix which is required.
   3619 -   When a suffix has more than one syllable, it may count as a word for
   3620     COMPOUNDWORDMAX.
   3621 -   Add flags to count extra syllables in a word.  SYLLABLEADD1 SYLLABLEADD2,
   3622     etc.?  Or make it possible to specify the syllable count of a word
   3623     directly, e.g., after another slash: /abc/3
   3624 -   MORPHO item in affix file: ignore TAB and morphological field after
   3625     word/flags and affix.
   3626 -   Implement multiple flags for compound words and CMP item?
   3627     Await comments from other spell checking authors.
   3628 -   Also see tklspell: (dead link) tkltrans.sourceforge.net/
   3629 8   Charles Campbell asks for method to add "contained" groups to existing
   3630     syntax items (to add @Spell).
   3631     Add ":syntax contains {pattern} add=@Spell" command?  A bit like ":syn
   3632     cluster" but change the contains list directly for matching syntax items.
   3633 -   References: MySpell library (in OpenOffice.org), (links seem dead):
   3634 	spellchecker.mozdev.org/source.html
   3635 	(dead link) whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
   3636       author: Kevin Hendricks <kevin.hendricks@sympatico.ca>
   3637 8   It is currently not possible to mark "can not" as rare, because "can" and
   3638     "not" are good words.  Find a way to let "rare" overrule "good"?
   3639 8   Make "en-rare" spell file?  Ask Charles Campbell.
   3640 8   The English dictionaries for different regions are not consistent in their
   3641     use of words with a dash.
   3642 7   Insert mode completion mechanism that uses the spell word lists.
   3643 8   Add hl groups to 'spelllang'?
   3644 	:set spelllang=en_us,en-rare/SpellRare,en-math/SpellMath
   3645     More complicated: Regions with different languages?  E.g., comments
   3646     in English, strings in German (po file).
   3647 
   3648 
   3649 Diff mode:
   3650 9   When making small changes, e.g. deleting a character, update the diff.
   3651     Possibly without running diff.
   3652 8   Also show difference with the file when editing started?  Should show what
   3653     can be undone. (Tom Popovich)
   3654 
   3655 Folding:
   3656     (commands still available: zI zJ zK zp zP zq zQ zV zy zY;
   3657     secondary: zB zS zT zZ, z=)
   3658 -   Patch to make closed folds line up. (Charles Campbell, 2014 Sep 12)
   3659     Remark from Roland Eggner: does it cause crashes? (2014 Dec 12)
   3660     Updated patch by Roland Eggner, Dec 16
   3661     Updated patch from Charles, 2016 Jul 2
   3662 -   Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)
   3663 -   Patch to have the fold and sign column and at the last line of the buffer.
   3664     (Marco Hinz, 2014 Sep 25)
   3665     Alternate suggestion: let all columns continue, also the number column.
   3666 -   Patch to add FoldedLineNr highlighting: different highlighting for the
   3667     line number of a closed fold. (eXerigumo Clanjor, 2013 Jul 15)
   3668 -   Patch to use 'foldnestmax' also for "marker" foldmethod. (Arnaud Lacombe,
   3669     2011 Jan 7)
   3670 -   'foldcolumn' in modeline applied to wrong window when using a session.
   3671     (Teemu Likonen, March 19)
   3672 -   With foldmethod=syntax and nofoldenable comment highlighting isn't
   3673     removed.  (Marcin Szewczyk, 2017 Apr 26)
   3674 -   The ":move" command does not honor closed folds. (Ryan Lue, #2351)
   3675 -   When completion inserts the first match, it may trigger the line to be
   3676     folded.  Disable updating folds while completion is active? (Peter Odding,
   3677     2010 Jun 9)
   3678 -   When 'foldmethod' is "indent", adding an empty line below a fold and then
   3679     indented text, creates a new fold instead of joining it with the previous
   3680     one.  (Evan Laforge, 2009 Oct 17)
   3681 -   Add ":nofold".  Range will apply without expanding to closed fold.
   3682 8   Vertical folds: looks like vertically split windows, but the cursor moves
   3683     through the vertical separator, separator moves when scrolling.
   3684 8   Add "z/" and "z?" for searching in not folded text only.  Or use a regexp
   3685     item, so that it can be used in any pattern.
   3686 8   When a closed fold is displayed open because of 'foldminlines', the
   3687     behavior of commands is still like the fold is closed.  How to make the
   3688     user aware of this?
   3689 8   Add an option 'foldskip' with values like 'foldopen' that specifies which
   3690     commands skip over a closed fold.
   3691 8   "H" and "L" count buffer lines instead of window lines. (Servatius Brandt)
   3692 8   Add a way to add fold-plugins.  Johannes Zellner has one for VB.
   3693 7   When using manual folding, the undo command should also restore folds.
   3694 -   Allow completely hiding a closed fold.  E.g., by setting 'foldtext' to an
   3695     empty string.  Require showing a character in 'foldcolumn' to avoid the
   3696     missing line goes unnoticed.
   3697     How to implement this?
   3698 -   When pressing the down arrow of a scrollbar, a closed fold doesn't scroll
   3699     until after a long time.  How to make scrolling with closed folds
   3700     smoother?
   3701 -   When creating a session, also store folds for buffers in the buffer list,
   3702     using the wininfo in wi_folds.
   3703 -   When currently editing the first file in the argument list the session
   3704     file can contain:
   3705 	args version.c main.c
   3706 	edit version.c
   3707     Can editing version.c twice be avoided?
   3708 -   'foldmethod' "textobject": fold on sections and paragraph text objects.
   3709 -   "zuf": undo change in manual fold. "zUf" redo change in manual fold.  How
   3710     to implement this?
   3711 -   "zJ" command: add the line or fold below the fold in the fold under the
   3712     cursor.
   3713 -   'foldmethod' "syntax": "fold=3" argument: set fold level for a region or
   3714     match.
   3715 -   Apply a new foldlevel to a range of lines. (Steve Litt)
   3716 
   3717 Multi-byte characters:
   3718 -   When editing a file with both utf-8 and latin1 text Vim always falls back
   3719     to latin1.  Add a command to convert the latin1 characters to utf-8?
   3720 	:unmix utf-8,latin1 filename
   3721     Would only work when 'encoding' is utf-8.
   3722 9   When the tail byte of a double-byte character is illegal (e.g., a CR), the
   3723     display is messed up (Yasuhiro Matsumoto).  Should check for illegal
   3724     double-byte characters and display them differently (display each single
   3725     byte).
   3726 9   'fenc' in modeline problem: add option to reload the file when 'fenc' is
   3727     set to a different value in a modeline?  Option can be default on.  Could
   3728     it be done with an autocommand?
   3729 8   Add an item in 'fileencodings' to check the first lines of a file for
   3730     the encoding.  See Python PEP: http://www.python.org/peps/pep-0263.html.
   3731     To avoid getting a wrong encoding only accept something Emacs-like:
   3732     "-*- coding: enc-na_me.foo -*-" and "-*- coding= enc-na_me.foo -*-"
   3733     Match with "-\*-\s*coding[:=]\s*\([::word::-_.]\+\)\s*-\*-" and use first
   3734     item.
   3735 8   Add an item in 'fileencodings' to check the first line of an XML file for
   3736     the encoding.  <?xml version="1.0" encoding="UTF-8"?>  Or "charset=UTF-8"?
   3737     For HTML look for "charset=utf-8".
   3738 8   When a file was converted from 'fileencoding' to 'encoding', a tag search
   3739     should also do this on the search pattern. (Andrzej M. Ostruszka)
   3740 8   When filtering changes the encoding 'fileencoding' may not work.  E.g.,
   3741     when using xxd and 'fileencoding' is "utf-16".  Add an option to set a
   3742     different fileencoding for filter output?
   3743 7   When converting a file fails, mention which byte could not be converted,
   3744     so that the user can fix the problem.
   3745 8   Add configure option to be able to disable using the iconv library. (Udo
   3746     Schweigert)
   3747 9   'aleph' should be set to 1488 for Unicode. (Zvi Har'El)
   3748 8   Should add test for using various commands with multibyte characters.
   3749 8   'infercase' doesn't work with multibyte characters.
   3750 8   toupper() function doesn't handle byte count changes.
   3751 7   Searching and composing characters:
   3752     When searching, should order of composing characters be ignored?
   3753     Add a special item to match with a composing character, so that composing
   3754     characters can be manipulated.
   3755 8   Should implement 'delcombine' for command line editing.
   3756 8   Detect overlong UTF-8 sequences and handle them like illegal bytes.
   3757 8   ":s/x/\u\1/" doesn't work, making uppercase isn't done for multibyte
   3758     characters.
   3759 8   UTF-8: "r" in Visual mode doesn't take composing characters.
   3760 8   UTF-8: When there is a precomposed character in the font, use it instead
   3761     of a character and a composing character.  See xterm for an example.
   3762 7   When a character can't be displayed, display its digraph instead.
   3763     'display' option to specify this.
   3764 7   Use ideas for nl_langinfo() from Markus Kuhn in enc_default():
   3765     (www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c)
   3766 -   GTK and Win32: Allow selecting fonts for 'guifontset' with the
   3767     fontselector somehow.
   3768 -   GTK and Win32: make it possible to set the font for the menu to make it
   3769     possible to have 'encoding' different from the current locale.
   3770 -   dbcs_class() only works for Japanese and Korean.  Implement this for
   3771     other encodings.  The "euc-jp" and "euc-kr" choices might be wrong.
   3772 -   Find some way to automatically select the right GUI font or fontset,
   3773     depending on the default value of 'encoding'.
   3774     Irrelevant in the GTK+ 2 GUI so long as UTF-8 is used.
   3775     For Windows, the charset_pairs[] table could be used.  But how do we know
   3776     if a font exists?
   3777 -   Do keyboard conversion from 'termencoding' to 'encoding' with
   3778     convert_input() for Mac GUI.
   3779 -   Add mnemonics from RFC1345 longer than two characters.
   3780     Support CTRL-K _{mnemonic}_
   3781 -   Make 'breakat' accept multibyte characters.  Problem: can't use a lookup
   3782     table anymore (breakat_flags[]).
   3783     Simplistic solution: when 'formatoptions' contains "m" also break a line
   3784     at a multibyte character >= 0x100.
   3785     Making breakat support multibyte characters (Yasuhiro Matsumoto, #6598)
   3786     Scroll doesn't work correctly, why?
   3787 -   Add the possibility to enter mappings which are used whenever normal text
   3788     could be entered.  E.g., for "f" command.  But not in Normal mode.  Sort
   3789     of opposite of 'langmap'.  Use ":amap" command?
   3790 -   When breaking a line, take properties of multibyte characters into
   3791     account.  The "linebreak" program from Bruno Haible can do it, this
   3792     is now part of gnulib module unilbrk:
   3793     https://www.gnu.org/software/gnulib/MODULES.html
   3794     But it's very complicated...
   3795 -   Problem with 'langmap' being used on the rhs of a mapping. (Nikolai
   3796     Weibull, 2008 May 14).
   3797     Possibly related problem: Alexey Muranov, 2015 Apr 2
   3798 
   3799 
   3800 Printing:
   3801 7   Implement "undercurl" for printing.
   3802 -   Add "page width" to wrap long lines.
   3803 -   Win32: use a font dialog for setting 'printfont'.  Can reuse the code for
   3804     the 'guifont' dialog, put the common code in a separate function.
   3805 -   Add the file timestamp to the page header (with an option). (George
   3806     Reilly)
   3807 -   Win32: when 'printfont' is empty use 'guifont'.
   3808 -   Unix: Use some dialog box to do the obvious settings (paper size, printer
   3809     name, portrait/landscape, etc).
   3810 -   PostScript: Only works for text that can be converted to an 8-bit
   3811     character set.  How to support Unicode fully?
   3812 -   Allow specifying the paper size, instead of using a standard size.  Same
   3813     units as for the margins.
   3814 -   Support right-to-left text?
   3815 8   Make the foreground color darkening function preserve the hue of the
   3816     color.
   3817 
   3818 
   3819 Syntax highlighting:
   3820 8   Make ":syn off" use 'runtimepath' instead of $VIMRUNTIME. (Gary Johnson)
   3821     Should do the same for ":syn on" and ":syn manual".
   3822 8   Support "containedin" argument for ":syn include", so that the defined
   3823     cluster can be added to existing syntax items.
   3824 8   C syntax: Don't highlight {} as errors inside () when used like this:
   3825     "({ something })", often used in GCC code.
   3826 7   Add a "startgroup" to a region.  Used like "nextgroup" inside the region,
   3827     preferred item at the start of the region. (Charles Campbell)
   3828 8   When editing a new file without a name and giving it a name (by writing
   3829     it) and 'filetype' is not set, detect the filetype.  Avoid doing it for
   3830     ":wq file".
   3831 7   For "nextgroup" we have skipwhite, skipnl and skipempty.  It would be
   3832     really nice to be able to skip with a pattern.  Or skip with a syntax
   3833     group. (Nikolai Weibull, 2007 Feb 27)
   3834 8   Make conversion to HTML faster (Write it in C or pre-compile the script).
   3835 9   There is still a redraw bug somewhere.  Probably because a cached state is
   3836     used in a wrong way.  I can't reproduce it...
   3837 7   Be able to change only the background highlighting.  Useful for Diff* and
   3838     Search highlighting.
   3839 7   When 'number' is set highlight the number of the current line.
   3840     Must be enabled with an option, because it slows down display updating.
   3841 8   Allow the user to add items to the Syntax menu sorted, without having to
   3842     change this for each release.
   3843 8   Add a "matchcontains" for regions: items contained in the start or end
   3844     pattern, but not in the body.
   3845 8   Add a "keepend-contained" argument: Don't change the end of an item this
   3846     one is contained in.  Like "keepend" but specified on the contained item,
   3847     instead of the containing item.
   3848 8   cpp.vim: In C++ it's allowed to use {} inside ().
   3849 8   Some syntax files set 'iskeyword', they should use "syn iskeyword".
   3850     Also need a separate 'iskeyword' for the command line, e.g., in a help
   3851     window ":e /asdf/asdf/" CTRL-W works different.
   3852 8   Add specific syntax item to match with parens/braces that don't have a
   3853     "%" match.  :syntax nomatch cMatchError (,{,[,),},] [contained]
   3854 8   Highlight the text between two matching parens (e.g., with a grey
   3855     background) when on one of the parens or in between them.
   3856     Option for the matchparen plugin?
   3857 8   When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
   3858     sequences.	Add remark in docs that :if 'term' == "term-name" should be
   3859     used.
   3860 8   Add @spell cluster to String and Comment groups for many languages.  Will
   3861     allow spell checking. (Fleiner)
   3862 8   When listing syntax items, try to sort the keywords alphabetically.  And
   3863     re-insert the [] if possible.
   3864 8   Make it possible to use color of text for Visual highlight group (like for
   3865     the Cursor).
   3866 8   It would be useful to make the highlight group name an expression.  Then
   3867     when there is a match, the expression would be evaluated to find out what
   3868     highlight group to use.  Could be used to check if the shell used in a
   3869     password file appears in /etc/shells. (Nikolai Weibull)
   3870 	syn match =s:checkShell(v:match) contained 'pattern'
   3871 8   Make it possible to only highlight a sub-expression of a match.  Like
   3872     using "\1" in a ":s" command.
   3873 8   Support for deleting syntax items:
   3874     :syn keyword cTodo remove this
   3875     :syn match cTodo remove "pattern"
   3876     :syn region cString remove start="this" end="that"
   3877 8   Add possibility to sync on something else, when the syncing in one way
   3878     doesn't find match.  For HTML: When no {script} is found, try looking for
   3879     a '<'.  (Fleiner)
   3880 7   Replace the synchronizing method with a state machine specification?
   3881     Should be able to start at any line in the file, search forwards or
   3882     backwards, and use the result of matching a pattern.
   3883 7   Use parsing like awk, so that e.g., a ( without a matching ) can be
   3884     detected.
   3885 8   Make it possible to use "inverted" highlighting, invert the original
   3886     character.  For Visual mode.  (xterm-selection already does this).
   3887 8   Highlight non-printable characters with "SpecialChar", linked to
   3888     "Special".  Display them with the digraph characters, if possible.
   3889 8   Highlight the clipboard-selection with a highlight group.
   3890 8   Be able to reset highlighting to its original (default) values.
   3891 7   Be able to write current highlighting to a file as commands, similar to
   3892     ":mkvimrc".
   3893 8   Improve c.vim:
   3894     - Add check for unterminated strings, with a variable to switch it on:
   3895       "c_strict_ansi".
   3896     - Detect unbalanced "#endif".  Requires looking back a long way...
   3897 8   Add an option to restrict the updating of syntax highlighting to the
   3898     current line while in Insert mode.
   3899 8   When guessing value of 'background', the syntax file has already been
   3900     loaded (from the .gvimrc).	After changing 'background', load it again?
   3901 8   Add ":syn resync" command, to re-parse the whole file until the current
   3902     display position.
   3903 8   Should support "me" offset for a region start pattern.  To be used to
   3904     allow searching for the end pattern inside the match of the end pattern.
   3905     Example: syn region pikeXX start="([^{]" end=")" should work on "()".
   3906 8   When using a regexp for "contains=", should delay matching with it until
   3907     redrawing happens.  Set a flag when a group is added, check this flag when
   3908     highlighting starts.
   3909 7   It's possible for an item to be transparent, so that the colors of an item
   3910     lower on the stack is used.  Also do this with highlighting, so that the
   3911     user can set transparent highlighting?  E.g. a number in a C comment would
   3912     get the color of a comment, a number in an assignment Normal. (Nikolai
   3913     Weibull)
   3914 7   Add "semitrans": Add highlighting.  E.g., make the text bold, but keep the
   3915     colors.  And add colors, so that Green+Red becomes Yellow.
   3916     E.g. for this html:
   3917 	<B> bold text <I> italic+bold text </B> italic text </I>
   3918 7   CTRL-] checks the highlight group for finding out what the tag is.
   3919 7   Add an explanation how a list of words can be used to highlight misspelled
   3920     words.
   3921 7   Should find a better way to parse the :syntax and :highlight commands.
   3922     Use tables or lists that can be shared by parsing for execution and
   3923     completion?
   3924 8   Add ColorSchemePost autocommand event, so that scripts can set up their
   3925     highlighting. (Salman Halim)
   3926 7   Add a few sets of colors (e.g. Borland Turbo C one).  With a menu to
   3927     select one of the sets.
   3928 8   Add offsets to sub-matches: "\(a*\) *"he=e1-1
   3929     'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
   3930     2, etc.
   3931 8   In Insert mode, when there are typeahead characters, postpone the
   3932     highlighting (for "." command).
   3933 8   Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
   3934     For example: What about a line that starts with / / and contains * /?
   3935 8   Ignore / * and  * / inside strings, when syncing.
   3936 7   Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
   3937     ISP, LDL, Icon, ratfor.  And check "nedit/source/highlight.c".
   3938 6   Add possibility to have background color continue until the right edge of
   3939     the window.  Useful for comment blocks and function headings. (Rogall)
   3940 -   Make it possible to add "contains" items for all items in a group.	Useful
   3941     when extending an already existing syntax file.
   3942 -   Add line-continuation pattern for non-syncing items too?
   3943 -   Add possibility to highlight the whole line, including the right margin
   3944     (for comment blocks).
   3945 -   Add 'hlmatch' option: List of flags:
   3946     'c': highlight match for character under the cursor.
   3947     'b': highlight the previous (, and its match.
   3948     'a': highlight all text from the previous ( until its match.
   3949 	 Also for {}, <>, etc.?
   3950     'e': highlight all braces without a match (slow?)
   3951     OR: add an argument "cursor" to the syntax command, which means that the
   3952     region/match/keyword is only highlighted when the cursor is on it.
   3953     (Campbell)
   3954     Or do it like Elvis: define text objects and how to highlight them around
   3955     the cursor. (Iain Truskett)
   3956 7   Make it possible to use all words in the tags files as Keyword.
   3957     Can also be done with a script (but it's slow).
   3958 7   Make it possible to call a ":" command when a match is found.  Should
   3959     allow for adding keywords from the text (e.g. variables that are set).
   3960     And allows for sections with different highlighting.
   3961 7   Add highlight group for commandline: "Commandline".  Make sure it
   3962     highlights the command line while typing a command, and any output from
   3963     messages.  And external commands?
   3964 8   Make a version that works like less, but with highlighting: read stdin for
   3965     text, exit at end of file, don't allow editing, etc.  moreim?  lessim?
   3966 7   SpecialKey highlighting overrules syntax highlighting.  Can't give an
   3967     unprintable char another color.  Would be useful for ^M at end of line.
   3968 -   Syntax highlight for a region does not work with a "nextgroup" if the
   3969     start match is empty. #8449
   3970 -   The :syntax cchar value can only be a single character.  It would be
   3971     useful to support combining characters. (Charles Campbell)  Also #4687
   3972 -   Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
   3973 -   Several syntax file match "^\s*" which may get underlined if that's in the
   3974     highlight group.  Add a "\zs" after it?
   3975 -   patch to add "combine" flag to  syntax commands. (so8res, 2012 Dec 6)
   3976     Patch to add "combine" to :syntax, combines highlight attributes. (Nate
   3977     Soares, 2012 Dec 3)
   3978 -   Syntax update problem in one buffer opened in two windows, bottom window
   3979     is not correctly updated. (Paul Harris, 2012 Feb 27)
   3980 -   Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set
   3981     to 2, only one of the two ends gets the cchar displayed. (Brett Stahlman,
   3982     2010 Aug 21, Ben Fritz, 2010 Sep 14)
   3983 -   Using "syn sync breaklines=2" works for when text is changed, but not when
   3984     scrolling or redrawing.  Should start search for syntax patterns above the
   3985     first drawn line. (#8103)
   3986 -   Syntax priority problem. (Charles Campbell, 2011 Sep 15)
   3987 -   Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb
   3988     26)
   3989 -   Bug in using a transparent syntax region. (Hanlen in vim-dev maillist,
   3990     2007 Jul 31)
   3991 -   Syntax HL error caused by "containedin". (Peter Hodge, 2006 Oct 6)
   3992 -   Open two windows on the same C code, delete a ")" in one window, resulting
   3993     in highlighted "{" in that window, not in the other.
   3994 -   When using "nextgroup" and the group has an empty match, there is no
   3995     search at that position for another match. (Lukas Mai, 2008 April 11)
   3996 
   3997 
   3998 Vim script language:
   3999 8   Make the filename and line number available to script functions, so that
   4000     they can give useful debugging info.  The whole call stack would be ideal.
   4001     At least use this for error messages.
   4002 7   Execute a function with standard option values.  No need to save and
   4003     restore option values.  Especially useful for new options.  Problem: how
   4004     to avoid a performance penalty (esp. for string options)?
   4005 -   range for ":exec", pass it on to the executed command.  (Webb)
   4006 7   ":include" command: just like ":source" but doesn't start a new scriptID?
   4007     Will be tricky for the list of script names.
   4008 8   Have a look at VSEL.  Would it be useful to include? (Bigham)
   4009 8   Have a prefix for a function to make it unique.  When using packages it
   4010     can be the plugin name.
   4011     Perhaps also have a way to remove everything that the package added?
   4012     including autocommands.
   4013 7   Pre-parse or compile Vim scripts into a bytecode, like :def functions.
   4014     Possibilities:
   4015     1. Put the bytecode with the original script, with an ":if
   4016        has('bytecode-1234')" around it, so that it's only used with a Vim that
   4017        supports the version.  Update the code with a command, can be used in
   4018        an autocommand.
   4019     2. Use a ".vic" file (like Python use .pyc).  Create it when writing a
   4020        .vim file.  Problem: distribution, non-writable directory, etc.
   4021     3. Use a cache directory for each user.  Disadvantage: cache lookup may
   4022        cost more time than bytecode wins.
   4023 7   Add argument to winwidth() to subtract the space taken by 'foldcolumn',
   4024     signs and/or 'number'.
   4025 6   Add ++ and -- operators?  They only work on variables (lvals), how to
   4026     implement this?
   4027 8   Add functions:
   4028 	has(":command")		Check if ":command" works.  compare function
   4029 				with "ex_ni".  E.g. for ":simalt".
   4030 	escape()		Add argument to specify what to escape with.
   4031 	modestack()		Instead of just the current mode return the
   4032 				stack of Insert / CTRL-O / :normal things.
   4033 	realname()		Get user name (first, last, full)
   4034 				user_fullname() patch by Nikolai Weibull, Nov
   4035 				3 2002
   4036 				Only add this when also implemented for
   4037 				non-Unix systems, otherwise a shell cmd could
   4038 				be used.
   4039 				get_user_name() gets login name.
   4040 	menuprop({name}, {idx}, {what})
   4041 				Get menu property of menu {name} item {idx}.
   4042 				menuprop("", 1, "name") returns "File".
   4043 				menuprop("File", 1, "n") returns "nmenu
   4044 				File.Open..." argument.
   4045 				Patch by Ilya Sher, 2004 Apr 22
   4046 				Return a list of menus and/or a dictionary
   4047 				with properties instead.
   4048 	mapname({idx}, mode)	return the name of the idx'th mapping.
   4049 				Patch by Ilya Sher, 2004 Mar 4.
   4050 				Return a list instead.
   4051 	char2hex()		convert char string to hex string.
   4052 	crypt()			encrypt string
   4053 	decrypt()		decrypt string
   4054 	attributes()		return file protection flags "drwxrwxrwx"
   4055 	shorten(fname)		shorten a file name, like home_replace()
   4056 	perl(cmd)		call Perl and return string
   4057 	inputrl()		like input() but right-to-left
   4058 	typed()			return the characters typed and consumed (to
   4059 				find out what happened)
   4060 	virtualmode()		add argument to obtain whether "$" was used in
   4061 				Visual block mode.
   4062 	getacp()		Win32: get codepage (Glenn Maynard)
   4063 	libcall()		Allow more than one argument.
   4064 	libcallext()		Like libcall(), but using a callback function
   4065 				to allow the library to execute a command or
   4066 				evaluate an expression.
   4067 7   Make bufname("'0") return the buffer name from mark '0.  How to get the
   4068     column and line number?  col("'0") currently returns zero.
   4069 8   argc() returns 0 when using "vim -t tag".  How to detect that no file was
   4070     specified in any way?  To be able to jump to the last edited file.
   4071 8   Pass the command line arguments to Vim scripts in some way.  As v:args
   4072     List?  Or extra parameter to argv()?
   4073 8   Add command arguments with three dashes, passed on to Vim scripts.
   4074 6   User functions: Functions local to buffer "b:func()"?
   4075 8   For Strings add ":let var[{expr}] = {expr}".  When past the end of "var"
   4076     just ignore.
   4077 8   The "= register should be writable, if followed by the name of a variable,
   4078     option or environment variable.
   4079 8   ":let &option" should list the value of the option.
   4080 8   ":let Func().foo = value" should work, also when "foo" doesn't exist.
   4081     Also: ":let Func()[foo] = value" should work.  Same for a List.
   4082 7   Add synIDlist(), making the whole list of syntax items on the syntax stack
   4083     available as a List.
   4084 8   Add autocommand-event for when a variable is changed:
   4085 	:au VarChanged {varname} {commands}
   4086 8   Add "has("gui_capable")", to check if the GUI can be started.
   4087 8   Add possibility to use variables like registers: characterwise (default),
   4088     linewise (when ending in '\n'), blockwise (when ending in '\001').	reg0,
   4089     rega, reg%, etc.  Add functions linewise({expr}), blockwise({expr}) and
   4090     charwise({expr}).
   4091 7   Make it possible to do any command on a string variable (make a buffer
   4092     with one line, containing the string).  Maybe add an (invisible) scratch
   4093     buffer for this?
   4094 	result = scratch(string, command)
   4095 	result = apply(string, command)
   4096 	result = execute(string, command)
   4097     "command" would use <> notation.
   4098     Does scratch buffer have a number?  Or re-use same number?
   4099 7   Add function to generate unique number (date in milliseconds).
   4100 
   4101 
   4102 Robustness:
   4103 6   Add file locking.  Lock a file when starting to edit it with flock() or
   4104     fcntl().  This patch has advisory file locking while reading/writing
   4105     the file for Vim 5.4: ~/vim/patches/kahn_file_locking .
   4106     The patch is incomplete (needs support for more systems, autoconf).
   4107     Andy doesn't have time to work on it.
   4108     Disadvantage: Need to find ways to gracefully handle failure to obtain a
   4109     lock.  When to release a lock: When buffer is unloaded?
   4110 
   4111 
   4112 Performance:
   4113 7   For string variables up to 3 bytes don't allocate memory, use v_list
   4114     itself as a character array.  Use VAR_SSTRING (short string).
   4115 7   Add 'lazysize' option: Above this size Vim doesn't load everything before
   4116     starting to edit a file.  Things like 'fileencodings' only work up to this
   4117     size, modelines only work at the top.  Useful for large log files where
   4118     you only want to look at the first few pages.  Use zero to disable it.
   4119 8   move_lines() copies every line into allocated memory, making reloading a
   4120     buffer a lot slower than re-editing the file.  Can the memline be locked
   4121     so that we don't need to make a copy?  Or avoid invoking ml_updatechunk(),
   4122     that is taking a lot of time.  (Ralf Wildenhues, 2008 Jul 7)
   4123     With a patch, but does it work?
   4124 8   Turn b_syn_ic and b_syn_containedin into b_syn_flags.
   4125 9   Loading menu.vim still takes quite a bit of time.  How to make it faster?
   4126 8   in_id_list() takes much time for syntax highlighting.  Cache the result?
   4127 7   setpcmark() shifts the jumplist, this takes quite a bit of time when
   4128     jumping around.  Instead use an index for the start?
   4129 8   When displaying a space with only foreground highlighting, it's the same
   4130     as a space without attributes.  Avoid displaying spaces for the "~" lines
   4131     when starting up in a color terminal.
   4132 8   Avoid alloc() for scratch buffer use, esp. in syntax.c.  It's very slow on
   4133     Win16.
   4134 8   Profiling shows that in_id_list() is used very often for C code.  Can this
   4135     function be improved?
   4136 8   For an existing file, the page size of the swap file is always the
   4137     default, instead of using the block size of the device, because the swap
   4138     file is created only after setting the block size in mf_open().  How can
   4139     this be improved?
   4140 8   Set default for 'ttyscroll' to half a screen height?  Should speed up
   4141     MS-DOS version. (Negri)
   4142 7   C syntax highlighting gets a lot slower after ":set foldmethod=syntax".
   4143     (Charles Campbell)  Inserting a "{" is very slow. (dman)
   4144 7   HTML syntax highlighting is slow for long lines.  Try displaying
   4145     http://www.theregister.co.uk/content/4/22908.html. (Andre Pang)
   4146 7   Check how performance of loading the wordlist can be improved (adding a
   4147     lot of abbreviations).
   4148 7   Compile Ex commands to byte codes.  Store byte codes in a vim script file
   4149     at the end, after "compiled:.  Make it look like a single comment line
   4150     for old Vim versions.  Insert first line "Vim script compiled <timestamp>.
   4151     Only used compiled code when timestamp matches the file stat.
   4152     Add command to compile a vim script and add it to the file in-place.
   4153     Split Ex command executing into a parsing and executing phase.
   4154     Use compiled code for functions, while loops, etc.
   4155 8   When defining autocommands (e.g., from $VIMRUNTIME/filetype.vim), need to
   4156     compare each pattern with all existing patterns.  Use a hash code to avoid
   4157     using strcmp() too often?
   4158 7   Include turbo_loader patches, speeding up reading a file?
   4159     Speed up reading a file by reading it into a fixed-size buffer, creating
   4160     the list of indexes in another buffer, and then copying the result into a
   4161     memfile block with two copies.  Then read the next block into another
   4162     fixed-size buffer, create the second list of indexes and copy text from
   4163     the two blocks to the memfile block.
   4164 7   do_cmdline(): Avoid that the command line is copied to allocated memory
   4165     and freed again later all the time.  For while loops, and for when called
   4166     with an argument that can be messed with.
   4167     Generic solution: Make a struct that contains a pointer and a flag that
   4168     indicates if the pointer should be freed when replaced.
   4169 7   Check that the file size is not more than "sizeof(long)".
   4170 -   Further improve finding mappings in maphash[] in vgetorpeek()
   4171 8   Syntax highlighting is slow when deleting lines.  Try in
   4172     $VIMRUNTIME/filetype.vim.
   4173 -   "out of memory" after deleting (1,$d) and changing (:%s/^/> /) a lot of
   4174     lines (27000) a few times.  Memory fragmentation?
   4175 -   Have a look at how pdksh does memory allocation (alloc.c). (Dalecki)
   4176 -   Do profiling on:
   4177     - :g/pat/normal cmd
   4178     - deleting 10Mbyte worth of lines (netscape binary)
   4179     - "[i" and "[d" (Yegappan Lakshmanan)
   4180     - ":g/^/m0" on a 450Kbyte file.  And the "u".
   4181     - highlighting "~/vim/test/longline.tex", "~/vim/test/scwoop.tcl" and
   4182       "~/vim/test/lockup.pl".
   4183     - loading a syntax file to highlight all words not from a dictionary.
   4184     - editing a Vim script with syntax highlighting on (loading vim.vim).
   4185 7   Screen updating can be further improved by only redrawing lines that were
   4186     changed (and lines after them, when syntax highlighting was used, and it
   4187     changed).
   4188     - On each change, remember start and end of the change.
   4189     - When inserting/deleting lines, remember begin, end, and line count.
   4190 -   Use macros/duarte/capicua for profiling.  Nvi 1.71 is the fastest!
   4191 -   When using a file with one long line (1Mbyte), then do "$hhhh", is still
   4192     very slow.  Avoid calling getvcol() for each "h"?
   4193 -   Executing a register, e.g. "10000@@" is slow, because ins_typebuf has to
   4194     move the previous commands forward each time.  Pass count from
   4195     normal_cmd() down to do_execreg().
   4196 -   Avoid calls to plines() for cursor line, use w_cline_height.
   4197 -   After ":set nowrap" remove superfluous redraw with wrong hor. offset if
   4198     cursor is right of the screen.
   4199 8   Make CTRL-C on Unix generate a signal, avoid using select() to check for a
   4200     CTRL-C (it's slow).
   4201 
   4202 
   4203 Code size:
   4204 8   GUI: When NO_CONSOLE is defined, more code can be excluded.
   4205 -   Put getline() and cookie in a struct, so only one argument has to be
   4206     passed to do_cmdline() and other functions.
   4207 8   Make a GUI-only version for Unix?
   4208 8   In buf_write _() isn't needed when setting errmsg, do it once when using
   4209     it.
   4210 7   When compiling with a GUI-only version, the code for cterm colors can be
   4211     left out.
   4212 8   When compiled with a GUI-only version, the termcap entries for terminals
   4213     can be removed.
   4214 
   4215 
   4216 Messages:
   4217 8   When using ":q" in a changed file, the error says to "add !".  Add the
   4218     command so that beginners understand it: "use :q!".
   4219 8   For 'verbose' level 12 prints commands from source'ed files.  How to skip
   4220     lines that aren't executed?  Perhaps move the echoing to do_cmdline()?
   4221 8   Use 'report' for ":bdel"?  (Krishna)  To avoid these messages when using a
   4222     script.
   4223 -   Delete message after new command has been entered and have waited for key.
   4224     Perhaps after ten seconds?
   4225 -   Make message history available in "msg" variables: msg1, msg2, .. msg9.
   4226 9   Check handling of overwriting of messages and delays:
   4227     Very wrong: errors while redrawing cause endless loop.
   4228     When switching to another file and screen scrolls because of the long
   4229     message and return must be typed, don't scroll the screen back before
   4230     redrawing.
   4231 8   When address range is wrong you only get "Invalid range".  Be a bit more
   4232     specific: Negative, beyond last line, reverse range?  Include the text.
   4233 8   Make it possible to ignore errors for a moment ('errorignore'?).  Another
   4234     option to switch off giving error messages ('errorquiet'?).  Also an option
   4235     not to give any messages ('quiet')?  Or ":quiet on", ":quiet off".
   4236     Careful: For a severe error (out of memory), and when the user starts
   4237     typing, error messages must be switched back on.
   4238     Also a flag to ignore error messages for shell commands (for mappings).
   4239 -   Option to set time for emsg() sleep.  Interrupt sleep when key is typed?
   4240     Sleep before second message?
   4241 8   In Ex silent mode or when reading commands from a file, what exactly is
   4242     not printed and what is?  Check ":print", ":set all", ":args", ":vers",
   4243     etc.  At least there should be no prompt. (Smulders)  And don't clear the
   4244     screen when reading commands from stdin. (Kendall)
   4245     --> Make a difference between informative messages, prompts, etc. and
   4246 	error messages, printing text, etc.
   4247 8   Window should be redrawn when resizing at the hit-enter prompt.
   4248     Also at the ":tselect" prompt.  Find a generic solution for redrawing when
   4249     a prompt is present (with a callback function?).
   4250 
   4251 
   4252 Screen updating:
   4253 -   screen_line():
   4254     - insert/delete character stuff.
   4255     - improve delete rest of line (spaces at end of line).
   4256 -   When moving or resizing window, try to avoid a complete redraw (esp. when
   4257     dragging the status line with the mouse).
   4258 -   When 'lazyredraw' set, don't echo :ex commands?  Need a flag to redraw when
   4259     waiting for a character.
   4260 8   Add a ":refresh [winnr]" command, to force updating a window.  Useful from
   4261     an event handler where ":normal" can't be used.  Also useful when
   4262     'lazyredraw' is set in a mapping.
   4263 
   4264 Scrolling:
   4265 8   Add "zy" command: scroll horizontally to put the cursor in the middle.
   4266 6   Add option to set the overlap for CTRL-F and CTRL-B. (Garhi)
   4267 -   extend 'scrollbind' option: 'scrollopt' words "search", "relative", etc..
   4268     Also 'e'xecute some commands (search, vertical movements) in all bound
   4269     windows.
   4270 7   Add 'scrollbind' feature to make the offset of one window with the next
   4271     one equal to the window height.  When editing one file in both windows it
   4272     looks like each window displays a page of the buffer.
   4273 -   Allow scrolling by dragging with the mouse (grab a character and move it
   4274     up/down).  Like the "hand" in Acrobat reader.  Use Alt-LeftMouse for this?
   4275     (Goldfarb)
   4276 -   Add command to execute some commands (search, vertical movements) in all
   4277     bound windows.
   4278 -   Add 'search' option to 'scrollopt' to allow 'scrollbind' windows to
   4279     be bound by regexp searches
   4280 -   Add "z>" and "z<": scroll sideways one screenful. (Campbell)
   4281 -   Add option to set the number of lines when not to scroll, instead of the
   4282     fixed number used now (for terminals that scroll slow with a large number
   4283     of lines but not with a single line).
   4284 
   4285 
   4286 Autoconf:
   4287 8   Should use acconfig.h to define prototypes that are used by autoheader.
   4288 8   Some compilers don't give an error for "-OPT:Olimit" but a warning. (Webb)
   4289     Add a check for the warning, so that "Olimit" can be added automatically?
   4290 -   Autoconf: Use @datadir@ for the system independent files.  Make sure the
   4291     system dependent and system independent files are separated. (Leitner).
   4292 -   Add autoconf check for waitpid()/wait4().
   4293 -   Remove fcntl() from autoconf, all systems have it?
   4294 -   Set default for 'dictionary', add search for dictionary to autoconf.
   4295 
   4296 
   4297 Perl interface:
   4298 8   Rename typemap file to something else?
   4299 7   Make buffers accessed as Perl arrays. (Clark)
   4300 7   Make it possible to compile with non-ANSI C?
   4301 6   Tcl/Tk has the "load" command: load a shared library (.so or .dll).
   4302 
   4303 
   4304 Shared libraries:
   4305 8   libcall() can keep the library around instead of always calling dlclose().
   4306     (Jason Felice, 2018 Mar 20)
   4307 6   Add support for loading shared libraries, and calling functions in it.
   4308 	:libload internal-name libname
   4309 	:libunload internal-name
   4310 	:liblist
   4311 	:libcall internal-name function(arg1, arg2, ...)
   4312 	:libcall function(arg1, arg2, ...)
   4313     libcall() can have only one integer or String argument at the moment.
   4314 6   Have a look on how Perl handles loading dynamic libraries.
   4315 
   4316 
   4317 Tags:
   4318 9   With ":set tags=./tags,../tags" and a tag appears in both tags files it is
   4319     added twice.  Requires figuring out the actual file name for each found
   4320     match.  Remove tag_fname from the match and combine it with the fname in
   4321     the match (without expanding or other things that take time).  When
   4322     'tagrelative' is off tag_fname isn't needed at all.
   4323 8   For 'tags' wildcard in the file name is not supported, only in the path.
   4324     This is due to it using |file-searching|. Suboptimal solution would be to
   4325     make the filename or the whole option use |wildcards| globing, better
   4326     would be to merge the 2 kinds of globing. originally (Erik Falor, 2008
   4327     April 18), updated (Ian Kelling, 2008 July 4)
   4328 7   Can CTRL-] (jump to tag) include a following "." and "->" to restrict the
   4329     number of possible matches? Check tags file for an item that has members.
   4330     (Flemming Madsen)
   4331 8   Scope arguments for ":tag", e.g.: ":tag class:cPage open", like Elvis.
   4332 8   When output of ":tselect" is long, getting the more-prompt, should be able
   4333     to type the tag number directly.
   4334 7   Add the possibility to use the "-t {tag}" argument multiple times.  Open a
   4335     window for each tag.
   4336 7   Make output of ":tselect" a bit nicer.  Use highlighting?
   4337 7   Highlight the "tag 1 of >2" message.  New highlight group, or same as "hit
   4338     bottom" search message.
   4339 7   When using ":tag" at the top of the tag stack, should add another entry,
   4340     so CTRL-T can bring you back to where you are now AND to where you were
   4341     before the previous ":tag" command. (Webb)
   4342 -   When doing "[^I" or "[^D" add position to tag stack.
   4343 -   Add command to put current position to tag stack: ":tpush".
   4344 -   Add functions to save and restore the tag stack?  Or a command to switch
   4345     to another tag stack?  So that you can do something else and come back to
   4346     what you were working on.
   4347 7   When using CTRL-] on someClass::someMethod, separate class from method and
   4348     use ":ta class:someClass someMethod".
   4349     Include C++ tags changes (Bertin).	Change "class::func" tag into "func"
   4350     with "class=class"?  Docs in oldmail/bertin/in.xxx.
   4351 7   Add ":tagargs", to set values for fields:
   4352 	:tagargs class:someclass file:version.c
   4353 	:tagargs clear
   4354     These are then the default values (changes the order of priority in tag
   4355     matching).
   4356 7   Support for "gtags" and "global"?  With ":rtag" command?
   4357     There is an example for how to do this in Nvi.
   4358     Or do it like Elvis: 'tagprg' and 'tagprgonce' options. (Yamaguchi)
   4359     The Elvis method is far more flexible, do it that way.
   4360 7   Support "col:99" extra field, to position the cursor in that column.  With
   4361     a flag in 'cpoptions' to switch it off again.
   4362 7   Better support for jumping to where a function or variable is used.  Use
   4363     the id-utils, with a connection to "gid" (Emacs can do it too).  Add
   4364     ":idselect", which uses an "ID" database (made by "mkid") like "tselect".
   4365 
   4366 
   4367 Win32 GUI:
   4368 8   Make debug mode work while starting up (vim -D).  Open console window for
   4369     the message and input?
   4370 8   When using "Edit with Vim" for one file it changes directory, when several
   4371     files are selected and using "Edit with single Vim" the directory isn't
   4372     changed.  At least change directory when the path is the same for all
   4373     files.  Perhaps just use the path of the first file or use the longest
   4374     common part of the path.
   4375 8   Add font argument to set the lfCharSet. (Bobcik)
   4376 8   Somehow automatically detect the system language and set $LANG, so that
   4377     gettext and menus work.
   4378 8   Could keep console open to run multiple commands, to avoid the need to hit
   4379     return in every console.
   4380     Also: Look at how Emacs does run external commands:
   4381 	(deak link) www.cs.washington.edu/homes/voelker/ntemacs.html.
   4382 8   Need a separate PopUp menu for modeless selection.  Need two new commands:
   4383     Copy selection to clipboard, Paste selection (as typed text).
   4384 8   Support copy/paste for other file formats.  At least HTML, perhaps RTF.
   4385     Add "copy special" and "paste special" commands?
   4386 7   Use different default colors, to match the current Windows color scheme.
   4387     Sys_WindowText, Sys_Window, etc. (Lionel Schaffhauser)
   4388 7   Use <C-Tab> to cycle through open windows (e.g., the find dialog).
   4389 7   <Esc> should close a dialog.
   4390 7   Keep the console for external commands open.  Don't wait for a key to be
   4391     hit.  Re-open it when the user has closed it anyway.  Or use a prepended
   4392     command: ":nowait {cmd}", or ":quiet", which executes {cmd} without any
   4393     prompts.
   4394 7   Should be able to set an option so that when you double click a file that
   4395     is associated with Vim, you can either get a new instance of Vim, or have
   4396     the file added into an already running Vim.
   4397 7   The "-P" argument only works for the current codepage.  Use wide
   4398     functions to find the window title.
   4399 
   4400 
   4401 GUI:
   4402 7   Implement ":popup" for other systems than Windows.
   4403 8   Implement ":tearoff" for other systems than Win32 GUI.
   4404 6   Implement ":untearoff": hide a torn-off menu.
   4405 8   When using the scrollbar to scroll, don't move the cursor position.  When
   4406     moving the cursor: scroll to the cursor position.
   4407 9   Make <S-Insert> paste from the clipboard by default. (Kunze)
   4408 7   Menu local to a buffer, like mappings.  Or local to a filetype?
   4409 8   In Buffers menu, add a choice whether selecting a buffer opens it in the
   4410     current window, splits the window or uses ":hide".
   4411 8   Dragging the mouse pointer outside of a Vim Window should make the text
   4412     scroll.  Return a value from gui_send_mouse_event() to the machine
   4413     specific code to indicate the time in which the event should be repeated.
   4414 8   Make it possible to ignore a mouse click when it's used to give Vim (gvim)
   4415     window focus.  Also when a mouse click is used to bring a window to front.
   4416 8   Make the split into system independent code and system specific code more
   4417     explicit.  There are too many #ifdefs in gui.c.
   4418     If possible, separate the Vim code completely from the GUI code, to allow
   4419     running them in separate processes.
   4420 7   X11: Support cursorColor resource and "-cr" argument.
   4421 8   X11 (and others): CTRL-; is not different from ';'.  Set the modifier mask
   4422     to include CTRL for keys where CTRL produces the same ASCII code.
   4423 7   Add some code to handle proportional fonts on more systems?  Need to draw
   4424     each character separately (like xterm).  Also for when a double-width font
   4425     is not exactly double-width. (Maeda)
   4426 8   Should take font from xterm where gvim was started (if no other default).
   4427 8   Selecting font names in X11 is difficult, make a script or something to
   4428     select one.
   4429 8   Visual highlighting should keep the same font (bold, italic, etc.).
   4430 8   Add flag to 'guioptions' to not put anything in the clipboard at all?
   4431 8   Should support a way to use keys that we don't recognize yet.  Add a
   4432     command that adds entries to special_keys somehow.	How do we make this
   4433     portable (X11, Win32, ..)?
   4434 7   Add a flag to 'guioptions' that tells not to remove inactive menu items.
   4435     For systems where greying-out or removing menu items is very slow.  The
   4436     menu items would remain visibly normally, but not do anything.
   4437 7   Add ":minimize" and ":maximize", which iconize the window and back.
   4438     Useful when using gvim to run a script (e.g. 2html.vim).
   4439 7   X11: Is it possible to free allocated colors, so that other programs can
   4440     use them again?  Otherwise, allow disabling allocating the default colors.
   4441     Or allocate an own colormap (check UAE).  With an option to use it.  For
   4442     the commandline, "-install" is mostly used for X11 programs.
   4443 7   Should support multi-column menus.
   4444 -   Should add option for where to put the "Help" menu: like Motif at the far
   4445     right, or with the other menus (but still at the right).
   4446 -   Add menu item to "Keep Insert mode".
   4447 8   ":mkgvimrc" command, that includes menus.
   4448 6   Big change: Move GUI to separate program "vimgui", to make startup of vim a
   4449     lot faster, but still be able to do "vim -g" or ":gui".
   4450 7   More explicit mouse button binding instead of 'mousemodel'?
   4451 7   Add option to set the position of the window on the screen.  'windowpos',
   4452     which has a value of "123,456": <x>,<y>.
   4453     Or add a command, like ":winsize"?
   4454 7   Add toolbar for more GUIs.
   4455 8   Make it possible to use "amenu icon=BuiltIn##", so that the toolbar item
   4456     name can be chosen free.
   4457 7   Make it possible to put the toolbar on top, left, right and/or bottom of
   4458     the window?  Allows for softkey-like use.
   4459 6   Separate the part of Vim that does the editing from the part that runs the
   4460     GUI.  Communicate through a pseudo-tty.  Vim starts up, creates a
   4461     pty that is connected to the terminal.  When the GUI starts, the pty is
   4462     reconnected to the GUI process.  When the GUI stops, it is connected to
   4463     the terminal again.  Also use the pty for external processes, it looks
   4464     like a vt100 terminal to them.  Vim uses extra commands to communicate GUI
   4465     things.
   4466 7   Motif: For a confirm() dialog <Enter> should be ignored when no default
   4467     button selected, <Esc> should close the dialog.
   4468 7   When using a pseudo-tty Vim should behave like some terminal (vt52 looks
   4469     simple enough).  Terminal codes to/from shell should be translated.
   4470 -   Would it be useful to be able to quit the GUI and go back to the terminal
   4471     where it was started from?
   4472 7   Support "-visual <type>" command line argument.
   4473 
   4474 
   4475 Autocommands:
   4476 9   When triggering WinNew provide the window ID somehow.  #10633
   4477 9   Rework the code from FEAT_OSFILETYPE for autocmd-osfiletypes to use
   4478     'filetype'.  Only for when the current buffer is known.
   4479 -   Put autocommand event names in a hashtable for faster lookup?
   4480 8   When the SwapExists event is triggered, provide information about the
   4481     swap file, e.g., whether the process is running, file was modified, etc.
   4482     Must be possible to check the situation that it's probably OK to delete
   4483     the swap file. (Marc Merlin)
   4484 8   When all the patterns for an event are "*" there is no need to expand
   4485     buffer names to a full path.  This can be slow for NFS.
   4486 7   For autocommand events that trigger multiple times per buffer (e.g.,
   4487     CursorHold), go through the list once and cache the result for a specific
   4488     buffer.  Invalidate the cache when adding/deleting autocommands or
   4489     changing the buffer name.
   4490 7   Add TagJump event: do something after jumping to a tag.
   4491 8   Add "TagJumpFile" autocommand: When jumping to another file for a tag.
   4492     Can be used to open "main.c.gz" when "main.c" isn't found.
   4493 8   Use another option than 'updatetime' for the CursorHold event.  The two
   4494     things are unrelated for the user (but the implementation is more
   4495     difficult).
   4496 7   Add autocommand event for when a buffer cannot be abandoned.  So that the
   4497     user can define the action taking (autowrite, dialog, fail) based on the
   4498     kind of file. (Yakov Lerner)  Or is BufLeave sufficient?
   4499 8   Autocommand for when modified files have been found, when getting input
   4500     focus again (e.g., FileChangedFocus).
   4501     Check when: getting focus, jumping to another buffer, ...
   4502 8   Autocommands should not change registers.  And marks?  And the jumplist?
   4503     And anything else?  Add a command to save and restore these things.
   4504 8   Add autocommands, user functions and user commands to ":mkvimrc".
   4505 6   Add KeymapChanged event, so that the effects of a different keymap can be
   4506     handled (e.g., other font) (Ron Aaron)
   4507 7   When trying to open a directory, trigger an OpenDirectory event.
   4508 7   Add file type in front of file pattern: <d> for directory, <l> for link,
   4509     <x> for executable, etc.  With commas to separate alternatives.  The
   4510     autocommand is only executed when both the file type AND the file pattern
   4511     match. (Leonard)
   4512 5   Add option that specifies extensions which are to be discarded from the
   4513     file name.  E.g. 'ausuffix', with ".gz,.orig".  Such that file.c.gz will
   4514     trigger the "*.c" autocommands.  (Belabas)
   4515 7   Add something to break the autocommands for the current event, and for
   4516     what follows.  Useful for a "BufWritePre" that wants to avoid writing the
   4517     file.
   4518 8   When editing "tt.gz", which is in DOS format, 'fileformat' stays at
   4519     "unix", thus writing the file changes it.  Somehow detect that the read
   4520     command used dos fileformat.  Same for 'fileencoding'.
   4521 -   Add events to autocommands:
   4522     Error	    - When an error happens
   4523     VimLeaveCheck    - Before Vim decides to exit, so that it can be cancelled
   4524 		      when exiting isn't a good idea.
   4525     CursorHoldC     - CursorHold while command-line editing
   4526     WinMoved	    - when windows have been moved around, e.g, ":wincmd J"
   4527     SearchPost	    - After doing a search command (e.g. to do "M")
   4528     ShutDown	    - when the system is about to shut down
   4529     InsertCharPost  - user typed a character in Insert mode, after inserting
   4530 		      the char.
   4531     BufModified	    - When a buffer becomes modified, or unmodified (for
   4532 		      putting a [+] in the window title or checking out the
   4533 		      file from CVS).
   4534     BufFirstChange  - When making a change, when 'modified' is set.  Can be
   4535 		      used to do a :preserve for remote files.
   4536     BufChange	    - after a change was made.  Set some variables to indicate
   4537 		      the position and number of inserted/deleted lines, so
   4538 		      that marks can be updated.  HierAssist has patch to add
   4539 		      BufChangePre, BufChangePost and RevertBuf. (Shah)
   4540     ViewChanged	    - triggered when the text scrolls and when the window size
   4541 		      changes.
   4542     QuickfixList    - when any entry in the current list changes or another
   4543 		      list is selected
   4544     QuickfixPosition - when selecting another entry in the current quickfix
   4545 		       list
   4546 
   4547 -   Write the file now and then ('autosave'):
   4548 				  *'autosave'* *'as'* *'noautosave'* *'noas'*
   4549     'autosave' 'as' number  (default 0)
   4550 	    Automatically write the current buffer to file N seconds after the
   4551 	    last change has been made and when 'modified' is still set.
   4552 	    Default: 0 = do not autosave the buffer.
   4553     Alternative: have 'autosave' use 'updatetime' and 'updatecount' but make
   4554     them save the file itself besides the swapfile.
   4555 -   Buffer autocommands are a bit inconsistent.  Add a separate set of
   4556     autocommands for the buffer lifecycle:
   4557         BufIsCreated  (after buffer ID exists)
   4558         BufIsLoaded   (after buffer ID has content)
   4559         BufIsUnloaded (after buffer ID no longer has)
   4560         BufIsWiped    (after buffer ID was wiped)
   4561         BufIsRenamed  (after buffer ID gets another name)
   4562     The buffer list and windows are locked, no changes possible
   4563 
   4564 
   4565 Omni completion:
   4566 -   Ideas from the Vim 7 BOF at SANE:
   4567 	- For interpreted languages, use the interpreter to obtain information.
   4568 	  Should work for Java (Eclipse does this), Python, Tcl, etc.
   4569 	  Richard Emberson mentioned working on an interface to Java.
   4570 	- Check Readline for its completion interface.
   4571 -   Ideas from others:
   4572 	http://www.wholetomato.com/
   4573 	http://www.vim.org/scripts/script.php?script_id=747
   4574 	    http://sourceforge.net/projects/insenvim
   4575 		or http://insenvim.sourceforge.net
   4576 	    Java, XML, HTML, C++, JSP, SQL, C#
   4577 	    MS-Windows only, lots of dependencies (e.g. Perl, Internet
   4578 		explorer), uses .dll shared libraries.
   4579 	    For C++ uses $INCLUDE environment var.
   4580 	    Uses Perl for C++.
   4581 	    Uses ctags to find the info:
   4582 		ctags -f $allTagsFile --fields=+aiKmnsSz --language-force=C++ --C++-kinds=+cefgmnpsut-dlux -u $files
   4583 	www.vim.org script 1213 (Java Development Environment) (Fuchuan Wang)
   4584 	IComplete: http://www.vim.org/scripts/script.php?script_id=1265
   4585 	http://cedet.sourceforge.net/intellisense.shtml (for Emacs)
   4586 	Ivan Villanueva has something for Java.
   4587 	Emacs (link seems dead):
   4588 	www.xref-tech.com/xrefactory/more_c_completion.html
   4589 	Completion in .NET framework SharpDevelop: http://www.icsharpcode.net
   4590 -   Pre-expand abbreviations, show which abbrevs would match?
   4591 
   4592 
   4593 Insert mode completion/expansion:
   4594 -   Is it possible to keep the complete menu open when calling complete()?
   4595     (Prabir Shrestha, 2017 May 19, #1713)
   4596 -   When complete() first argument is before where insert started and
   4597     'backspace' is Vi compatible, the completion fails.
   4598     (Hirohito Higashi, 2015 Feb 19)
   4599 -   When a:base in 'completefunc' starts with a number it's passed as a
   4600     number, not a string. (Sean Ma)  Need to add flag to call_func_retlist()
   4601     to force a string value.
   4602 -   When editing the text and pressing CTRL-N again goes back to originally
   4603     completed text, edited text is gone. (Peng Yu, 2008 Jul 24)
   4604     Suggestion by Ben Schmidt, 2008 Aug 6.
   4605 -   GUI implementation of the popup menu.
   4606 7   When searching in other files the name flash by, too fast to read.  Only
   4607     display a name every second or so, like with ":vimgrep".
   4608 7   When expanding file names with an environment variable, add the match with
   4609     the unexpanded var.  So $HOME/tm expands to "/home/guy/tmp" and
   4610     "$HOME/tmp"
   4611 9   ^X^L completion doesn't repeat correctly.  It uses the first match with
   4612     the last added line, instead of continuing where the last match ended.
   4613     (Webb)
   4614 8   Add option 'istagword': characters used for CTRL-]. like 'isexpand'
   4615 8   Add a command to undo the completion, go back to the original text.
   4616 7   Completion of an abbreviation: Can leave letters out, like what Instant
   4617     text does: www.textware.com
   4618 8   Use the class information in the tags file to do context-sensitive
   4619     completion.  After "foo." complete all member functions/variables of
   4620     "foo".  Need to search backwards for the class definition of foo.
   4621     Should work for C++ and Java.
   4622     Even more context would be nice: "import java.^N" -> "io", "lang", etc.
   4623 7   When expanding $HOME/dir with ^X^F keep the $HOME (with an option?).
   4624 7   Add CTRL-X command in Insert mode like CTRL-X CTRL-N, that completes WORDS
   4625     instead of words.
   4626 8   Add completion of previously inserted texts (like what CTRL-A does).
   4627     Requires remembering a number of insertions.
   4628 8   Add 'f' flag to 'complete': Expand file names.
   4629     Also apply 'complete' to whole line completion.
   4630 -   Add a flag to 'complete' to only scan local header files, not system
   4631     header files. (Andri Moell)
   4632 -   Make it possible to search include files in several places.  Use the
   4633     'path' option?  Can this be done with the dictionary completion (use
   4634     wildcards in the file name)?
   4635 -   Make CTRL-X CTRL-K do a binary search in the dictionary (if it's sorted).
   4636 -   Speed up CTRL-X CTRL-K dictionary searching (don't use a regexp?).
   4637 -   Set a mark at the position where the match was found (file mark, could
   4638     be in another file).
   4639 -   Add CTRL-A command in CTRL-X mode: show all matches.
   4640 -   Make CTRL-X CTRL-L use the 'complete' option?
   4641 -   Add command in CTRL-X mode to add following words to the completed string
   4642     (e.g. to complete "Pointer->element" with CTRL-X CTRL-P CTRL-W CTRL-W)
   4643 -   CTRL-X CTRL-F: Use 'path' to find completions.
   4644 -   CTRL-X CTRL-F: Option to use forward slashes on MS-Windows?
   4645 -   CTRL-X CTRL-F: Don't replace "$VIM" with the actual value. (Kelly)
   4646 -   Allow listing all matches in some way (and picking one from the list).
   4647 
   4648 
   4649 Command line editing:
   4650 7   Add commands (keys) to delete from the cursor to the end of the command
   4651     line.
   4652 8   Custom completion of user commands can't use the standard completion
   4653     functions.  Add a hook to invoke a user function that returns the type of
   4654     completion to be done: "file", "tag", "custom", etc.
   4655 -   Add flags to 'whichwrap' for command line editing (cursor right at end of
   4656     lines wraps to start of line).
   4657 -   Make editing the command line work like Insert mode in a single-line view
   4658     on a buffer that contains the command line history.  But this has many
   4659     disadvantages, only implement it when these can be solved.  Elvis has run
   4660     into these, see remarks from Steve (~/Mail/oldmail/kirkendall/in.00012).
   4661     - Going back in history and editing a line there would change the history.
   4662       Would still need to keep a copy of the history elsewhere.  Like the
   4663       cmdwin does now already.
   4664     - Use CTRL-O to execute one Normal mode command.  How to switch to normal
   4665       mode for more commands?  <Esc> should cancel the command line.  CTRL-T?
   4666     - To allow "/" and "= need to recursively call getcmdline(), overwrite the
   4667       cmdline.  But then we are editing a command-line again.  How to avoid
   4668       that the user gets confused by the stack of command lines?
   4669     - Use edit() for normal cmdline editing?  Would have to integrate
   4670       getcmdline() into edit().  Need to solve conflicts between Insert mode
   4671       and Command-line mode commands.  Make it work like Korn shell and tcsh.
   4672       Problems:
   4673 	- Insert: completion with 'wildchar'
   4674 	- Insert: use cmdline abbreviations
   4675 	- Insert: CTRL-D deletes indent instead of listing matches
   4676 	- Normal: no CTRL-W commands
   4677 	- Normal: no ":" commands?
   4678 	- Normal: allow Visual mode only within one line.
   4679     - where to show insert/normal mode message?  Change highlighting of
   4680       character in first column?
   4681     - Implementation ideas:
   4682       - Set "curwin" and "curbuf" to the command line window and buffer.
   4683       - curwin->w_topline is always equal to curwin->w_cursor.lnum.
   4684       - never set 'number', no folding, etc.  No status line.
   4685       - sync undo after entering a command line?
   4686       - use NV_NOCL flag for commands that are not allowed in Command-line
   4687 	Mode.
   4688 
   4689 
   4690 Command line completion:
   4691 -   Feature request: Complete members of a dictionary.
   4692     (Luc Hermitte, 2017 Jan 4, #1350)
   4693 -   Completion of ":e" is ":earlier", should be ":edit".  Complete to the
   4694     matching command instead of doing this alphabetically. (Mikel Jorgensen)
   4695 8   Change expand_interactively into a flag that is passed as an argument.
   4696 8   With command line completion after '%' and '#', expand current/alternate
   4697     file name, so it can be edited.  Also with modifiers, such as "%:h".
   4698 8   When completing command names, either sort them on the long name, or list
   4699     them with the optional part inside [].
   4700 8   Add an option to ignore case when doing interactive completion.  So that
   4701     ":e file<Tab>" also lists "Filelist" (sorted after matching case matches).
   4702 7   Completion of ":map x ": fill in the current mapping, so that it can be
   4703     edited. (Sven Guckes)
   4704 -   For 'wildmenu': Simplify "../bar" when possible.
   4705 -   When using <Up> in wildmenu mode for a submenu, should go back to the
   4706     current menu, not the first one.  E.g., ":emenu File.Save<Up>".
   4707 8   When using backtick expansion, the external command may write a greeting
   4708     message.  Add an option or commands to remove lines that match a regexp?
   4709 7   When listing matches of files, display the common path separately from the
   4710     file names, if this makes the listing shorter. (Webb)
   4711 -   Add command line completion for ":ilist" and friends, show matching
   4712     identifiers (Webb).
   4713 8   Add command line completion for "old value" of a command.  ":args <key>"
   4714     would result in the current list of arguments, which you can then edit.
   4715 7   Add command line completion with CTRL-X, just like Insert mode completion.
   4716     Useful for ":s/word/xx/".
   4717 -   Add command to go back to the text as it was before completion started.
   4718     Also to be used for <Up> in the command line.
   4719 -   Add 'wildlongest' option: Key to use to find longest common match for
   4720     command line completion (default CTRL-L), like 'wildchar'. (Cregut)
   4721     Also: when there are several matches, show them line a CTRL-D.
   4722 -   With 'wildmode' set to "longest:full,full" and pressing Tab once the first
   4723     entry in wildmenu is highlighted, that shouldn't happen. (Yuki Watanabe,
   4724     2011 Feb 12)
   4725 -   After using <Tab> for command line completion after ":ta blah" and getting
   4726     E33 (no tags file), further editing the command to e.g., ":echo 'blah'",
   4727     the command is not executed.  Fix by Ian Kelling?
   4728 -   Command line completion: Scanning for tags doesn't check for typed key now
   4729     and then?  Hangs for about 5 seconds.  Appears to be caused by finding
   4730     include files with "foo/**" in 'path'.  (Kalisiak, 2006 July 15)
   4731     Additional info: When using the |wildcards| ** globing, vim hangs
   4732     indefinitely on lots of directories. The |file-searching| globing, like in
   4733     ":set path=/**" does not hang as often as with globing with |wildcards|,
   4734     like in ":1find /**/file".  This is for files that unix "find" can find
   4735     very quickly. Merging the 2 kinds of globing might make this an easier
   4736     fix. (Ian Kelling, 2008 July 4)
   4737 -   Command line completion when 'cmdheight' is maximum and 'wildmenu' is set,
   4738     only one buffer line displayed, causes display errors.
   4739 -   Completing with 'wildmenu' and using <Up> and <Down> to move through
   4740     directory tree stops unexpectedly when using ":cd " and entering a
   4741     directory that doesn't contain other directories.
   4742 8   Command line completion: buffers "foo.txt" and "../b/foo.txt", completing
   4743     ":buf foo<Tab>" doesn't find the second one. (George V. Reilly)
   4744 8   Add more command line completion for :syntax.
   4745 8   Add more command line completion for :highlight.
   4746 -   Wildmenu not deleted: "gvim -u NONE", ":set nocp wildmenu cmdheight=3
   4747     laststatus=2", CTRL-D CTRL-H CTRL-H CTRL-H. (A.Politz, 2008 April 1) Works
   4748     OK with Vim in an xterm.
   4749 -   If the variable "g:x#y#z" exists completion after ":echo g:x#" doesn't
   4750     work.
   4751 
   4752 
   4753 Command line history:
   4754 -   Add "KeyWasTyped" flag: It's reset before each command and set when a
   4755     character from the keyboard is consumed. Value is used to decide to put a
   4756     command line in history or not. Put line in history if it didn't
   4757     completely result from one mapping.
   4758 -   When using ":browse", also put the resulting edit command in the history,
   4759     so that it can be repeated. (Demirel)
   4760 
   4761 
   4762 Insert mode:
   4763 9   When 'autoindent' is set, hitting <CR> twice, while there is text after
   4764     the cursor, doesn't delete the autoindent in the resulting blank line.
   4765     (Rich Wales) This is Vi compatible, but it looks like a bug.
   4766 8   When using CTRL-O in Insert mode, then executing an insert command
   4767     "a" or "i", should we return to Insert mode after <Esc>? (Eggink)
   4768     Perhaps it can be allowed a single time, to be able to do
   4769     "<C-O>10axyz<Esc>".  Nesting this further is confusing.
   4770     ":map <F2> 5aabc<Esc>" works only once from Insert mode.
   4771 8   When using CTRL-G CTRL-O do like CTRL-\ CTRL-O, but when returning with
   4772     the cursor in the same position and the text didn't change continue the
   4773     same change, so that "." repeats the whole insert.
   4774 7   Use CTRL-G <count> to repeat what follows.  Useful for inserting a
   4775     character multiple times or repeating CTRL-Y.
   4776 -   Make 'revins' work in Replace mode.
   4777 7   Use 'matchpairs' for 'showmatch': When inserting a character check if it
   4778     appears in the rhs of 'matchpairs'.
   4779 -   In Insert mode (and command line editing?): Allow undo of the last typed
   4780     character.	This is useful for CTRL-U, CTRL-W, delete and backspace, and
   4781     also for characters that wrap to the next line.
   4782     Also: be able to undo CTRL-R (insert register).
   4783     Possibly use 'backspace'="whole" for a mode where at least a <CR> that
   4784     inserts autoindent is undone by a single <BS>.
   4785 -   Use CTRL-G in Insert mode for an extra range of commands, like "g" in
   4786     Normal mode.
   4787 -   Make 'paste' work without resetting other options, but override their
   4788     value.  Avoids problems when changing files and modelines or autocommands
   4789     are used.
   4790 -   When typing CTRL-V and a digit higher than 2, only expect two digits.
   4791 -   Insert binary numbers with CTRL-V b.
   4792 -   Make it possible to undo <BS>, <C-W> and <C-U>.  Bash uses CTRL-Y.
   4793 
   4794 
   4795 'cindent', 'smartindent':
   4796 9   Wrapping a variable initialization should have extra indent:
   4797 	char * veryLongName =
   4798 		"very long string"
   4799     Also check if "cino=+10" is used correctly.
   4800 8   Lisp indenting: "\\" confuses the indenter. (Dorai Sitaram, 2006 May 17)
   4801 8   Why are continuation lines outside of a {} block not indented?  E.g.:
   4802 	long_type foo =
   4803 	value;
   4804 8   Java: Inside an anonymous class, after an "else" or "try" the indent is
   4805     too small. (Vincent Bergbauer)
   4806     Problem of using {} inside (), 'cindent' doesn't work then.
   4807 8   In C++ it's possible to have {} inside (): (Kirshna)
   4808 		func(
   4809 			new String[] {
   4810 			    "asdf",
   4811 			    "asdf"
   4812 			}
   4813 		    );
   4814 8   In C++ a function isn't recognized inside a namespace:
   4815     (Chow Loong Jin)
   4816 	namespace {
   4817 	    int
   4818 		 func(int arg) {
   4819 		 }
   4820 	}
   4821 6   Add 'cino' flag for this function argument layout: (Spencer Collyer)
   4822 	    func( arg1
   4823 	        , arg2
   4824 		, arg3
   4825 		);
   4826 7   Add separate "(0" option into inside/outside a function (Zellner):
   4827 	func(
   4828 	   int x)	// indent like "(4"
   4829 	{
   4830 	   if (a
   4831 	       && b)	// indent like "(0"
   4832 9   Using "{" in a comment: (Helmut Stiegler)
   4833     if (a)
   4834     {
   4835 	    if (b)
   4836 	    {
   4837 		    // {
   4838 	    }
   4839 	    } <-- this is indented incorrect
   4840     Problem is that find_start_brace() checks for the matching brace to be in
   4841     a comment, but not braces in between.  Requires adding a comment check to
   4842     findmatchlimit().
   4843 -   Make smartindenting configurable.  Add 'sioptions', e.g. '#' setting the
   4844     indent to 0 should be switched on/off.
   4845 7   Support ANSI style function header, with each argument on its own line.
   4846 -   "[p" and "]p" should use 'cindent' code if it's on (only for the first
   4847     line).
   4848 -   Add option to 'cindent' to set indent for comments outside of {}?
   4849 -   Make a command to line up a comment after a code line with a previous
   4850     comment after a code line.	Can 'cindent' do this automatically?
   4851 -   When 'cindent'ing a '}', showmatch is done before fixing the indent.  It
   4852     looks better when the indent is fixed before the showmatch. (Webb)
   4853 -   Add option to make indenting work in comments too (for commented-out
   4854     code), unless the line starts with "*".
   4855 -   Don't use 'cindent' when doing formatting with "gq"?
   4856 -   When formatting a comment after some text, insert the '*' for the new line
   4857     (indent is correct if 'cindent' is set, but '*' doesn't get inserted).
   4858 8   When 'comments' has both "s1:/*,mb:*,ex:*/" and "s1:(*,mb:*,ex:*)", the
   4859     'x' flag always uses the first match.  Need to continue looking for more
   4860     matches of "*" and remember all characters that could end the comment.
   4861 -   For smartindent: When typing 'else' line it up with matching 'if'.
   4862 -   'smartindent': allow patterns in 'cinwords', for e.g. TeX files, where
   4863     lines start with "\item".
   4864 -   Support this style of comments (with an option): (Brown)
   4865 	/* here is a comment that
   4866 	is just autoindented, and
   4867 	nothing else */
   4868 -   Add words to 'cinwords' to reduce the indent, e.g., "end" or "fi".
   4869 7   Use Tabs for the indent of starting lines, pad with spaces for
   4870     continuation lines.  Allows changing 'tabstop' without messing up the
   4871     indents.
   4872     Patch by Lech Lorens, 2010 Mar.  Update by James McCoy, 2014 Mar 15.
   4873 
   4874 
   4875 Java:
   4876 8   Can have {} constructs inside parens.  Include changes from Steve
   4877     Odendahl?
   4878 8   Recognize "import java.util.Vector" and use $CLASSPATH to find files for
   4879     "[i" commands and friends.
   4880 -   For files found with 'include': handle "*" in included name, for Java.
   4881     (Jason)
   4882 -   How to make a "package java.util" cause all classes in the package to be
   4883     searched?  Also for "import java.util.*". (Mark Brophy)
   4884 
   4885 
   4886 'comments':
   4887 8   When formatting C comments that are after code, the "*" isn't repeated
   4888     like it's done when there is no code.  And there is no automatic wrapping.
   4889     Recognize comments that come after code.  Should insert the comment leader
   4890     when it's "#" or "//".
   4891     Other way around: when a C command starts with "* 4" the "*" is repeated
   4892     while it should not.  Use syntax HL comment recognition?
   4893 7   When using "comments=fg:--", Vim inserts three spaces for a new line.
   4894     When hitting a TAB, these spaces could be removed.
   4895 7   The 'n'esting flag doesn't do the indenting of the last (rightmost) item.
   4896 6   Make strings in 'comments' option a RE, to be able to match more
   4897     complicated things. (Phillipps)  Use a special flag to indicate that a
   4898     regexp is used.
   4899 8   Make the 'comments' option with "/* * */" lines only repeat the "*" line
   4900     when there is a "/*" before it?  Or include this in 'cindent'?
   4901 
   4902 
   4903 Virtual edit:
   4904 8   Make the horizontal scrollbar work to move the text further left.
   4905 7   Allow specifying it separately for Tabs and beyond end-of-line?
   4906 
   4907 
   4908 Text objects:
   4909 8   Add text object for fold, so that it can be yanked when it's open.
   4910 8   Add test script for text object commands "aw", "iW", etc.
   4911 8   Add text object for part of a CamelHumpedWord and under_scored_word.
   4912     (Scott Graham)  "ac" and "au"?
   4913 8   Add a text object for any kind of quoting, also with multibyte
   4914     characters.  Option to specify what quotes are recognized (default: all)
   4915     use "aq" and "iq".  Use 'quotepairs' to define pairs of quotes, like
   4916     'matchpairs'?
   4917 8   Add text object for any kind of parens, also multibyte ones.
   4918 8   Add a way to make an ":omap" for a user-defined text object.  Requires
   4919     changing the starting position in oap->start.
   4920 8   Add "gp" and "gP" commands: insert text and make sure there is a single
   4921     space before it, unless at the start of the line, and after it, unless at
   4922     the end of the line or before a ".".
   4923 7   Add objects with backwards extension?  Use "I" and "A".  Thus "2dAs"
   4924     deletes the current and previous sentence. (Jens Paulus)
   4925 7   Add "g{" and "g}" to move to the first/last character of a paragraph
   4926     (instead of the line just before/after a paragraph as with "{" and "}").
   4927 6   Ignore comment leaders for objects.  Make "das" work in reply-email.
   4928 5   Make it possible to use syntax group matches as a text object.  For
   4929     example, define a "ccItem" group, then do "da<ccItem>" to delete one.
   4930     Or, maybe just define "dai", delete-an-item, to delete the syntax item the
   4931     cursor is on.
   4932 
   4933 
   4934 Select mode:
   4935 8   In blockwise mode, typed characters are inserted in front of the block,
   4936     backspace deletes a column before the block. (Steve Hall)
   4937 7   Alt-leftmouse starts block mode selection in MS Word.
   4938     See http://vim.wikia.com/wiki/Use_Alt-Mouse_to_select_blockwise.
   4939 7   Add Cmdline-select mode.  Like Select mode, but used on the command line.
   4940     - Change gui_send_mouse_event() to pass on mouse events when 'mouse'
   4941       contains 'C' or 'A'.
   4942     - Catch mouse events in ex_getln.c.  Also shift-cursor, etc., like in
   4943       normal_cmd().
   4944     - remember start and end of selection in cmdline_info.
   4945     - Typing text replaces the selection.
   4946 
   4947 
   4948 Visual mode:
   4949 8   Support using "." in Visual mode. Use the operator applied to the Visual
   4950     selection, if possible.
   4951 -   When dragging the Visual selection with the mouse and 'scrolloff' is zero,
   4952     behave like 'scrolloff' is one, so that the text scrolls when the pointer
   4953     is in the top line.
   4954 -   Displaying size of Visual area: use 24-33 column display.
   4955     When selecting multiple lines, up to about a screenful, also count the
   4956     characters.
   4957 8   When using "I" or "A" in Visual block mode, short lines do not get the new
   4958     text.  Make it possible to add the text to short lines too, with padding
   4959     where needed.
   4960 7   With a Visual block selected, "2x" deletes a block of double the width,
   4961     "3y" yanks a block of triple width, etc.
   4962 7   When selecting linewise, using "itext" should insert "text" at the start
   4963     of each selected line.
   4964 8   What is "R" supposed to do in Visual mode?
   4965 8   Make Visual mode local to the buffer.  Allow changing to another buffer.
   4966     When starting a new Visual selection, remove the Visual selection in any
   4967     other buffer. (Ron Aaron)
   4968 8   Support dragging the Visual area to drop it somewhere else. (Ron Aaron,
   4969     Ben Godfrey)
   4970 7   Support dragging the Visual area to drop it in another program, and
   4971     receive dropped text from another program. (Ben Godfrey)
   4972 7   With blockwise Visual mode and "c", "C", "I", "A", etc., allow the use of
   4973     a <CR>.  The entered lines are repeated over the Visual area.
   4974 7   Filtering a block should only apply to the block, not to the whole lines.
   4975     When the number of lines is increased, add lines. When decreased, pad with
   4976     spaces or delete? Use ":`<,`>" on the command line.
   4977 8   After filtering the Visual area, make "gv" select the filtered text?
   4978     Currently "gv" only selects a single line, not useful.
   4979 7   Don't move the cursor when scrolling?  Needed when the selection should
   4980     stay the same.  Scroll to the cursor at any movement command.  With an
   4981     option!
   4982 7   In Visual block mode, need to be able to define a corner on a position
   4983     that doesn't have text?  Also: when using the mouse, be able to select
   4984     part of a TAB.  Even more: Add a mode where the cursor can be on a screen
   4985     position where there is no text.  When typing, add spaces to fill the gap.
   4986     Other solution: Always use curswant, so that you can move the cursor to
   4987     the right column, and then use up/down movements to select the line,
   4988     without changing the column.
   4989 6   ":left" and ":right" should work in Visual block mode.
   4990 7   CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
   4991     current buffer.
   4992 6   In non-Block mode, "I" should insert the same text in front of each line,
   4993     before the first non-blank, "gI" in column 1.
   4994 6   In non-Block mode, "A" should append the same text after each line.
   4995 6   When in blockwise visual selection (CTRL-V), allow cursor to be placed
   4996     right of the line.  Could also allow cursor to be placed anywhere on a TAB
   4997     or other special character.
   4998 6   Add commands to move selected text, without deselecting.
   4999 
   5000 
   5001 More advanced repeating commands:
   5002 -   Add "." command for visual mode: redo last visual command (e.g. ":fmt").
   5003 -   Add command to repeat last movement.  Including count.
   5004 -   Add "." command after operator: repeat last command of same operator.  E.g.
   5005     "c." will repeat last change, also when "x" used since then (Webb).
   5006     "y." will repeat last yank.
   5007     "c2." will repeat the last but one change?
   5008     Also: keep history of Normal mode commands, add command to list the history
   5009     and/or pick an older command.
   5010 -   History stack for . command?  Use "g." command.
   5011 
   5012 
   5013 Mappings and Abbreviations:
   5014 8   When "0" is mapped (it is a movement command) this mapping should not be
   5015     used after typing another number, e.g. "20l". (Charles Campbell)
   5016     Is this possible without disabling the mapping of the following command?
   5017 8   Should mapping <C-A> and <C-S-A> both work?
   5018 7   ":abbr b byte", append "b " to an existing word still expands to "byte".
   5019     This is Vi compatible, but can we avoid it anyway?
   5020 8   To make a mapping work with a prepended "x to select a register, store the
   5021     last _typed_ register name and access it with "&.
   5022 8   Add ":amap", like ":amenu".
   5023 7   Add a mapping that works always, for remapping the keyboard.
   5024 8   Add ":cab!", abbreviations that only apply to Command-line mode and not to
   5025     entering search strings.
   5026 8   Add a flag to ":abbrev" to eat the character that triggers the
   5027     abbreviation.  Thus "abb ab xxx" and typing "ab<Space>" inserts "xxx" and
   5028     not the <Space>.
   5029 8   Give a warning when using CTRL-C in the lhs of a mapping.  It will never
   5030     (?) work.
   5031 7   Add <0x8f> (hex), <0o33> (octal) and <123> (decimal) to <> notation?
   5032 7   When someone tries to unmap with a trailing space, and it fails, try
   5033     unmapping without the trailing space.  Helps for ":unmap xx | unmap yy".
   5034 6   Context-sensitive abbreviations: Specify syntax group(s) in which the
   5035     abbreviations are to be used.
   5036 -   Add mappings that take arguments.  Could work like the ":s" command.  For
   5037     example, for a mouse escape sequence:
   5038 	:mapexp  <Esc>{\([0-9]*\),\([0-9]*\);	H\1j\2l
   5039 -   Add optional <Number> argument for mappings:
   5040     :map <Number>q	     ^W^W<Number>G
   5041     :map <Number>q<Number>t  ^W^W<Number1-1>G<Number2>l
   5042     :map q<Char>	    :s/<Char>/\u\0/g
   5043     Or implicit:
   5044     :map q			<Register>d<Number>$
   5045 -   Add command to repeat a whole mapping ("." only repeats the last change in
   5046     a mapping).  Also: Repeat a whole insert command, including any mappings
   5047     that it included.  Sort-of automatic recording?
   5048 -   Include an option (or flag to 'cpoptions') that makes errors in mappings
   5049     not flush the rest of the mapping (like nvi does).
   5050 -   Use context sensitiveness of completion to switch abbreviations and
   5051     mappings off for :unab and :unmap.
   5052 6   When using mappings in Insert mode, insert characters for incomplete
   5053     mappings first, then remove them again when a mapping matches.  Avoids
   5054     that characters that are the start of some mapping are not shown until you
   5055     hit another character.
   5056 -   Add mappings for replace mode: ":rmap".  How do we then enter mappings for
   5057     non-replace Insert mode?
   5058 -   Add separate mappings for Visual-character/block/line mode?
   5059 -   Add 'mapstop' command, to stop recursive mappings.
   5060 -   List mappings that have a raw escape sequence both with the name of the key
   5061     for that escape sequence (if there is one) and the sequence itself.
   5062 -   List mappings: Once with special keys listed as <>, once with meta chars as
   5063     <M-a>, once with the byte values (octal?).  Sort of "spell mapping" command?
   5064 -   When entering mappings: Add the possibility to enter meta keys like they
   5065     are displayed, within <>: <M-a>, <~@> or <|a>.
   5066 -   Allow multiple arguments to :unmap.
   5067 -   Command to show keys that are not used and available for mapping
   5068     ":freekeys".
   5069 -   Allow any character except white space in abbreviations lhs (Riehm).
   5070 
   5071 
   5072 Incsearch:
   5073 -   Wrong scrolling when using incsearch.  Patch by Christian Brabandt, 2014
   5074     Dec 4.  Is this a good solution?
   5075 -   Temporarily open folds to show where the search ends up.  Restore the
   5076     folds when going to another line.
   5077     Patch to open folds for 'incsearch'. (Christian Brabandt, 2015 Jan 6)
   5078 -   Bug with 'incsearch' going to wrong line. (Wolfram Kresse, 2009 Aug 17)
   5079     Only with "vim -u NONE".
   5080 -   When no match is found and the user types more, the screen is redrawn
   5081     anyway.  Could skip that.  Esp. if the line wraps and the text is scrolled
   5082     up every time.
   5083 -   When incsearch used and hitting return, no need to search again in many
   5084     cases, saves a lot of time in big files. (Slootman wants to work on this?)
   5085     When not using special characters, can continue search from the last match
   5086     (or not at all, when there was no match).  See oldmail/webb/in.872.
   5087 9   incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
   5088     isn't updated).
   5089 
   5090 
   5091 Searching:
   5092 9   Should have an option for :vimgrep to find lines without a match.
   5093 8   Add "g/" and "gb" to search for a pattern in the Visually selected text?
   5094     "g?" is already used for rot13.
   5095     The vis.vim script has a ":S" command that does something like this.
   5096     Can use "g/" in Normal mode, uses the '< to '> area.
   5097     Use "&/" for searching the text in the Visual area?
   5098 9   Add "v" offset: "/pat/v": search for pattern and start Visual mode on the
   5099     matching text.
   5100 8   Add a modifier to interpret a space like "\_s\+" to make it much easier to
   5101     search for a phrase.
   5102 8   Add a mechanism for recursiveness: "\@(([^()]*\@g[^()]*)\)".  \@g stands
   5103     for "go recursive here" and \@( \) marks the recursive part.
   5104     Perl does it this way:
   5105 	    $paren = qr/ \(( [^()] | (??{ $paren }) )* \) /x;
   5106     Here $paren is evaluated when it's encountered.  This is like a regexp
   5107     inside a regexp.  In the above terms it would be:
   5108 	    \@((\([^()]\|\@g\)*)\)
   5109 8   Show the progress every second.  Could use the code that checks for CTRL-C
   5110     to find out how much time has passed.  Or use SIGALRM.  Where to show the
   5111     number?
   5112 7   Support for approximate-regexps to find similar words (agrep
   5113     http://www.tgries.de/agrep/ tre: (dead link) laurikari.net/tre/index.html).
   5114 8   Add an item for a big character range, so that one can search for a
   5115     chinese character: \z[234-1234]  or \z[XX-YY] or \z[0x23-0x234].
   5116 7   Add an item stack to allow matching ().  One side is "push X on
   5117     the stack if previous atom matched".  Other side is "match with top of
   5118     stack, pop it when it matches".  Use "\@pX" and "\@m"?
   5119 	Example: \((\@p).\{-}\@m\)*
   5120 7   Add a flag to "/pat/" to discard an error.  Useful to continue a mapping
   5121     when a search fails.  Could be "/pat/E" (e is already used for end offset).
   5122 7   Add pattern item to use properties of Unicode characters.  In Perl it's
   5123     "\p{L}" for a letter.  See Regular Expression Pocket Reference.
   5124 8   Would it be possible to allow ":23,45/pat/flags" to search for "pat" in
   5125     lines 23 to 45?  Or does this conflict with Ex range syntax?
   5126 8   Allow identical pairs in 'matchpairs'.  Restrict the search to the current
   5127     line.
   5128 7   Allow longer pairs in 'matchpairs'.  Use matchit.vim as an
   5129     example.
   5130 8   Make it possible to define the character that "%" checks for in
   5131     #if/#endif.  For nmake it's !if/!endif.
   5132 -   For "%" command: set hierarchy for which things include other things that
   5133     should be ignored (like "*/" or "#endif" inside /* */).
   5134     Also: use "%" to jump from start to end of syntax region and back.
   5135     Alternative: use matchit.vim
   5136 8   A pattern like "\([^a]\+\)\+" takes an awful long time.  Recognize that
   5137     the recursive "\+" is meaningless and optimize for it.
   5138     This one is also very slow on "/* some comment */": "^\/\*\(.*[^/]\)*$".
   5139 7   Recognize "[a-z]", "[0-9]", etc. and replace them with the faster "\l" and
   5140     "\d".
   5141 7   Add a way to specify characters in <C-M> or <Key> form.  Could be
   5142     \%<C-M>.
   5143 8   Add an argument after ":s/pat/str/" for a range of matches.  For example,
   5144     ":s/pat/str/#3-4" to replace only the third and fourth "pat" in a line.
   5145 8   When 'iskeyword' is changed the matches from 'hlsearch' may change. (Benji
   5146     Fisher)  redraw if some options are set while 'hlsearch' is set?
   5147 8   Add an option not to use 'hlsearch' highlighting for ":s" and ":g"
   5148     commands. (Kahn)  It would work like ":noh" is used after that command.
   5149     Also: An extra flag to do this once, and a flag to keep the existing
   5150     search pattern.
   5151 -   Make 'hlsearch' a local/global option, so that it can be disabled in some
   5152     of the windows.
   5153 -   Add \%h{group-name}; to search for a specific highlight group.
   5154     Add \%s{syntax-group}; to search for a specific syntax group.
   5155 -   Support Perl regexp.  Use PCRE (Perl Compatible RE) package. (Shade)
   5156     Or translate the pattern to a Vim one.
   5157     Don't switch on with an option for typed commands/mappings/functions, it's
   5158     too confusing.  Use "\@@" in the pattern, to avoid incompatibilities.
   5159 8   Add a way to access the last substitute text, what is used for ":s//~/".
   5160     Can't use the ~ register, it's already used for drag & drop.
   5161 -   Remember flags for backreferenced items, so that "*" can be used after it.
   5162     Check with "\(\S\)\1\{3}". (Hemmerling)
   5163 8   Flags that apply to the whole pattern.
   5164     This works for all places where a regexp is used.
   5165     Add "\q" to not store this pattern as the last search pattern?
   5166 -   Add flags to search command (also for ":s"?):
   5167     i	ignore case
   5168     I	use case
   5169     p	use Perl regexp syntax (or POSIX?)
   5170     v	use Vi regexp syntax
   5171     f	forget pattern, don't keep it for "n" command
   5172     F   remember pattern, keep it for "n" command
   5173     Perl uses these too:
   5174     e	evaluate the right side as an expression (Perl only)
   5175     m	multiple line expression (we don't need it)
   5176     o	compile only once (Perl only)
   5177     s	single line expression (we don't need it)
   5178     x	extended regexp (we don't need it)
   5179     When used after ":g" command, backslash needed to avoid confusion with the
   5180     following command.
   5181     Add 'searchflags' for default flags (replaces 'gdefault').
   5182 -   Add command to display the last used substitute pattern and last used
   5183     pattern. (Margo)  Maybe make it accessible through a register (like "/
   5184     for search string)?
   5185 7   Use T-search algorithm, to speed up searching for strings without special
   5186     characters.  See C't article, August 1997.
   5187 -   Add 'fuzzycase' option, so that case doesn't matter, and '-' and '_' are
   5188     equivalent (for Unix filenames).
   5189 -   Add 'v' flag to search command: enter Visual mode, with the matching text
   5190     as Visual area. (variation on idea from Bertin)
   5191 -   Searching: "/this//that/" should find "that" after "this".
   5192 -   Add global search commands: Instead of wrapping at the end of the buffer,
   5193     they continue in another buffer.  Use flag after search pattern:
   5194     a	for the next file in the argument list
   5195     f	for file in the buffer list
   5196     w	for file edited in a window.
   5197     e.g. "/pat/f".  Then "n" and "N" work through files too.  "f" flag also for
   5198     ":s/pat/foo/f"???  Then when 'autowrite' and 'hidden' are both not set, ask
   5199     before saving files: "Save modified buffer "/path/file"? (Yes/Hide/No
   5200     Save-all/hide-All/Quit) ".
   5201 -   ":s/pat/foo/3": find 3rd match of "pat", like sed. (Thomas Koehler)
   5202 7   When searching with 'n' give message when getting back where the search
   5203     first started.  Remember start of search in '/ mark.
   5204 7   Add option that scrolls screen to put cursor in middle of screen after
   5205     search always/when off-screen/never.  And after a ":tag" command.  Maybe
   5206     specify how many lines below the screen causes a redraw with the cursor in
   5207     the middle (default would be half a screen, zero means always).
   5208 6   Support multiple search buffers, so macros can be made without side
   5209     effects.
   5210 7   From xvim: Allow a newline in search patterns (also for :s, can delete
   5211     newline).  Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
   5212     [not in xvim:] Add option to switch on matches crossing ONE line boundary.
   5213 7   Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron) (Zellner)
   5214     Also ":dselect".
   5215 -   Searching for \%'> does not find anything when using line Visual
   5216     selection.  Probably because it's using MAXCOL.  #8238
   5217 -   Regexp to search for duplicate lines does not work correctly:
   5218     /\(^.*\n\)\1  (Chris Morgan, #6239)
   5219 -   Problem with upwards search on Windows (works OK on Linux). (Brett
   5220     Stahlman, 2014 Jun 8)
   5221 -   Searching mixed with Visual mode doesn't redraw properly. (James Vega,
   5222     2010 Nov 22)
   5223 -   Searching for composing char works, but not when inside []. (ZyX, Benjamin
   5224     R. Haskell, 2010 Aug 24)
   5225 -   When 'smartcase' is set and using CTRL-L to add to the search pattern it
   5226     may result in no matches.  Convert chars to lower case? (Erik Wognsen,
   5227     2009 Apr 16)
   5228 
   5229 
   5230 Undo:
   5231 9   ":gundo" command: global undo.  Undoes changes spread over multiple files
   5232     in the order they were made.  Also ":gredo".  Both with a count.  Useful
   5233     when tests fail after making changes and you forgot in which files.
   5234 9   After undo/redo, in the message show whether the buffer is modified or
   5235     not.
   5236 8   Search for pattern in undo tree, showing when it happened and the text
   5237     state, so that you can jump to it.
   5238 8   Undo tree: visually show the tree somehow (Damian Conway)
   5239     Show only the leaves, indicating how many changed from the branch and the
   5240     timestamp?
   5241     Put branch with most recent change on the left, older changes get more
   5242     indent?
   5243 -   Make it possible to undo all the commands from a mapping, including a
   5244     trailing unfinished command, e.g. for ":map K iX^[r".
   5245 -   When accidentally hitting "R" instead of Ctrl-R, further Ctrl-R is not
   5246     possible, even when typing <Esc> immediately. (Grahn)  Also for "i", "a",
   5247     etc.  Postpone saving for undo until something is really inserted?
   5248 8   When Inserting a lot of text, it can only be undone as a whole.  Make undo
   5249     sync points at every line or word.  Could recognize the start of a new
   5250     word (white space and then non-white space) and backspacing.
   5251     Can already use CTRL-G u, but that requires remapping a lot of things.
   5252 8   Make undo more memory-efficient: Compare text before and after change,
   5253     only remember the lines that really changed.
   5254 7   Add undo for a range of lines.  Can change these back to a previous
   5255     version without changing the rest of the file.  Stop doing this when a
   5256     change includes only some of these lines and changes the line count.  Need
   5257     to store these undo actions as a separate change that can be undone.
   5258 -   For u_save() include the column number. This can be used to set '[ and '].
   5259     And in the future the undo can be made more efficient (Webb).
   5260 -   In out-of-memory situations: Free allocated space in undo, and reduce the
   5261     number of undo levels (with confirmation).
   5262 -   Instead of [+], give the number of changes since the last write: [+123].
   5263     When undoing to before the last write, change this to a negative number:
   5264     [-99].
   5265 -   With undo with simple line delete/insert: optimize screen updating.
   5266 -   When executing macro's: Save each line for undo only once.
   5267 -   When doing a global substitute, causing almost all lines to be changed,
   5268     undo info becomes very big.  Put undo info in swap file??
   5269 -   MS-Windows: when writing undo file the infostreams are copied in
   5270     mch_copy_file_attribute(), that seems unnecessary. (#7925) Add a flag to
   5271     only copy attributes?
   5272 -   undo result wrong: Masato Nishihata, #4798
   5273 -   After recovering from a swap file the undofile should not be used, it
   5274     causes corruption.  (#6631)
   5275 -   When the computer crashes while writing the undofile, the contents may be
   5276     lost.  Write to a temp file, fsync and rename. (#8879)
   5277 -   Undo puts cursor in wrong line after "cG<Esc>" undo.
   5278 -   Undo history wrong when ":next file" re-uses a buffer. (#5426) ex_next()
   5279     should pass flag to do_argfile(), then to do_ecmd().  Is there a test for
   5280     this?
   5281 -   Undo problem: "g-" doesn't go back, gets stuck. (Bjรถrn Linse, 2016 Jul 18)
   5282 -   Undo message is not always properly displayed.  Patch by Ken Takata, 2013
   5283     oct 3.  Doesn't work properly according to Yukihiro Nakadaira.
   5284     Also see #1635.
   5285 -   When using ":diffput" through a mapping, undo in the target buffer isn't
   5286     synced.  (Ryan Carney, 2016 Sep 14)
   5287 -   The undo file name can get too long. (Issue #346)
   5288     For the path use a hash instead of dir%dir%dir%name  hash%name.
   5289     Check both for some time for backwards compatibility.
   5290     Alternatively: create the directory structure under 'undodir'.
   5291 -   Patch to add ":undorecover", get as much text out of the undo file as
   5292     possible. (Christian Brabandt, 2014 Mar 12, update Aug 22)
   5293 -   Patch to support :undo absolute jump to file save number. (Christian
   5294     Brabandt, 2010 Nov 5)
   5295 -   There should be a way after an abbreviation has expanded to go back to
   5296     what was typed.  CTRL-G h ?  Would also undo last word or line break
   5297     inserted perhaps.  And undo CTRL-W.  CTRL-G l would redo.
   5298 -   When using 'cryptmethod' xchaha20 the undo file is not encrypted.
   5299     Need to handle extra bytes.
   5300 
   5301 
   5302 Buffer list:
   5303 7   Command to execute a command in another buffer: ":inbuf {bufname} {cmd}".
   5304     Also for other windows: ":inwin {winnr} {cmd}".  How to make sure that
   5305     this works properly for all commands, and still be able to return to the
   5306     current buffer/window?  E.g.: ":inbuf xxx only".
   5307 8   Add File.{recent-files} menu entries: Recently edited files.
   5308     Ron Aaron has a plugin for this: mru.vim.
   5309 8   Unix: Check all uses of fnamecmp() and fnamencmp() if they should check
   5310     inode too.
   5311 7   Add another number for a buffer, which is visible for the user.  When
   5312     creating a new buffer, use the lowest number not in use (or the highest
   5313     number in use plus one?).
   5314 7   Offer some buffer selection from the command line?  Like using ":ls" and
   5315     asking for a buffer number. (Zachmann)
   5316 -   When starting to edit a file that is already in the buffer list, use the
   5317     file name argument for the new short file name. (Webb)
   5318 -   Add an option to make ":bnext" and ":bprev" wrap around the end of the
   5319     buffer list.  Also for ":next" and ":prev"?
   5320 7   Add argument to ":ls" which is a pattern for buffers to list.
   5321     E.g. ":ls *.c". (Thompson)
   5322 7   Add expansion of buffer names, so that "*.c" is expanded to all buffer
   5323     names.  Needed for ":bdel *.c", ":bunload *.c", etc.
   5324 8   Support for <afile> where a buffer name is expected.
   5325 7   Add an option to mostly use slashes in file names.  Separately for
   5326     internal use and for when executing an external program?
   5327 8   Some file systems are case-sensitive, some are not.  Besides
   5328     'wildignorecase' there might be more parts inside
   5329     CASE_INSENSITIVE_FILENAME that are useful on Unix.
   5330 -   When using ":bwipe!" also get rid of references to be buffer, e.g. in the
   5331     jumplist and alternate file.
   5332 -   ":bnext" in a help buffer is supposed to go to the next help buffer, but
   5333     it goes to any buffer, and then :bnext skips help buffers, since they are
   5334     unlisted. (#4478)
   5335 -   :buffer completion does not escape "+" properly and results in a regexp
   5336     error.  (#5467)
   5337 -   Problem with two buffers with the same name a/b, if it didn't exist before
   5338     and is created outside of Vim. (dskloetg, 2018 Jul 16, #3219)
   5339 -   Add an option with file patterns, to be used when unloading a buffer: If
   5340     there is a match, remove entries for the buffer from marks, jumplist, etc.
   5341     To be used for git temp files.
   5342 
   5343 
   5344 Swap (.swp) files:
   5345 8   If writing to the swap file fails, should try to open one in another
   5346     directory from 'dir'.  Useful in case the file system is full and when
   5347     there are short file name problems.
   5348 8   Also use the code to try using a short file name for the backup and swap
   5349     file for the Win32 and Dos 32 bit versions.
   5350 8   When a file is edited by root, add $LOGNAME to know who did su.
   5351 8   When the edited file is a symlink, try to put the swap file in the same
   5352     dir as the actual file.  Adjust FullName().  Avoids editing the same file
   5353     twice (e.g. when using quickfix).  Also try to make the name of the backup
   5354     file the same as the actual file?
   5355     Use the code for resolve()?
   5356 7   When using 64 bit inode numbers, also store the top 32 bits.  Add another
   5357     field for this, using part of bo_fname[], to keep it compatible.
   5358 7   When editing a file on removable media, should put swap file somewhere
   5359     else.  Use something like 'r' flag in 'viminfo'.  'diravoid'?
   5360     Also: Be able to specify minimum disk space, skip directory when not
   5361     enough room.
   5362 7   Add a configure check for which directory should be used: /tmp, /var/tmp
   5363     or /var/preserve.
   5364 -   Add an option to create a swap file only when making the first change to
   5365     the buffer.  (Liang)  Or only when the buffer is not read-only.
   5366 -   Add option to set "umask" for backup files and swap files (Antwerpen).
   5367     'backupumask' and 'swapumask'?  Or 'umaskbackup' and 'umaskswap'?
   5368 -   When editing a readonly file, don't use a swap file but read parts from the
   5369     original file.  Also do this when the file is huge (>'maxmem').  We do
   5370     need to load the file once to count the number of lines?  Perhaps keep a
   5371     cached list of which line is where.
   5372 -   When editing a file with ":edit" the output of :swapname is relative,
   5373     while editing it with "vim file" it is absolute. (#355) Which one should
   5374     it be?
   5375 -   When recovering a file, put the swap file name in b:recovered_swapfile.
   5376     Then a command can delete it.
   5377 -   In the ATTENTION message about an existing swap file, mention the name of
   5378     the process that is running.  It might actually be some other program,
   5379     e.g. after a reboot.
   5380 -   When running Vim in silent ex mode, an existing swapfile causes Vim to
   5381     wait for a user action without a prompt. (Maarten Billemont, 2012 Feb 3)
   5382     Do give the prompt? Quit with an error?
   5383 -   After doing "su" $HOME can be the old user's home, thus ~root/file is not
   5384     correct.  Don't use it in the swap file.
   5385 -   In the swapfile dialog, add a H(elp) option that gives more info about
   5386     what each choice does.  Similar to  ":help swap-exists-choices"
   5387 
   5388 
   5389 Viminfo:
   5390 7   Can probably remove the code that checks for a writable viminfo file,
   5391     because we now do the chown() for root, and others can't overwrite someone
   5392     else's viminfo file.
   5393 8   When there is no .viminfo file and someone does "su", runs Vim, a
   5394     root-owned .viminfo file is created.  Is there a good way to avoid this?
   5395     Perhaps check the owner of the directory.  Only when root?
   5396 8   Add argument to keep the list of buffers when Vim is started with a file
   5397     name. (Schild)
   5398 8   Keep the last used directory of the file browser (File/Open menu).
   5399 8   Remember the last used register for "@@".
   5400 8   Remember the redo buffer, so that "." works after restarting.
   5401 8   Remember a list of last accessed files.  To be used in the
   5402     "File.Open Recent" menu.  Default is to remember 10 files or so.
   5403     Also remember which files have been read and written.  How to display
   5404     this?
   5405 7   Also store the ". register (last inserted text).
   5406 7   Make it possible to store buffer names in viminfo file relative to some
   5407     directory, to make them portable over a network. (Aaron)
   5408 6   Store a snapshot of the currently opened windows.  So that when quitting
   5409     Vim, and then starting again (without a file name argument), you see the
   5410     same files in the windows.  Use ":mksession" code?
   5411 -   Make marks present in .viminfo usable as file marks: Display a list of
   5412     "last visited files" and select one to jump to.
   5413 -   Add the debug command line history to viminfo.
   5414 -   Using "wviminfo /tmp/viminfo" does not store file marks that Vim knows
   5415     about, it only works when merging with an existing file.  (Shougo, 2017
   5416     Jun 19, #1781)
   5417 -   Writing nested List and Dict in viminfo gives error message and can't be
   5418     read back. (Yukihiro Nakadaira, 2010 Nov 13)
   5419 -   When a register contains illegal bytes, writing viminfo in utf-8 and
   5420     reading it back doesn't result in utf-8. (Devin Bayer)
   5421 8   With 'viminfo' set such that the ".viminfo" file is written on a FAT
   5422     filesystem, an illegal file name may be created: ".vim".
   5423 8   For each buffer that is opened, the viminfo file is opened and read to
   5424     check for file marks.  This can be slow.
   5425 8   When write_viminfo() is used while there are many orphaned viminfo
   5426     tempfiles writing the viminfo file fails.  Give a clear error message so
   5427     that the user knows the files have to be deleted.
   5428 
   5429 
   5430 Modelines:
   5431 8   Before trying to execute a modeline, check that it looks like one (valid
   5432     option names).  If it's very wrong, silently ignore it.
   5433     Ignore a line that starts with "Subject: ".
   5434 -   Add an option to whitelist options that are allowed in a modeline.  This
   5435     would allow careful users to use modelines, e.g., only allowing
   5436     'shiftwidth'.
   5437 -   Add an option to let modelines only set local options, not global ones
   5438     such as 'encoding'.
   5439 -   When an option value is coming from a modeline, do not carry it over to
   5440     another edited file?  Would need to remember the value from before the
   5441     modeline setting.
   5442 -   Allow setting a variable from a modeline?  Only allow using fixed strings,
   5443     no function calls, to avoid a security problem.
   5444 -   Allow ":doauto BufRead x.cpp" in modelines, to execute autocommands for
   5445     .cpp files.
   5446 -   Support the "abbreviate" command in modelines (Kearns).  Careful for
   5447     characters after <Esc>, that is a security leak.
   5448 -   Add an option setting to ask the user if the modelines are to be executed
   5449     or not.  Same for .exrc in local dir.
   5450 
   5451 
   5452 Sessions:
   5453 -   Session file contains absolute paths when "curdir" is removed form
   5454     'sessionoptions', making it impossible to have a session with a relative
   5455     path.  (#4450)
   5456 -   Session file only contains local option values for buffers that are in a
   5457     window, not other buffers. (#7532)
   5458 -   Script generated by :mksession does not work well if there are windows
   5459     with modified buffers:
   5460       change "silent only" into "silent only!"
   5461       change "edit fname" of first buffer to "hide edit fname"
   5462       skip "badd fname" if "fname" is already in the buffer list
   5463       remove remark about unloading buffers from documentation
   5464 -   When session file has name in argument list but the buffer was deleted,
   5465     the buffer is not deleted when using the session file. (#1393) Should add
   5466     the buffer in hidden state.
   5467 -   When a session file is created and there are "nofile" buffers, these are
   5468     not filled.  Need to trigger BufReadCmd autocommands.  Also handle
   5469     deleting the initial empty buffer better. (ZyX, 2015 March 8)
   5470 -   Setting the spell file in a session only reads the local additions, not
   5471     the normal spell file. (Enno Nagel, 2014 Mar 29)
   5472 -   Directory wrong in session file, caused by ":lcd" in BufEnter autocommand.
   5473     (Felix Kater, 2009 Mar 3)
   5474 -   Something wrong with session that has "cd" commands and "badd", in such a
   5475     way that Vim doesn't find the edited file in the buffer list, causing the
   5476     ATTENTION message?  (Tony Mechelynck, 2008 Dec 1) Also: swap files are in
   5477     ~/tmp/  One has relative file name ".mozilla/...".
   5478 -   Session file creation: 'autochdir' causes trouble.  Keep it off until
   5479     after loading all files.
   5480 -   Session file generates error upon loading, cause by --remote-silent-tab.
   5481     (7tommm (ytommm) 2010 Nov 24)
   5482 8   DOS/Windows: ":mksession" generates a "cd" command where "aa\#bb" means
   5483     directory "#bb" in "aa", but it's used as "aa#bb". (Ronald Hoellwarth)
   5484 7   When there is a "help.txt" window in a session file, restoring that
   5485     session will not get the "LOCAL ADDITIONS" back.
   5486 8   With ":mksession" always store the 'sessionoptions' option, even when
   5487     "options" isn't in it. (St-Amant)
   5488 8   When using ":mksession", also store a command to reset all options to
   5489     their default value, before setting the options that are not at their
   5490     default value.
   5491 7   With ":mksession" also store the tag stack and jump history. (Michal
   5492     Malecki)
   5493 
   5494 
   5495 Options:
   5496 7   ":with option=value | command": temporarily set an option value and
   5497     restore it after the command has executed.
   5498 8   Make "old" number options that really give a number of effects into string
   5499     options that are a comma-separated list.  The old number values should
   5500     also be supported.
   5501 8   Add commands to save and restore an option, which also preserves the flag
   5502     that marks if the option was set.  Useful to keep the effect of setting
   5503     'compatible' after ":syntax on" has been used.
   5504 7   There is 'titleold', why is there no 'iconold'? (Chazelas)
   5505 
   5506 
   5507 External commands:
   5508 8   When filtering text, redirect stderr so that it can't mess up the screen
   5509     and Vim doesn't need to redraw it.  Also for ":r !cmd".
   5510 4   Set separate shell for ":sh", piping "range!filter", reading text "r !ls"
   5511     and writing text "w !wc". (Deutsche)  Allow arguments for fast start (e.g.
   5512     -f).
   5513 4   Allow direct execution, without using a shell.
   5514 4   Run an external command in the background.  But how about I/O in the GUI?
   5515     Careful: don't turn Vim into a shell!
   5516 4   Add feature to disable using a shell or external commands.
   5517 
   5518 
   5519 Multiple Windows:
   5520 7   "vim -oO file ..." use both horizontal and vertical splits.
   5521 8   Add CTRL-W T: go to the top window in the column of the current window.
   5522     And CTRL-W B: go to bottom window.
   5523 7   Use CTRL-W <Tab>, like alt-tab, to switch between buffers.  Repeat <Tab>
   5524     to select another buffer (only loaded ones?), <BS> to go back, <Enter> to
   5525     select buffer, <Esc> to go back to original buffer.
   5526 7   Make it possible to edit a new buffer in the preview window.  A script can
   5527     then fill it with something.  ":popen"?
   5528 7   Add a 'tool' window: behaves like a preview window but there can be
   5529     several.  Don't count it in only_one_window(). (Alexei Alexandrov)
   5530 6   Add an option to resize the shell when splitting and/or closing a window.
   5531     ":vsp" would make the shell wider by as many columns as needed for the new
   5532     window.  Specify a maximum size (or use the screen size).  ":close" would
   5533     shrink the shell by as many columns as come available. (Demirel)
   5534 7   When starting Vim several times, instantiate a Vim server, that allows
   5535     communication between the different Vims.  Feels like one Vim running with
   5536     multiple top-level windows.  Esp. useful when Vim is started from an IDE
   5537     too.  Requires some form of inter process communication.
   5538 -   Support a connection to an external viewer.  Could call the viewer
   5539     automatically after some seconds of non-activity, or with a command.
   5540     Allow some way of reporting scrolling and cursor positioning in the viewer
   5541     to Vim, so that the link between the viewed and edited text can be made.
   5542 
   5543 
   5544 Marks:
   5545 8   Add ten marks for last changed files: ':0, ':1, etc.  One mark per file.
   5546 8   When cursor is first moved because of scrolling, set a mark at this
   5547     position.  (Rimon Barr)  Use '-.
   5548 8   Add a command to jump to a mark and make the motion inclusive.  g'm and g`m?
   5549 8   The '" mark is set to the first line, even when doing ":next" a few times.
   5550     Only set the '" mark when the cursor was really moved in a file.
   5551 8   Make `` and '', which would position the new cursor position in the middle
   5552     of the window, restore the old topline (or relative position) from when
   5553     the mark was set.
   5554 7   Make a list of file marks in a separate window.  For listing all buffers,
   5555     matching tags, errors, etc.  Normal commands to move around.  Add commands
   5556     to jump to the mark (in current window or new window).  Start it with
   5557     ":browse marks"?
   5558 6   Add a menu that lists the Marks like ":marks". (Amerige)
   5559 7   For ":jumps", ":tags" and ":marks", for not loaded buffers, remember the
   5560     text at the mark.  Highlight the column with the mark.
   5561 7   Highlight each mark in some way (With "Mark" highlight group).
   5562     Or display marks in a separate column, like 'number' does.
   5563 7   Use d"m to delete rectangular area from cursor to mark m (like Vile's \m
   5564     command).
   5565 7   Try to keep marks in the same position when:
   5566     - replacing with a line break, like in ":s/pat/^M/", move marks after the
   5567       line break column to the next line. (Acevedo)
   5568     - inserting/deleting characters in a line.
   5569 5   Include marks for start/end of the current word and section.  Useful in
   5570     mappings.
   5571 6   Add "unnamed mark" feature: Like marks for the ":g" command, but place and
   5572     unplace them with commands before doing something with the lines.
   5573     Highlight the marked lines somehow.
   5574 
   5575 
   5576 Digraphs:
   5577 7   Make "ga" show the keymap for a character, if it exists.
   5578     Also show the code of the character after conversion to 'fileencoding'.
   5579 -   Use digraph table to tell Vim about the collating sequence of special
   5580     characters?
   5581 8   Add command to remove one or more (all) digraphs. (Brown)
   5582 7   Support different sets of digraphs (depending on the character set?).  At
   5583     least Latin1/Unicode, Latin-2, MS-DOS (esp. for Win32).
   5584 
   5585 
   5586 Writing files:
   5587 -   In vim_rename(), should lock "from" file when deleting "to" file for
   5588     systems other than Amiga.  Avoids problems with unexpected longname to
   5589     shortname conversion.
   5590 8   write mch_isdevice() for Amiga, Mac, VMS, etc.
   5591 8   When appending to a file, Vim should also make a backup and a 'patchmode'
   5592     file.
   5593 8   'backupskip' doesn't write a backup file at all, a bit dangerous for some
   5594     applications.  Add 'backupelsewhere' to write a backup file in another
   5595     directory?  Or add a flag to 'backupdir'?
   5596 6   Add an option to write a new, numbered, backup file each time.  Like
   5597     'patchmode', e.g., 'backupmode'.
   5598 6   Make it possible to write 'patchmode' files to a different directory.
   5599     E.g., ":set patchmode=~/backups/*.orig". (Thomas)
   5600 6   Add an option to prepend something to the backup file name.  E.g., "#".
   5601     Or maybe allow a function to modify the backup file name?
   5602 8   Only make a backup when overwriting a file for the first time.  Avoids
   5603     losing the original when writing twice. (Slootman)
   5604 7   On non-Unix machines, also overwrite the original file in some situations
   5605     (file system full, it's a link on an NFS partition).
   5606 7   When editing a file, check that it has been changed outside of Vim more
   5607     often, not only when writing over it.  E.g., at the time the swap file is
   5608     flushed.  Or every ten seconds or so (use the time of day, check it before
   5609     waiting for a character to be typed).
   5610 8   When a file was changed since editing started, show this in the status
   5611     line of the window, like "[time]".
   5612     Make it easier to reload all outdated files that don't have changes.
   5613     Automatic and/or with a command.
   5614 
   5615 
   5616 Substitute:
   5617 8   Substitute with hex/unicode number "\%xff" and "\%uabcd".  Just like
   5618     "\%uabcd" in search pattern.
   5619 8   Make it easier to replace in all files in the argument list.  E.g.:
   5620     ":argsub/oldword/newword/".  Works like ":argdo %s/oldword/newword/g|w".
   5621 -   :s///p prints the line after a substitution.
   5622 -   With :s///c replace \&, ~, etc. when showing the replacement pattern.
   5623 8   With :s///c allow scrolling horizontally when 'nowrap' is effective.
   5624     Also allow a count before the scrolling keys.
   5625 -   Add number option to ":s//2": replace second occurrence of string?  Or:
   5626     :s///N substitutes N times.
   5627 -   Add answers to ":substitute" with 'c' flag, used in a ":global", e.g.:
   5628     ":g/pat1/s/pat2/pat3/cg": 'A' do all remaining replacements, 'Q' don't do
   5629     any replacements, 'u' undo last substitution.
   5630 7   Substitute in a block of text.  Use {line}.{column} notation in an Ex
   5631     range, e.g.: ":1.3,$.5s" means to substitute from line 1 column 3 to the
   5632     last line column 5.
   5633 5   Add commands to bookmark lines, display bookmarks, remove bookmarks,
   5634     operate on lines with bookmarks, etc.  Like ":global" but with the
   5635     possibility to keep the bookmarks and use them with several commands.
   5636     (Stanislav Sitar)
   5637 
   5638 
   5639 Mouse support:
   5640 8   Add 'o' flag to 'mouse'?
   5641 7   Be able to set a 'mouseshape' for the popup menu.
   5642 8   Add 'mouse' flag, which sets a behavior like Visual mode, but automatic
   5643     yanking at the button-up event.  Or like Select mode, but typing gets you
   5644     out of Select mode, instead of replacing the text. (Bhaskar)
   5645 -   Implement mouse support for the Amiga console.
   5646 -   Using right mouse button to extend a blockwise selection should attach to
   5647     the nearest corner of the rectangle (four possible corners).
   5648 -   Precede mouse click by a number to simulate double clicks?!?
   5649 -   When mouse click after 'r' command, get character that was pointed to.
   5650 
   5651 
   5652 Argument list:
   5653 6   Add command to put all filenames from the tag files in the argument list.
   5654     When given an argument, only use the files where that argument matches
   5655     (like `grep -l ident`) and jump to the first match.
   5656 6   Add command to form an args list from all the buffers?
   5657 
   5658 
   5659 Registers:
   5660 8   Add put command that overwrites existing text.  Should also work for
   5661     blocks.  Useful to move text around in a table.  Works like using "R ^R r"
   5662     for every line.
   5663 -   When appending to a register, also report the total resulting number of
   5664     lines.  Or just say "99 more lines yanked", add the "more".
   5665 -   When inserting a register in Insert mode with CTRL-R, don't insert comment
   5666     leader when line wraps?
   5667 -   The ":@r" commands should take a range and execute the register for each
   5668     line in the range.
   5669 -   Add "P" command to insert contents of unnamed register, move selected text
   5670 	to position of previous deleted (to swap foo and bar in " + foo")
   5671 8   Should be able to yank and delete into the "/ register.
   5672     How to take care of the flags (offset, magic)?
   5673 -   In Select mode the deleted text always goes into the unnamed register.
   5674     Use CTRL-R to specify the register to use. (#9531)
   5675 -   When "+ register is set then "" points to it.  If another Vim grabs the "+
   5676     register, then "" doesn't contain anything.  Make it still follow "+.
   5677     (#6435)
   5678 -   Pasting a register in Visual mode cannot be repeated. (Mahmoud Al-Qudsi,
   5679     2018 Apr 26, #2849)
   5680 -   Patch to add option that tells whether small deletes go into the numbered
   5681     registers. (Aryeh Leib Taurog, 2013 Nov 18)
   5682 -   With "unamedplus" in 'clipboard' pasting in Visual mode causes error for
   5683     empty register. (Michael Seiwald, 2011 Jun 28)  I can't reproduce it.
   5684 -   Consider making YankRing or something else that keeps a list of yanked
   5685     text part of standard Vim.  The "1 to "9 registers are not sufficient.
   5686 6   When yanking into the unnamed registers several times, somehow make the
   5687     previous contents also available (like it's done for deleting).  What
   5688     register names to use?  g"1, g"2, etc.?
   5689     Also do this for the small delete register "-.
   5690 
   5691 
   5692 Debug mode:
   5693 8   Add breakpoints for setting an option
   5694 8   Add breakpoints for assigning to a variable.
   5695 7   Store the history from debug mode in viminfo.
   5696 7   Make the debug mode history available with histget() et al.
   5697 -   In debug mode, using CTRL-R = to evaluate a function causes stepping
   5698     through the function. (Hari Krishna Dara, 2006 Jun 28)
   5699 
   5700 
   5701 Various improvements:
   5702 7   Add plugins for formatting?  Should be able to make a choice depending on
   5703     the language of a file (English/Korean/Japanese/etc.).
   5704     Setting the 'langformat' option to "chinese" would load the
   5705     "format/chinese.vim" plugin.
   5706     The plugin would set 'formatexpr' and define the function being called.
   5707     Edward L. Fox explains how it should be done for most Asian languages.
   5708     (2005 Nov 24)
   5709     Alternative: patch for utf-8 line breaking. (Yongwei Wu, 2008 Feb 23)
   5710 7   [t to move to previous xml/html tag (like "vatov"), ]t to move to next
   5711     ("vatv").
   5712 7   [< to move to previous xml/html tag, e.g., previous <li>. ]< to move to
   5713     next <li>, ]< to next </li>, [< to previous </li>.
   5714 8   Add ":rename" command: rename the file of the current buffer and rename
   5715     the buffer.  Buffer may be modified.
   5716 7   Instead of filtering errors with a shell script it should be possible to
   5717     do this with Vim script.  A function that filters the raw text that comes
   5718     from the 'makeprg'?
   5719 7   Allow a window not to have a statusline.  Makes it possible to use a
   5720     window as a buffer-tab selection.
   5721 8   Allow non-active windows to have a different statusline. (Yakov Lerner)
   5722 7   Add an invisible buffer which can be edited.  For use in scripts that want
   5723     to manipulate text without changing the window layout.
   5724 8   Add a command to revert to the saved version of file; undo or redo until
   5725     all changes are gone.
   5726 6   "vim -q -" should read the list of errors from stdin. (Gautam Mudunuri)
   5727 8   Add "--remote-fail": When contacting the server fails, exit Vim.
   5728     Add "--remote-self": When contacting the server fails, do it in this Vim.
   5729     Overrules the default of "--remote-send" to fail and "--remote" to do it
   5730     in this Vim.
   5731 8   When Vim was started without a server, make it possible to start one, as
   5732     if the "--servername" argument was given.  ":startserver <name>"?
   5733 8   No address range can be used before the command modifiers.  This makes
   5734     them difficult to use in a menu for Visual mode.  Accept the range and
   5735     have it apply to the following command.
   5736 8   Add the possibility to set 'fileformats' to force a format and strip other
   5737     CR characters.  For example, for "dos" files remove CR characters at the
   5738     end of the line, so that a file with mixed line endings is cleaned up.
   5739     To just not display the CR characters: Add a flag to 'display'?
   5740 7   Some compilers give error messages in which the file name does not have a
   5741     path.  Be able to specify that 'path' is used for these files.
   5742 7   Xterm sends <Esc>O3F for <M-End>.  Similarly for other <M-Home>, <M-Left>,
   5743     etc.  Combinations of Alt, Ctrl and Shift are also possible.  Recognize
   5744     these to avoid inserting the raw byte sequence, handle like the key
   5745     without modifier (unless mapped).
   5746 6   Add "gG": like what "gj" is to "j": go to the N'th window line.
   5747 8   Add command like ":normal" that accepts <Key> notation like ":map".
   5748 9   Support ACLs on more systems.
   5749 7   Add ModeMsgVisual, ModeMsgInsert, etc. so that each mode message can be
   5750     highlighted differently.
   5751 7   Add a message area for the user.  Set some option to reserve space (above
   5752     the command line?).  Use an ":echouser" command to display the message
   5753     (truncated to fit in the space).
   5754 7   Add %s to 'keywordprg': replace with word under the cursor. (Zellner)
   5755 8   Support printing on Unix.  Can use "lpansi.c" as an example. (Bookout)
   5756 8   Add put command that replaces the text under it.  Esp. for blockwise
   5757     Visual mode.
   5758 7   Enhance termresponse stuff: Add t_CV(?): pattern of term response, use
   5759     regexp: "\e\[[>?][0-9;]*c", but only check just after sending t_RV.
   5760 7   Add "g|" command: move to N'th column from the left margin (after wrapping
   5761     and applying 'leftcol').  Works as "|" like what "g0" is to "0".
   5762 7   Support setting 'equalprg' to a user function name.
   5763 7   Highlight the characters after the end-of-line differently.
   5764 7   When 'whichwrap' contains "l", "$dl" should join lines?
   5765 8   Add an argument to configure to use $CFLAGS and not modify it? (Mooney)
   5766 8   Enabling features is a mix of configure arguments and defines in
   5767     feature.h.  How to make this consistent?  Feature.h is required for
   5768     non-unix systems.  Perhaps let configure define CONF_XXX, and use #ifdef
   5769     CONF_XXX in feature.h?  Then what should min-features and max-features do?
   5770 8   Add "g^E" and "g^Y", to scroll a screen-full line up and down.
   5771 8   Add ":confirm" handling in open_exfile(), for when file already exists.
   5772 8   When quitting with changed files, make the dialog list the changed file
   5773     and allow "write all", "discard all", "write some".  The last one would
   5774     then ask "write" or "discard" for each changed file.  Patch in HierAssist
   5775     does something like this. (Shah)
   5776 7   Use growarray for replace stack.
   5777 7   Have a look at viH (Hellenic or Greek version of Vim).  But a solution
   5778     outside of Vim might be satisfactory (Haritsis).
   5779 3   Make "2d%" work like "d%d%" instead of "d2%"?
   5780 7   "g CTRL-O" jumps back to last used buffer.	Skip CTRL-O jumps in the same
   5781     buffer.  Make jumplist remember the last ten accessed buffers?
   5782 7   Make it possible to set the size of the jumplist (also to a smaller number
   5783     than the default). (Nikolai Weibull)
   5784 -   Add code to disable the CAPS key when going from Insert to Normal mode.
   5785 -   Set date/protection/etc. of the patchfile the same as the original file.
   5786 -   Use growarray for termcodes[] in term.c
   5787 -   Add <window-99>, like <cword> but use filename of 99'th window.
   5788 7   Add a way to change an operator to always work characterwise-inclusive
   5789     (like "v" makes the operator characterwise-exclusive).  "x" could be used.
   5790 -   Make a set of operations on list of names: expand wildcards, replace home
   5791     dir, append a string, delete a string, etc.
   5792 -   Remove using mktemp() and use tmpname() only?  Ctags does this.
   5793 -   When replacing environment variables, and there is one that is not set,
   5794     turn it into an empty string?  Only when expanding options? (Hiebert)
   5795 -   Option to set command to be executed instead of producing a beep (e.g. to
   5796     call "play newbeep.au").
   5797 -   Add option to show the current function name in the status line.  More or
   5798     less what you find with "[[k", like how 'cindent' recognizes a function.
   5799     (Bhatt).
   5800 -   "[r" and "]r": like "p" and "P", but replace instead of insert (esp. for
   5801     blockwise registers).
   5802 -   Add 'timecheck' option, on by default.  Makes it possible to switch off the
   5803     timestamp warning and question. (Dodt).
   5804 -   Add an option to set the time after which Vim should check the timestamps
   5805     of the files.  Only check when an event occurs (e.g., character typed,
   5806     mouse moved).  Useful for non-GUI versions where keyboard focus isn't
   5807     noticeable.
   5808 -   Make 'smartcase' work even though 'ic' isn't set (Webb).
   5809 7   When formatting text, allow to break the line at a number of characters.
   5810     Use an option for this: 'breakchars'?  Useful for formatting Fortran code.
   5811 -   Add flag to 'formatoptions' to be able to format book-style paragraphs
   5812     (first line of paragraph has larger indent, no empty lines between
   5813     paragraphs).  Complements the '2' flag.  Use '>' flag when larger indent
   5814     starts a new paragraph, use '<' flag when smaller indent starts a new
   5815     paragraph.	Both start a new paragraph on any indent change.
   5816 8   The 'a' flag in 'formatoptions' is too dangerous.  In some way only do
   5817     auto-formatting in specific regions, e.g. defined by syntax highlighting.
   5818 8   Allow using a trailing space to signal a paragraph that continues on the
   5819     next line (MIME text/plain; format=flowed, RFC 2646).  Can be used for
   5820     continuous formatting.  Could use 'autoformat' option, which specifies a
   5821     regexp which triggers auto-formatting (for one line).
   5822     ":set autoformat=\\s$".
   5823 -   Be able to redefine where a sentence stops.  Use a regexp pattern?
   5824 -   Support multibyte characters for sentences.  Example from Ben Peterson.
   5825 7   Add command "g)" to go to the end of a sentence, "g(" to go back to the
   5826     end of a sentence. (Servatius Brandt)
   5827 -   Be able to redefine where a paragraph starts.  For "[[" where the '{' is
   5828     not in column 1.
   5829 6   Add ":cdprev": go back to the previous directory.  Need to remember a
   5830     stack of previous directories.  We also need ":cdnext".
   5831 7   Should ":cd" for MS-DOS go to $HOME, when it's defined?
   5832 -   Make "gq<CR>" work on the last line in the file.  Maybe for every operator?
   5833 -   Add more redirecting of Ex commands:
   5834 	:redir #>  bufname
   5835 	:redir #>> bufname   (append)
   5836 -   Give error message when starting :redir: twice or using END when no
   5837     redirection was active.
   5838 -   Setting of options, specifically for a buffer or window, with
   5839     ":set window.option" or ":set buffer.option=val".  Or use ":buffer.set".
   5840     Also: "buffer.map <F1> quit".
   5841 6   Would it be possible to change the color of the cursor in the Win32
   5842     console?  (Klaus Hast)
   5843 -   Add :delcr command:
   5844 			    *:delcr*
   5845      :[range]delcr[!]	Check [range] lines (default: whole buffer) for lines
   5846 			ending in <CR>.  If all lines end in <CR>, or [!] is
   5847 			used, remove the <CR> at the end of lines in [range].
   5848 			A CTRL-Z at the end of the file is removed.  If
   5849 			[range] is omitted, or it is the whole file, and all
   5850 			lines end in <CR> 'textmode' is set.
   5851 -   Should integrate addstar() and file_pat_to_reg_pat().
   5852 -   When working over a serial line with 7 bit characters, remove meta
   5853     characters from 'isprint'.
   5854 -   Use fchdir() in init_homedir(), like in FullName().
   5855 -   In win_update(), when the GUI is active, always use the scrolling area.
   5856     Avoid that the last status line is deleted and needs to be redrawn.
   5857 -   That "cTx" fails when the cursor is just after 'x' is Vi compatible, but
   5858     may not be what you expect.  Add a flag in 'cpoptions' for this?  More
   5859     general: Add an option to allow "c" to work with a null motion.
   5860 -   Give better error messages by using errno (strerror()).
   5861 -   Give "Usage:" error message when command used with wrong arguments (like
   5862     Nvi).
   5863 -   Make 'restorescreen' option also work for xterm (and others), replaces the
   5864     SAVE_XTERM_SCREEN define.
   5865 7   Support for ":winpos" In xterm: report the current window position.
   5866 -   Give warning message when using ":set t_xx=asdf" for a termcap code that
   5867     Vim doesn't know about.  Add flag in 'shortmess'?
   5868 6   Add ":che <file>", list all the include paths which lead to this file.
   5869 -   For a commandline that has several commands (:s, :d, etc.) summarize the
   5870     changes all together instead of for each command (e.g. for the rot13
   5871     macro).
   5872 -   Add command like "[I" that also shows the tree of included files.
   5873 -   ":set sm^L" results in ":set s", because short names of options are also
   5874     expanded.  Is there a better way to do this?
   5875 -   Add ":@!" command, to ":@" like what ":source!" is to ":source".
   5876 8   Add ":@:!": repeat last command with forceit set.
   5877 -   Add 't_normal': Used whenever t_me, t_se, t_ue or t_Zr is empty.
   5878 -   ":cab map test ^V| je", ":cunab map" doesn't work.	This is vi compatible!
   5879 -   CTRL-W CTRL-E and CTRL-W CTRL-Y should move the current window up or down
   5880     if it is not the first or last window.
   5881 -   Include-file-search commands should look in the loaded buffer of a file (if
   5882     there is one) instead of the file itself.
   5883 7   Change 'nrformats' to include the leader for each format.  Example:
   5884 	nrformats=hex:$,binary:b,octal:0
   5885     Add setting of 'nrformats' to syntax files.
   5886 -   'path' can become very long, don't use NameBuff for expansion.
   5887 -   When unhiding a hidden buffer, put the same line at top of the window as
   5888     the one before hiding it.  Or: keep the same relative cursor position (so
   5889     many percent down the windows).
   5890 -   Make it possible for the 'showbreak' to be displayed at the end of the
   5891     line.  Use a comma to separate the part at the end and the start of the
   5892     line?  #754  Highlight the linebreak characters, add flag in 'highlight'.
   5893     Make 'showbreak' local to a window.
   5894 -   Some string options should be expanded if they have wildcards, e.g.
   5895     'dictionary' when it is "*.h".
   5896 -   Use a specific type for number and boolean options, making it possible to
   5897     change it for specific machines (e.g. when a long is 64 bit).
   5898 -   Add option for <Insert> in replace mode going to normal mode. (Nugent)
   5899 -   Add a next/previous possibility to "[^I" and friends.
   5900 -   Add possibility to change the HOME directory.  Use the directory from the
   5901     passwd file? (Antwerpen)
   5902 8   Add commands to push and pop all or individual options. ":setpush tw",
   5903     ":setpop tw", ":setpush all".  Maybe pushing/popping all options is
   5904     sufficient.  ":setflush" resets the option stack?
   5905     How to handle an aborted mapping?  Remember position in tag stack when
   5906     mapping starts, restore it when an error aborts the mapping?
   5907 -   Change ":fixdel" into option 'fixdel', t_del will be adjusted each time
   5908     t_bs is set? (Webb)
   5909 -   "gc": goto character, move absolute character positions forward, also
   5910     counting newlines.  "gC" goes backwards (Weigert).
   5911 -   When doing CTRL-^, redraw buffer with the same topline. (Demirel)  Store
   5912     cursor row and window height to redraw cursor at same percentage of window
   5913     (Webb).
   5914 -   Besides remembering the last used line number of a file, also remember the
   5915     column.  Use it with CTRL-^ et. al.
   5916 -   Check for non-digits when setting a number option (careful when entering
   5917     hex codes like 0xff).
   5918 -   Add option to make "." redo the "@r" command, instead of the last command
   5919     executed by it.  Also to make "." redo the whole mapping.  Basically: redo
   5920     the last TYPED command.
   5921 -   Support URL links for ^X^F in Insert mode, like for "gf".
   5922 -   Support %name% expansion for "gf" on Windows.
   5923 -   Make "gf" work on "file://c:/path/name".  "file:/c:/" and "file:///c:/"
   5924     should also work?
   5925 -   Add 'urlpath', used like 'path' for when "gf" used on a URL?
   5926 8   When using "gf" on an absolute file name, while editing a remote file
   5927     (starts with scp:// or http://) should prepend the method and machine
   5928     name.
   5929 -   When finding a URL or file name, and it doesn't exist, try removing a
   5930     trailing '.'.
   5931 -   Add ":path" command modifier.  Should work for every command that takes a
   5932     file name argument, to search for the file name in 'path'.	Use
   5933     find_file_in_path().
   5934 -   Highlight control characters on the screen: Shows the difference between
   5935     CTRL-X and "^" followed by "X" (Colon).
   5936 -   Integrate parsing of cmdline command and parsing for expansion.
   5937 -   Create a program that can translate a .swp file from any machine into a
   5938     form usable by Vim on the current machine.
   5939 -   Add ":noro" command: Reset 'ro' flag for all buffers, except ones that have
   5940     a readonly file.  ":noro!" will reset all 'ro' flags.
   5941 -   Add a variant of CTRL-V that stops interpretation of more than one
   5942     character.	For entering mappings on the command line where a key contains
   5943     several special characters, e.g. a trailing newline.
   5944 -   Make '2' option in 'formatoptions' also work inside comments.
   5945 -   Add 's' flag to 'formatoptions': Do not break when inside a string. (Dodt)
   5946 -   When window size changed (with the mouse) and made too small, set it back
   5947     to the minimal size.
   5948 -   Add "]>" and "[<", shift comment at end of line (command;  /* comment */).
   5949 -   Should not call cursorcmd() for each vgetc() in getcmdline().
   5950 -   ":split file1 file2" adds two more windows (Webb).
   5951 -   Don't give message "Incomplete last line" when editing binary file.
   5952 -   Add ":a", ":i" for preloading of named buffers.
   5953 -   When entering text, keep other windows on same buffer updated (when a line
   5954     entered)?
   5955 -   Check out how screen does output optimizing.  Apparently this is possible
   5956     as an output filter.
   5957 -   In dosub() regexec is called twice for the same line.  Try to avoid this.
   5958 -   Window updating from memline.c: insert/delete/replace line.
   5959 -   Optimize ml_append() for speed, esp. for reading a file.
   5960 -   V..c should keep indent when 'ai' is set, just like [count]cc.
   5961 -   Updatescript() can be done faster with a string instead of a char.
   5962 -   Screen updating is inefficient with CTRL-F and CTRL-B when there are long
   5963     lines.
   5964 -   Uppercase characters in Ex commands can be made lowercase?
   5965 8   Add option to show characters in text not as "|A" but as decimal ("^129"),
   5966     hex ("\x81") or octal ("\201") or meta (M-x).  Nvi has the 'octal' option
   5967     to switch from hex to octal.  Vile can show unprintable characters in hex
   5968     or in octal.
   5969 7   Tighter integration with xxd to edit binary files.  Make it more
   5970     easy/obvious to use.  Command line argument?
   5971 -   How does vi detect whether a filter has messed up the screen?  Check source.
   5972     After ":w !command" a wait_return?
   5973 -   Improve screen updating code for doput() (use s_ins()).
   5974 -   With 'p' command on last line: scroll screen up (also for terminals without
   5975     insert line command).
   5976 -   Use insert/delete char when terminal supports it.
   5977 -   Optimize screen redraw for slow terminals.
   5978 -   Optimize "dw" for long row of spaces (say, 30000).
   5979 -   Add "-d null" for editing from a script file without displaying.
   5980 -   In Insert mode: Remember the characters that were removed with backspace
   5981     and re-insert them one at a time with <key1>, all together with <key2>.
   5982 -   Amiga: Add possibility to set a keymap.  The code in amiga.c does not work
   5983     yet.
   5984 -   Implement 'redraw' option.
   5985 -   Add special code to 'sections' option to define something else but '{' or
   5986     '}' as the start of a section (e.g. one shiftwidth to the right).
   5987 7   Allow using Vim in a pipe: "ls | vim -u xxx.vim - | yyy".  Only needs
   5988     implementing ":w" to stdout in the buffer that was read from stdin.
   5989     Perhaps writing to stdout will work, since stderr is used for the terminal
   5990     I/O.
   5991 8   Allow opening an unnamed buffer with ":e !cmd" and ":sp !cmd".  Vile can
   5992     do it.
   5993 -   Add commands like ]] and [[ that do not include the line jumped to.
   5994 -   When :unab without matching "from" part and several matching "to" parts,
   5995     delete the entry that was used last, instead of the first in the list.
   5996 -   Add text justification option.
   5997 -   Set boolean options on/off with ":set paste=off", ":set paste=on".
   5998 -   After "inv"ing an option show the value: ":set invpaste" gives "paste is
   5999     off".
   6000 -   Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
   6001 -   When a file cannot be opened but does exist, give error message.
   6002 -   Amiga: When 'r' protection bit is not set, file can still be opened but
   6003     gives read errors.  Check protection before opening.
   6004 -   When writing check for file exists but no permission, "Permission denied".
   6005 -   If file does not exist, check if directory exists.
   6006 -   Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex
   6007     commands.
   6008 -   ":set -w all": list one option per line.
   6009 -   Amiga: test for 'w' flag when reading a file.
   6010 -   :table command (Webb)
   6011 -   Add new operator: clear, make area white (replace with spaces): "g ".
   6012 -   Add command to ":read" a file at a certain column (blockwise read?).
   6013 -   Add sort of replace mode where case is taken from the old text (Goldfarb).
   6014 -   Allow multiple arguments for ":read", read all the files.
   6015 -   Support for tabs in specific columns: ":set tabcol=8,20,34,56" (Demirel).
   6016 -   Add 'searchdir' option: Directories to search for file name being edited
   6017     (Demirel).
   6018 -   Modifier for the put command: Change to linewise, charwise, blockwise, etc.
   6019 -   Add commands for saving and restoring options ":set save" "set restore",
   6020     for use in macro's and the like.
   6021 -   Keep output from listings in a window, so you can have a look at it while
   6022     working in another window.  Put cmdline in a separate window?
   6023 -   Add possibility to put output of Ex commands in a buffer or file, e.g. for
   6024     ":set all".  ":r :set all"?
   6025 -   When the 'equalalways' option is set, creating a new window should not
   6026     result in windows to become bigger.  Deleting a window should not result in
   6027     a window to become smaller (Webb).
   6028 -   When resizing the whole Vim window, the windows inside should be resized
   6029     proportionally (Webb).
   6030 -   Include options directly in option table, no indirect pointers.  Use
   6031     mkopttab to make option table?
   6032 -   When doing ":w dir", where "dir" is a directory name, write the current
   6033     file into that directory, with the current file name (without the path)?
   6034 -   Support for 'dictionary's that are sorted, makes access a lot faster
   6035     (Haritsis).
   6036 -   Add "^Vrx" on the command line, replace with contents of register x.  Used
   6037     instead of CTRL-R to make repeating possible. (Marinichev)
   6038 -   Add "^Vb" on the command line, replace with word before or under the
   6039     cursor?
   6040 -   Support mapping for replace mode and "r" command (Vi doesn't do this)?
   6041 8   Sorting of filenames for completion is wrong on systems that ignore
   6042     case of filenames.  Add 'ignorefncase' option.  When set, case in
   6043     filenames is ignored for sorting them. Patch by Mike Williams:
   6044     ~/vim/patches/ignorefncase.  Also change what matches?  Or use another
   6045     option name.
   6046 8   Should be able to compile Vim in another directory, with $(srcdir) set to
   6047     where the sources are. Add $(srcdir) in the Makefile in a lot of places.
   6048     (Netherton)
   6049 6   Make it configurable when "J" inserts a space or not.  Should not add a
   6050     space after "(", for example.
   6051 5   When inserting spaces after the end-of-line for 'virtualedit', use tabs
   6052     when the user wants this (e.g., add a "tab" field to 'virtualedit').
   6053     (Servatius Brandt)
   6054 
   6055 
   6056 From Elvis:
   6057 -   Use "instman.sh" to install manpages?
   6058 -   Add ":alias" command.
   6059 -   Search patterns:
   6060       \@	match word under cursor.
   6061     but do:
   6062       \@w	match the word under the cursor?
   6063       \@W	match the WORD under the cursor?
   6064 8   ":window" command:
   6065     :win +	next window (up)
   6066     :win ++	idem, wrapping
   6067     :win -	previous window (down)
   6068     :win --	idem, wrapping
   6069     :win nr	to window number "nr"
   6070     :win name	to window editing buffer "name"
   6071 7   ":cc" compiles a single file (default: current one).  'ccprg'   option is
   6072     program to use with ":cc".  Use ":compile" instead of ":cc"?
   6073 
   6074 
   6075 From xvi:
   6076 -   CTRL-_ : swap 8th bit of character.
   6077 -   Add egrep-like regexp type, like xvi (Ned Konz) or Perl (Emmanuel Mogenet)
   6078 
   6079 
   6080 From vile:
   6081 -   When horizontal scrolling, use '>' for lines continuing right of a window.
   6082 -   Support putting .swp files in /tmp: Command in rc.local to move .swp files
   6083     from /tmp to some directory before deleting files.
   6084 
   6085 
   6086 Far future and "big" extensions:
   6087 -   Instead of using a Makefile and autoconf, use a simple shell script to
   6088     find the C compiler and do everything with C code.  Translate something
   6089     like an Aap recipe and configure.ac to C.  Avoids depending on Python,
   6090     thus will work everywhere.  With batch file to find the C compiler it
   6091     would also work on MS-Windows.
   6092 -   Make it easy to setup Vim for groups of users: novice vi users, novice
   6093     Vim users, C programmers, xterm users, GUI users,...
   6094 -   Change layout of blocks in swap file: Text at the start, with '\n' in
   6095     between lines (just load the file without changes, except for Mac).
   6096     Indexes for lines are from the end of the block backwards.  It's the
   6097     current layout mirrored.
   6098 -   Make it possible to edit a register, in a window, like a buffer.
   6099 -   Add stuff to syntax highlighting to change the text (upper-case keywords,
   6100     set indent, define other highlighting, etc.).
   6101 -   Mode to keep C-code formatted all the time (sort of on-line indent).
   6102 -   Several top-level windows in one Vim session.  Be able to use a different
   6103     font in each top-level window.
   6104 -   Allow editing above start and below end of buffer (flag in 'virtualedit').
   6105 -   Smart cut/paste: recognize words and adjust spaces before/after them.
   6106 -   Add open mode, use it when terminal has no cursor positioning.
   6107 -   Special "drawing mode": a line is drawn where the cursor is moved to.
   6108     Backspace deletes along the line (from jvim).
   6109 -   Support for underlining (underscore-BS-char), bold (char-BS-char) and other
   6110     standout modes switched on/off with , 'overstrike' option (Reiter).
   6111 -   Add vertical mode (Paul Jury, Demirel): "5vdw" deletes a word in five
   6112     lines, "3vitextESC" will insert "text" in three lines, etc..
   6113 4   Recognize l, #, p as 'flags' to EX commands:
   6114     :g/RE/#l shall print lines with line numbers and in list format.
   6115     :g/RE/dp shall print lines that are deleted.
   6116     POSIX: Commands where flags shall apply to all lines written: list,
   6117     number, open, print, substitute, visual, &, z.  For other commands, flags
   6118     shall apply to the current line after the command completes.  Examples:
   6119     :7,10j #l Join the lines 7-10 and print the result in list
   6120 -   Allow two or more users to edit the same file at the same time.  Changes
   6121     are reflected in each Vim immediately.  Could work with local files but
   6122     also over the internet.  See http://www.codingmonkeys.de/subethaedit/.
   6123 
   6124 vim:tw=78:sw=4:sts=4:ts=8:noet:ft=help:norl:fo+=n: