Vim documentation: todo
main help file
*todo.txt* For Vim version 6.2. Last change: 2004 Mar 16
VIM REFERENCE MANUAL by Bram Moolenaar
TODO list for Vim *todo*
This is a veeeery long list of known bugs, current work and desired
improvements. To make it a little bit accessible, the items are grouped by
subject. In the first column of the line a classification is used to be able
to look for "the next thing to do":
Priority classification:
9 next point release
8 next release
7 as soon as possible
6 soon
5 should be included
4 nice to have
3 consider including
2 maybe not
1 probably not
- unclassified
*votes-for-changes*
See |develop.txt| for development plans. You can vote for which items should
be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
Installing Vim with Aap: copying runtime/tools/* includes AAPDIR and CVS.
Filter these out.
In the Aap syntax file, line continuation for comments doesn't work. Appears
to use the lowest number of matches instead of the maximum.
configure: after adding compilation arguments from Perl, Python, etc. check
that compiling and linking still works. Catch erroneous "-lelf" argument.
Add a configure check for tgetent(): whether it returns 0 for OK or "entry not
found". (uribarri)
:let test = "\n" :echo test =~ '\n' should result in "1", results in "0".
(Yasuhiro Matsumoto)
When 'mousefocus' is set and jumping to another window, apply 'mousehide'
immediately.
With 'splitbelow' set, open a preview window and then a quickfix window.
CTRL-W p goes to the preview window instead of the first one (Gary Holloway).
When 'winminheight' is zero and a window is reduced to zero height, the ruler
always says "Top" instead of the cursor position. (Antoine J. Mechelynck)
When using the accents keymap and Select mode is used, ^e inserts ^ instead of
ê. (Alex Jakushev) Also, Visual mode mappings get in the way of keymaps.
Keymap is not used for ":vim file" but is used for ":edit file"? (Sergey
Khorev, 2003 Jun 2)
":echo "hello" | silent normal n" should not remove the "hello" message.
(Servatius Brandt)
"mixed" for 'backupcopy' (Simon Ekstrand) Use a different name? Support
using "auto" but use rename for symlinks and/or hard links.
"auto,nosymlink,nohardlink"?
Win32: Memory leak when using ctags stuff from Steve Amerige? (2002 May 16)
Asked Dominuque Pelle to check this with Insure.
Win32: even though title is converted to UCS2, it still shows "???" for
multi-byte characters.
Mac: Patch to fix problems with Project Builder caused by patches: Dany
St-Amant, Feb 7.
Don't include 'bufhidden' in ":mkvimrc". (Michael Naumann)
Possible fix for test 42 with different locales. (Walter Briscoe, 2003 Jun 17)
After patch 6.1.091 on IRIX 6.5 control key stops working. (Thomas Olsen, 2002
Jul 5)
When working over a slow connection, it's very annoying that the last @ line
is redrawn and then cleared each time.
":@y" uses vpeekc() to find the end of the executed commands. But when
starting up the GUI from a shortcut this doesn't work and Vim exits. (Ned Konz
2002 Jul 6)
In a compiler plugin "current_compiler" should be local to the buffer. (Doug
Potts). But how to keep it backwards compatible? use both b:current_compiler
and current_compiler? See example bash script from Potts.
Problem in getchar.c with mapping <m-x>. (Yasuhiro Matsumoto, May 27)
Can't reproduce it.
For ":unmenu" is it possible to ignore & in translations?
Add docs for two docbook syntax files. (Johannes Zellner)
Viminfo file can grow very long when there are extremely long lines in a
register. Add limit in 'viminfo' for the number of bytes per item.
When using ":tnext" and the tag position is "guessed" CTRL-T doesn't work
properly. (Michal Malecki, 2003 Jun 3)
When using ":tag" or ":pop" the previous matching tag is used (cur_match).
But since the current file is different, the ordering of the tags may change.
Remember what the current buffer was for when reusing cur_match.
Editing a new file sets 'fenc' empty. Editing an empty file sets 'fenc' to
the first entry in 'fencs' and may mention [converted]. Is this right?
When __STDC_ISO_10646__ is defined, use wcwidth() from the library instead of
built-in one? (Markus Kuhn)
Solaris: It's possible that configure uses a different search path for
libraries than when linking, two versions of libintl.so then may cause
trouble. (Antonio Columbo)
Patch to use Vim in an MDI child window in MS Visual studio: add -P argument
to Vim. (Zibo Zhao, 2002 Oct 31)
":map 0 G" should not be used in "10G". (Benji Fisher)
Allow mapping non-digits only? Add flag to 'cpoptions'?
":he \zs" should find "/\zs", not waste time matching everything.
":nnoremap <F12> :echo "cheese" and ":cabbr cheese xxx" still uses the
abbreviation. (Hari Krishna)
The cursor ends up in the wrong column when doing "i//<Esc>o" with
'virtualedit' empty, "o" in 'formatoptions', 'indentexpr' set to
"cindent(v:lnum)" and 'autoindent' off. (Toby Allsopp)
Ruby: "ruby << EOF" inside a function doesn't always work. Recognize this and
skip until the matching "EOF". Also for ":python", ":tcl" and ":perl".
When 'selection' is "exclusive", selecting with the mouse from right to left
does not select the character the mouse first pointed to. When dragging the
mouse left (or up) include the character where selection started.
Add CVS conflicts highlighting to the C syntax file. (Alex Jakushev, Jan 1)
Editing a file "http://machine/name.gz" doesn't work, because the netrw plugin
leaves the '[ and '] marks below the last line. Allow "m[" and "m]" and use
them to set the marks back to the just read lines.
When 'lazyredraw' is set don't update the window title, status line, 'showcmd'
or mode.
":vert wincmd ]" doesn't split vertically. (Charles Campbell) nv_ident() uses
do_cmdline_cmd() which resets "cmdmod".
BufEnter autocommand stops 'mousefocus' from working in Insert mode (Normal
mode is OK). (Gregory Seidman, 2003 Jan 17)
Vertical split and command line window: can only drag status line above the
cmdline window on the righthand side, not lefthand side.
Syntax region end match that includes a line break doesn't highlight the first
line with matchgroup. (Gary Holloway, 2003 Feb 13)
Calling convert_input() from fill_input_buf() doesn't handle the situation
that an incomplete sequence is at the end of the buffer (e.g., when pasting a
long text). (Kuang-che Wu, 2003 Feb 17)
glob() doesn't work for a directory with a single quote in the name. (Nazri
Ramliy)
BOM at start of .vimrc file is not recognized. Will cause an error message.
Detect it?
It's not nice that horizontal scrolling depends on the length of the current
line. When using 'virtualedit' it can work differently.
Obscure problem in gvim: (Jens Schicke)
- press C-W s until it says "not enough room"
- press C-W v until it says "not enough room" again
- press C-W j
- press :q
- press :help
Get message "Error detected while processing BufRead Auto commands for "*.txt":
Need at least 101 lines: tw=78"
And the screen size is messed up.
The main() function is very long. Move parts to separate functions,
especially loops. Ideas from Walter Briscoe (2003 Apr 3, 2004 Feb 9).
":mksession" always puts "set nocompatible" in the session file. This changes
option settings. (Ron Aaron) Put an "if &compatible" around it.
Insert mode: CTRL-K l <BS>, <BS> type some text. Text overwrites one more
character then it should, then it's back to normal.
For Antoine Mechelynck <BS> appears ('encoding' is utf-8) and isn't updated
correctly. (2003 Jun 4) Is the BS send to the screen without taking care of
its extra width?
With ":silent! echoerr something" you don't get the position of the error.
emsg() only writes the message itself and returns.
Adding the "c" flag to this command: ":s/\%(^a\+\)\@<=b//g" makes it replace
more times in "abababababababababababababababababababab". (Klaus Bosau, Jul 1)
Adding the "c" flag to ":s/\ze\<hstm\>/*/gc" makes it replace multiple times.
(Marcel Svitalsk, 2003 Jul 4)
Copying vimtutor to /tmp/something is not secure, a symlink may cause trouble.
Create a directory and create the file in it. Use "umask" to create the
directory with mode 700. (Stefan Nordhausen)
Some Linux versions define iconv() without a "const" for the second argument.
Add a configure check for this to avoid a warning message. (Aschwin Marsman)
Allow "^ #include" and "^ #define" for 'include' and 'define' default
values? (RG Kiran)
'include' option has off-by-one bug like 'define' had in the past? (Benji
Fisher, Jan 14) To find "INPUT=file" 'include' must be "INPUT" or
"INPUT=\@=", "INPUT=" doesn't work. (Carl Osterwisch)
In diff mode, in an xterm, changing the foreground color of DiffAdd also
changes its background color. (Tom Schumm, 2003 Jul 4)
":s" that includes a line break does not replace all matches. (Pavel Papushev,
Jul 8)
":ta /**" takes an awful long time. Annoying for tag preview (Ritesh
Banerjee).
When recovering a file and "LINES MISSING" mistakes are made, give a clear
error message. (Robert Webb)
When recovering a file with a fileformat different from the default one, the
recovered file is stored with the default fileformat. (Miroslaw
Dobrzanski-Neumann, Jul 17)
The diff.exe included with gvim can't handle a CTRL-Z in the file. (Peter
Keresztes)
When loading a session file a second time there are many prompts for
re-opening a file that's already being edited. Add a "Quit all" alternative?
(Robert Webb)
Can't add filetype detection by dropping a file in a directory. Add "runtime!
filetype/*.vim" in ex_filetype()? Explain this in the docs.
Allow using " " (two spaces" in 'paragraph', match ".$" instead of ". $".
(Dorai Sitaram)
":let @+ = 'x'"' doesn't work when the clipboard is not supported. Should use
the unnamed register instead. (Xiangjiang Ma)
Obtain the charset from the file. See Python PEP for "normal" method:
http://www.python.org/peps/pep-0263.html. Can also use HTML/XML meta field
"charset=UTF-8".
"r" doesn't work properly with multi-byte characters in Visual mode. (Joel
Riou, 2003 Oct 31)
After running "make test" the window title is sometimes not restored. Mostly
sticks at "test3.in", but not always.
Underscore in printer font doesn't work. ':exe "set printfont=".&guifont'
doesn't work where the font name is something like "Andale_Mono". (Steve Hall)
Viminfo file becomes corrupt when editing a file with a <NL> in the name.
(file marks, buffer list, history of marks) (Alexander N.Benner, Wichert
Akkerman, Weisselberg)
Also problems with buffer menu.
Makefile syntax: should try syncing by searching backwards (for line that
starts in column 0 that isn't a comment?)
Cannot see the sign column. (Rob Retter) Add a highlight group for it, only
used when there is no sign.
Include port to MorphOS. (Ali Akcaagac, 2004 Feb 10)
Netbeans: check that the file with the password is owned by the user and only
readable by the user. Sun will work on it.
Use 'backupskip' to skip setting '0 mark? (Benji Fisher)
GTK: add GTK 2.3 file dialog support. (Grahame Bowland, 2004 Mar 15)
Vi incompatibility:
8 With undo/redo only marks in the changed lines should be changed. Other
marks should be kept. Vi keeps each mark at the same text, even when it
is deleted or restored. (Webb)
Also: A mark is lost after: make change, undo, redo and undo.
Example: "{d''"' then "u" then "d''"': deletes an extra line, because the ''
position is one line down. (Veselinovic)
8 ":change" in a single-line file adds an empty line. When the file used to
be longer a "~" line is displayed, but there really is an empty line.
(Haakon Riiser, 2003 Dec 3 and Dec 16)
8 ":append" and ":insert" in an empty file add an extra empty line. (Haakon
Riiser, 2003 Dec 3) Test for ML_EMPTY.
8 When stdin is not a tty, and Vim reads commands from it, an error should
make Vim exit.
7 Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
(currently you can continue typing, but it's truncated later anyway).
Requires a way to make CTRL-C interrupt select() when in cooked input.
8 When loading a file in the .exrc, Vi loads the argument anyway. Vim skips
loading the argument if there is a file already. When no file argument
given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
6 In Insert mode, when using <BS> or <Del>, don't wipe out the text, but
only move back the cursor. Behaves like '$' in 'cpoptions'. Use a flag
in 'cpoptions' to switch this on/off.
8 When editing a file which is a symbolic link, and then opening another
symbolic link on the same file, Vim uses the name of the first one.
Adjust the file name in the buffer to the last one used? Use several file
names in one buffer???
Also: When first editing file "test", which is symlink to "test2", and
then editing "test2", you end up editing buffer "test" again. It's not
logical that the name that was first used sticks with the buffer.
7 The ":undo" command works differently in Ex mode. Edit a file, make some
changes, "Q", "undo" and _all_ changes are undone, like the ":visual"
command was one command.
7 The ":map" command output overwrites the command. Perhaps it should keep
the ":map" when it's used without arguments?
7 CTRL-L is not the end of a section? It is for Posix! Make it an option.
7 Implement 'prompt' option. Init to off when stdin is not a tty.
7 CTRL-T in Insert mode inserts 'shiftwidth' of spaces at the cursor. Add a
flag in 'cpoptions' for this.
7 Add a way to send an email for a crashed edit session. Create a file when
making changes (containing name of the swap file), delete it when writing
the file. Supply a program that can check for crashed sessions (either
all, for a system startup, or for one user, for in a .login file).
7 Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
7 "z3<CR>" should still use the whole window, but only redisplay 3 lines.
7 ":tag xx" should move the cursor to the first non-blank. Or should it go
to the match with the tag? Option?
7 Implement 'autoprint'/'ap' option.
7 Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
(Sayre).
7 Add flag in 'cpoptions' that makes operator (yank, filter) not move the
cursor, at least when cancelled. (default Vi compatible).
7 Make "5dd" on last-but-one-line not delete anything (Vi compatible).
Add flag in 'cpoptions' for this. When not present, "2dd" in the last
line should delete the last line. Patch from greenx 2002 Apr 11.
7 This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
In Vi you can edit in visual mode, and when doing "Q" you jump to the next
match. Nvi can do it too.
7 Support '\' for line continuation in Ex mode for these commands: (Luebking)
g/./a\ g/pattern1/ s/pattern2/rep1\\
line 1\ line 2\\
line 2\ line 3\\
. line4/
6 ":e /tmp/$tty" doesn't work. ":e $uid" does. Is $tty not set because of
the way the shell is started?
6 Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
thing. (only repeat insert for the first line).
GTK+ 1 (OK in GTK 2):
8 When menus are disabled, 'm' removed from 'guioptions', Alt-F still pops
up the File menu. Cannot reproduce this: gives a warning for a NULL
pointer if the menu was never displayed.
8 When using "gvim -geom 40x30" or setting 'columns' in .gvimrc or with a
GUIEnter autocommand, the width is still set to fit the toolbar. Also
happens when changing the font. How to avoid that the toolbar specifies
the minimal window width?
8 When using a theme with different scrollbars (gtkstep), the scrollbars can
be too narrow. (Drazen Kacar)
8 Font "7x14" has a bold version "7x14bold". Try to find the bold font by
appending "bold" when there are not 14 dashes.
GTK+ GUI known bugs:
8 GTK 2: Combining UTF-8 characters not displayed properly in menus (Mikolaj
Machowski) They are displayed as separate characters. Problem in
creating a label?
9 Can't paste a Visual selection from GTK-gvim to vim in xterm or Motif gvim
when it is longer than 4000 characters. Works OK from gvim to gvim and
vim to vim. Pasting through xterm (using the shift key) also works.
It starts working after GTK gvim loses the selection and gains it again.
7 DND doesn't work with KDE (also with GTK 1).
Win32 GUI known bugs:
7 When the administrator installs Vim it goes into his own profile, should
be the "all users" profile. (Robert Premuz)
8 In eval.c, io.h is included when MSWIN32 is defined. Shouldn't this be
WIN32? Or can including io.h be moved to vim.h? (Dan Sharp)
6 Win32 GUI: With "-u NONE -U NONE" and doing "CTRL-W v" "CTRL-W o", the ":"
of ":only" is highlighted like the cursor. (Lipelis)
7 When font smoothing is enabled, redrawing can become very slow. The reason
appears to be drawing with a transparent background. Would it be possible
to use an opaque background in most places?
8 Use another default for 'termencoding': the active codepage. Means that
when 'encoding' is changed typing characters still works properly.
Alternative: use the Unicode functions to obtain typed characters.
8 Win32: Multi-byte characters are not displayed, even though the same font
in Notepad can display them. (Srinath Avadhanula) Try with the
UTF-8-demo.txt page with Andale Mono.
8 Unicode characters in the file name are not handled properly. Also
displaying the in the window title can be wrong. (Camillo) Use Unicode
functions for file I/O?
8 Win32: When clicking on the gvim title bar, which gives it focus, produces
a file-changed dialog, after clicking on a button in that dialog the gvim
window follows the mouse. The button-up event is lost. Only with
MS-Windows 98?
Try this: ":set sw ts", get enter-prompt, then change the file in a
console, go back to Vim and click "reload" in the dialog for the changed
file: Window moves with the cursor!
Put focus event in input buffer and let generic Vim code handle it?
8 When activating the Vim window with mouse click, don't move cursor to
mouse position. Catch WM_MOUSEACTIVATE. (Luevelsmeyer)
9 The print dialog uses a font which doesn't display multi-byte messages.
Include patch from Vipin Aravind? Update from Yasuhiro Matsumoto.
8 Win32: When mouse is hidden and in the toolbar, moving it won't make it
appear. (Sami Salonen)
8 Windows NT: writing to aux.* makes Vim hang. (Acevedo)
8 Win32 GUI: With maximized window, ":set go-=r" doesn't use the space that
comes available. (Poucet) It works OK on Win 98 but doesn't work on Win
NT 4.0. Leaves a grey area where the scrollbar was. ":set go+=r" also
doesn't work properly.
8 When Vim is minimized and when maximizing it a file-changed dialog pops
up, Vim isn't maximized. It should be done before the dialog, so that it
appears in the right position. (Webb)
9 When selecting at the more-prompt or hit-enter-prompt, the right mouse
button doesn't give popup menu.
At the hit-enter prompt CTRL-Y doesn't work to copy the modeless
selection.
On the command line, don't get a popup menu for the right mouse button.
Let the middle button paste selected text (not the clipboard but the
non-Visual selection)? Otherwise CTRL-Y has to be used to copy the text.
8 When 'grepprg' doesn't execute, the error only flashes by, the
user can hardly see what is wrong. (Moore)
Could use vimrun with an "-nowait" argument to only wait when an error
occurs, but "command.com" doesn't return an error code.
8 When the 'shell' cannot be executed, should give an appropriate error msg.
Esp. for a filter command, currently it only complains the file could not
be read.
8 MessageBox used for error messages can be too big. There is no way to
scroll it, or even hit the OK button (but you can hit return).
Use a scrollable window.
7 Add an option to add one pixel column to the character width? Lucida
Console italic is wider than the normal font ("d" overlaps with next char).
Opposite of 'linespace': 'columnspace'.
7 At the hit-enter prompt scrolling now no longer works. Need to use the
keyboard to get around this. Pretend <CR> was hit when the user tries to
scroll? Need to be able to get out of hit-enter prompt with the mouse
anyway.
7 Scrollbar width doesn't change when selecting other windows appearance.
Also background color of Toolbar and rectangle below vert. scrollbar.
7 "!start /min cmd" should run in a minimized window, instead of using
"/min" as the command name. (Rogall)
6 Drawing text transparently doesn't seem to work (when drawing part cursor).
8 CTRL key doesn't always work in combination with ALT key. It does work
for function keys, not for alphabetic characters.
8 CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY. How do we
know which keyboard is being used?
7 When scrolling, and a background color is dithered, the dither pattern
doesn't always join correctly between the scrolled area and the new drawn
area (Koloseike).
8 When gui_init_font() is called with "*", p_guifont is freed while it might
still be used somewhere. This is too tricky, do the font selection first,
then set the new font by name (requires putting all logfont parameters in
the font name).
Athena and Motif:
8 The "-X" argument can't be undone once Vim is running (e.g., when doing
":gui"). Make the x_no_connect flag available through an option?
9 Can configure be changed to disable netbeans if the Xpm library is
required and it's missing?
8 When using the resource "Vim*borderwidth 2" the widgets are positioned
wrong.
9 XIM is disabled by default for SGI/IRIX. Fix XIM so that 'imdisable' can
be off by default.
9 XIM doesn't work properly for Athena/Motif. (Yasuhiro Matsumoto) For now,
keep XIM active at all times when the input method has the preediting
flag.
8 X11: A menu that contains an umlaut is truncated at that character.
Happens when the locale is "C", which uses ASCII instead of IS0-8859-1.
Is there a way to use latin1 by default? Gnome_init() seems to do this.
8 Perhaps use fontsets for everything?
6 When starting in English and switching the language to Japanese, setting
the locale with ":lang", 'guifontset' and "hi menu font=", deleting all
menus and setting them again, the menus don't use the new font. Most of
the tooltips work though...
7 Motif: when using a file selection dialog, the specified file name is not
always used (when specifying a filter or another directory).
Athena GUI:
9 When dragging the scrollbar thumb very fast, focus is only obtained in
the scrollbar itself. And the thumb is no longer updated when moving
through files.
7 The file selector is not resizable. With a big font it is difficult to
read long file names. (Schroeder)
4 Re-write the widget attachments and code so that we will not have to go
through and calculate the absolute position of every widget every time the
window is refreshed/changes size. This will help the "flashing-widgets"
problem during a refresh.
5 When starting gvim with all the default colors and then typing
":hi Menu guibg=cyan", the menus change color but the background of the
pullright pixmap doesn't change colors.
If you type ":hi Menu guibg=cyan font=anyfont", then the pixmap changes
colors as it should.
Allocating a new pixmap and setting the resource doesn't change the
pullright pixmap's colors. Why? Possible Athena bug?
Motif GUI:
8 Popup menu ordering is wrong.
8 Accelerators don't work in a dialog. Include patch from Martin Dalecki
(Jan 3, tested by David Harrison). Should work with Alt-o then.
7 Use accelerators for the Motif file selection dialog. Patch from Martin
Dalecki 2002 Jan 11.
7 Use XmStringCreateLocalized() instead of XmStringCreateSimple()?
David Harrison says it's OK (it exists in Motif 1.2).
8 The texts in the find/replace dialog don't use the right font.
8 Lesstif: When deleting a menu that's torn off, the torn off menu becomes
very small instead of disappearing. When closing it, Vim crashes.
(Phillipps)
GUI:
9 On Solaris, creating the popup menu causes the right mouse button no
longer to work for extending the selection. (Halevy)
9 When running an external program, it can't always be killed with CTRL-C.
e.g. on Solaris 5.5, when using "K" (Keech). Other 'guipty' problems on
Solaris 2.6. (Marley)
9 On Solaris: Using a "-geometry" argument, bigger than the window where Vim
is started from, causes empty lines below the cmdline. (raf)
8 X11 GUI: When menu is disabled by excluding 'm' from 'guioptions', ALT key
should not be used to trigger a menu (like the Win32 version).
8 When setting 'langmenu', it should be effective immediately. Store both
the English and the translated text in the menu structure. Re-generate
the translation when 'langmenu' has changed.
8 Basic flaw in the GUI code: NextScreen is updated before calling
gui_write(), but the GUI code relies on NextScreen to represent the state
of where it is processing the output.
Need better separation of Vim core and GUI code.
8 When fontset support is enabled, setting 'guifont' to a single font
doesn't work.
8 Menu priority for sub-menus for: Amiga, BeOS.
8 Add menu separators for Amiga, RISCOS.
8 Add a few more command names. Patch from Jiri Brezina (28 feb 2002).
8 Add way to specify the file filter for the browse dialog. At least for
browse().
8 Add dialog for search/replace to other GUIs? Tk has something for this,
use that code? Or use console dialog.
8 When selecting a font with the font dialog and the font is invalid, the
error message disappears too quick.
8 gui_check_colors() is not called at the right moment. Do it much later,
to avoid problems.
8 gui_update_cursor() is called for a cursor shape change, even when there
are mappings to be processed. Only do something when going to wait for
input. Or maybe every 100 ms?
8 X11: When the window size is reduced to fit on screen, there are blank
lines below the text and bottom scrollbar. "gvim -geometry 80x78+0+0".
When the "+0+0" is omitted it works.
8 When starting an external command, and 'guipty' set, BS and DEL are mixed
up. Set erase character somehow?
8 A dead circumflex followed by a space should give the '^' character
(Rommel). Look how xterm does this.
Also: Bednar has some code for dead key handling.
Also: Nedit 5.0.2 with USE_XMIM does it right. (Gaya)
8 The compose key doesn't work properly (Cepas). Both for Win32 and X11.
7 The cursor in an inactive window should be hollow. Currently it's not
visible.
7 GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
hollow, after window lowered/raised it's OK. (Godfrey)
7 When starting GUI with ":gui", and window is made smaller because it
doesn't fit on the screen, there is an extra redraw.
8 When setting font with .Xdefaults, there is an extra empty line at the
bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
8 When font shape changes, but not the size, doing ":set font=" does not
redraw the screen with the new font. Also for Win32.
When the size changes, on Solaris 2.5 there isn't a redraw for the
remaining part of the window (Phillipps).
- Flashes really badly in certain cases when running remotely from a Sun.
4 Re-write the code so that the highlighting isn't changed multiple times
when doing a ":hi clear". The color changes happen three or more times
currently. This is very obvious on a 66Mhz 486.
MSDOS/DJGPP:
9 Pressing CTRL-C often crashes the console Vim runs in. (Ken Liao)
When 'bioskey' isn't set it doesn't happen. Could be a problem with the
BIOS emulation of the console. Version 5.6 already had this problem.
8 DJGPP: "cd c:" can take us to a directory that no longer exists.
change_drive() doesn't check this. How to check for this error?
9 The 16 bit version runs out of memory very quickly. Should find unused
code and reduce static data.
9 Crash when running on Windows 98 in a console window and pressing CTRL-C.
Happens now and then. When debugging Vim in gdb this also happens. Since
the console crashes, might be a bug in the DOS console. Resetting
'bioskey' avoids it, but then CTRL-C doesn't work.
9 DOS: Make CTRL-Fx and ALT-Fx work.
CTRL-F1 = CE-5E, CTRL-F2 = CE-5F, .., CTRL-F10 = CE-67
ALT-F1 = CE-68, ALT-F2 = CE-69, .., ALT-F10 = CE-71
Shifted cursor keys produce same codes as unshifted keys. Use bioskey(2)
to get modifier mask for <S-C-M-Fx>.
Use CSI codes to insert modifier mask in input stream? Make this work
like in the GUI, but do handle a typed CSI.
Mapping things like <M-A> doesn't work, because it generates an extended
key code. Use a translation table?
9 Can't read an opened swap file when the "share" command has not been used.
At least ignore the swap files that Vim has opened itself.
8 Use DJGPP 2.03.
8 The Dos32 version (DJGPP) can't use long file names on Windows NT.
Check if new package can be used (v2misc/ntlfn08[bs].zip).
8 setlocale() is bogus.
8 Vim busy waits for new characters or mouse clicks. Should put in some
sort of sleep, to avoid eating 50% of the CPU time. Test on an unpatched
Windows 95 system!
8 DJGPP: when shell is bash, make fails. (Donahoe)
7 Hitting CTRL-P twice quickly (e.g. in keyword completion) on a 8088
machine, starts printer echo! (John Mullin).
7 MSDOS 16 bit version can't work with COMSPEC that has an argument, e.g.:
COMSPEC=C:\WINDOWS\COMMAND.COM /E:4096 (Bradley)
Caused by BCC system() function (Borland "make" has the same problem).
8 Mouse: handle left&right button pressed as middle button pressed. Add
modifier keys shift, ctrl and alt.
7 When too many files are open (depends on FILES), strange things happen.
The Dos16 version runs out of memory, in the Dos32 version "!ls" causes a
crash. Another symptom: .swp files are not deleted, existing files are
"[New file]".
7 DJGPP version doesn't work with graphics display mode. Switch to a mode
that is supported?
8 DJGPP: ":mode" doesn't work for many modes. Disable them.
8 DJGPP: When starting in Ex mode, shouldn't clear the screen. (Walter
Briscoe)
MSDOS, OS/2 and Win32:
8 OS/2: Add backtick expansion. Undefine NO_EXPANDPATH and use
gen_expand_wildcards().
8 OS/2: Add clipboard support? See example clipbrd.exe from Alexander
Wagner.
8 OS/2: Add Extended Attributes support and define HAVE_ACL.
8 OS/2: When editing a file name "foo.txt" that is actually called FOO.txt,
writing uses "foo.txt". Should obtain the real file name.
8 Editing a file with braces doesn't work, e.g., "C:\TEMP\(1).txt". Mostly
a problem when dropping the file on a Vim shortcut or starting with the
"Edit with Vim" menu. Escape the () in main() when the file is a full
path? (Yasuhiro Matsumoto)
8 Win32 console: <M-Up> and <M-Down> don't work. (Geddes) We don't have
special keys for these. Should use modifier + key.
8 Win32 console: caps-lock makes non-alpha keys work like with shift.
Should work like in the GUI version.
8 Environment variables in DOS are not case sensitive. Make a define for
STRCMP_ENV(), and use it when comparing environment var names.
8 Setting 'shellslash' has no immediate effect. Change all file names when
it is set/reset? Or only use it when actually executing a shell command?
8 When editing a file on a Samba server, case might matter. ":e file"
followed by ":e FILE" will edit "file" again, even though "FILE" might be
another one. Set last used name in buflist_new()? Fix do_ecmd(), etc.
8 ":mksession" generates a "cd" command where "aa\#bb" means directory "#bb"
in "aa", but it's used as "aa#bb". (Ronald Hoellwarth)
8 When a buffer is editing a file like "ftp://mach/file", which is not going
to be used like a normal file name, don't change the slashes to
backslashes. (Ronald Hoellwarth)
Windows 95:
8 Editing a file by it's short file name and writing it, makes the long file
name disappear. Setting 'backupcopy' helps.
Use FindFirstFile()->cAlternateFileName in fname_case() (George).
8 Doing wildcard expansion, will match the short filename, but result in the
long filename (both DJGPP and Win32).
Win32 console:
9 When editing a file by its short file name, it should be expanded into its
long file name, to avoid problems like these: (Mccollister)
1) Create a file called ".bashrc" using some other editor.
2) Drag that file onto a shortcut or the actual executable.
3) Note that the file name is something like BASHRC~1
4) Go to File->Save As menu item and type ".bashrc" as the file name.
5) Press "Yes" to indicate that I want to overwrite the file.
6) Note that the message "File exists (add ! to override)" is displayed
and the file is not saved.
Use FindFirstFile() to expand a file name and directory in the path to its
long name.
8 Also implement 'conskey' option for the Win32 console version? Look at
how Xvi does console I/O under Windows NT.
7 Re-install the use of $TERM and support the use of different terminals,
besides the console.
8 Use of <altgr> modifier doesn't work? 5.3 was OK. (Garcia-Suarez/Guckes)
9 Mapping <C-S-Tab> doesn't work correctly.
9 tmpnam() uses file in root of file system: "\asdf". That doesn't work on
a Netware network drive. Use same function as for Win32 GUI?
8 In os_win32.h, HAVE_STRICMP and HAVE_STRNICMP are defined only if __GNUC__
is not defined. Shouldn't that be the other way around?
8 ":winpos" doesn't work. Patch from Vipin Aravind.
7 SetConsoleCP() and SetConsoleOutputCP() to implement 'termencoding'?
Amiga:
9 In mch_expandpath() a "*" is to be expanded, but "\*" isn't. Remove
backslashes in result.
8 Executing a shell, only one option for 'shell' is separated. Should do
all options, using white space separation.
Macintosh:
9 Mac: The motion type is not stored on the clipboard. Using ":set
clipboard=unnamed" makes "yyp" work characterwise. (Michael DeMoney)
7 Loading the Perl library only works on OS/X 10.2 or 10.3, never on both.
Load the Perl library dynamically see Python sources file dynload_mac
(Jack)
dynamic linking: http://developer.apple.com/technotes/tn2002/tn2064.html
8 Patch to add 'transparency' option. Disadvantage: it's slow. (Eckehard
Berns, 2004 Jan 31 http://ecki.to/vim-icns/TransBack.diff
8 Patches from "Rain Dog" Cucka:
- guifont selector (2002 Dec 15)
- scrollbar (2002 Dec 8)
- Quartz fonts (2002 Dec 8)
9 Problems in Carbon version for OS X: (Benji Fisher)
- keyboard shortcuts in the menus get lost.
8 The Vim/About menu doesn't work.
8 ":gui" doesn't fork. Enabling the code in gui.c to fork causes a SEGV.
8 Define vim_mkdir() for Macintosh.
8 Define mch_writable() for Macintosh.
9 When DiskLock is running, using a swap file causes a crash. Appears to be
a problem with writing a file that starts with a dot. (Giacalone)
9 On G3 Mac, OS version 8, control strip causes characters messed up when
scrolling (CTRL-L cleans it up). (Benji Fisher)
9 On G3 Mac, OS version 8, variable-speed scrolling doesn't work, after two
seconds of scrolling the screen freezes. (Benji Fisher)
9 In mac_expandpath() check that handling of backslashes is done properly.
8 Standard Mac shortcuts are missing. (Amerige)
8 Handling of non-fixed width fonts is wrong. (Amerige)
"Small" problems:
7 VisVim can only open one file. Hard to solve: each opened file is passed
with a separate invocation, would need to use timestamps to know the
invocations belong together.
8 When giving a ":bwipeout" command a file-changed dialog may popup for this
buffer, which is pointless. (Mike Williams)
8 On MS-Windows ":make" doesn't show output while it is working. Use the
tee.exe from http://unxutils.sourceforge.net/ ? About 16 Kbyte in the
UnxUtils.zip archive.
Alternate one: http://www.pramodx.20m.com/tee_for_win32.htm, but Walter
Briscoe says it's not as good.
8 'fillchars' doesn't work for multi-byte characters.
9 Editing a XML file with a long line is extremely slow. Example file from
Randy Parker (Dec 13).
Limit the searching for items to a few hundred characters?
8 Command line completion: buffers "foo.txt" and "../b/foo.txt", completing
":buf foo<Tab>" doesn't find the second one. (George V. Reilly)
7 Output for ":scriptnames" and ":breaklist" should shorten the file names:
use "~/" when possible.
8 After using diff mode, ":set nodiff" doesn't restore the old foldmethod.
(Thomas S. Urban)
7 mb_off2cells() doesn't work correctly on the tail byte of a double-byte
character. (Yasuhiro Matsumoto) It should return 1 when used on a tail
byte, like for utf-8. Store second byte of double-byte in ScreenLines2[]
(like for DBCS_JPNU) and put a zero in the second byte (like for UTF-8).
8 'backupdir' and 'directory' should use $TMPDIR, $TMP and/or $TEMP when
defined.
7 Inside a function with "perl <<EOF" a line with "$i++" is recognized as an
":insert" command, causing the following "endfunction" not to be found.
Add skipping this perl construction inside function definitions.
7 When 'ttimeoutlen' is 10 and 'timeoutlen' is 1000, there is a keycode
"<Esc>a" and a mapping <Esc>x", when typing "<Esc>a" with half a second
delay should not be interpreted as a keycode. (Hans Ginzel)
7 ":botright 1 new" twice causes all window heights to be changed. Make the
bottom window only bigger as much as needed.
7 "[p" doesn't work in Visual mode. (David Brown)
7 The Cygwin and MingW makefiles define "PC", but it's not used anywhere.
Remove? (Dan Sharp)
9 The argument <f-args> of a user command doesn't handle backslashes
properly. "Cmd \ e" is one argument, "Cmd \\ e" still is one argument.
"Cmd \ e" is two arguments, first one ending in space. (Kontra Gergely)
8 The Japanese message translations for MS-Windows are called ja.sjis.po,
but they use encoding cp932. Rename the file and check that it still
works.
9 When a syntax region does not use "keepend" and a contained item does use
"extend", this makes the outer region stop at the end of the contained
region. (Lutz Eymers) Another example Nov 14 2002.
8 A very long message in confirm() can't be quit. Make this possible with
CTRL-C.
8 When the clipboard isn't supported: ":yank*" gives a confusing error
message. Specifically mention that the register name is invalid.
8 "gf" always excludes trailing punctuation characters. file_name_in_line()
is currently fixed to use ".,:;!". Add an option to make this
configurable?
8 'hkmap' should probably be global-local.
9 When "$" is in 'cpoptions' and folding is active, a "C" command changes
the folds and resets w_lines_valid. The display updating doesn't work
then. (Pritesh Mistry)
8 ":s!from!to!" works, but ":smagic!from!to!" doesn't. It sees the "!" as a
flag to to the command. Same for ":snomagic". (Johan Spetz)
8 When appending to a file and 'patchmode' isn't empty, a backup file is
always written, even when the original file already exists.
7 When using "daw" on the last word in a file and this is a single letter,
nothing is deleted. Should delete the letter and preceding white space.
9 When getting focus while writing a large file, could warn for this file
being changed outside of Vim. Avoid checking this while the file is being
written.
9 The "Error detected while processing modelines" message should have an
error number.
7 The message in bt_dontwrite_msg() could be clearer.
8 Unix: When libcall() fails there is no clear error message. Johannes
Zellner has a patch for this.
8 The script ID that is stored with an option and displayed with ":verbose
set" isn't reset when the option is set internally. For example when
'foldlevel' is set from 'foldlevelstart'.
8 In the fileformat dialog, "Cancel" isn't translated. Add a global
variable for this. (Eduardo Fernandez)
9 When editing a file with 'readonly' set, there is no check for an existing
swap file. Then using ":write" (without making any changes) doesn't give
a warning either. Should check for an existing swap file without creating
one.
7 On MS-DOS or MS-Windows, when editing the same file over a network, the
drive letter is different, thus an existing swap file doesn't generate a
warning. Use some flag to indicate the swap file is in the same directory
as the original file? Could make b0_fname[] start with a special
character like ">".
7 When 'showbreak' is set, the amount of space a Tab occupies changes.
Should work like 'showbreak' is inserted without changing the Tabs.
7 When there is a "help.txt" window in a session file, restoring that
session will not get the "LOCAL ADDITIONS" back.
7 When 'mousefocus' is set and switching to another window with a typed
command, the mouse pointer may be moved to a part of the window that's
covered by another window and we lose focus. Only move in the y
direction, not horizontally?
8 When using CTRL-D after ":help", restrict the number of matches to a
thousand, otherwise using CTRL-D without an argument takes too long.
8 ":hardcopy":
- Using the cterm_color[] table is wrong when t_colors is > 16.
- Need to handle unprintable characters.
- Win32: On a B&W printer syntax highlighting isn't visible. Perform
dithering to make grey text?
- support printing multi-byte characters. Patch from Motonobu Ichimura.
New (better) patch from Mike Williams (2004 Jan 20)
- Add a flag in 'printoptions' to add an empty page to make the total
number even. "addempty"? (Mike Williams)
- Should interpreted CTRL-L as a page break.
- Grey line numbers are not always readable. Add field in 'printoptions'.
Default to black when no syntax highlighting.
- Be able to print a window in diff mode.
- Be able to specify a colorscheme to use for printing. And a separate
one for B&W printing (if that can be detected).
8 In Visual block mode with 'lbr' set, a change command doesn't insert the
text in following lines where the linebreak changes.
9 dosinst.c: The DJGPP version can't uninstall the Uninstall registry key on
Windows NT. How to install a .inf file on Windows NT and how to detect
that Windows NT is being used?
8 When opening the same file on Unix and on MS-Windows, there is no
ATTENTION message, because the path in the swap file is different. Using
a relative path name will cause no ATTENTION for Vim 5.8.
Somehow add a flag that the swap file is in the same dir as the file?
8 When 'virtualedit' is "block,insert" and encoding is "utf-8", selecting a
block of one double-wide character, then "d" deletes only half of it.
8 When 'virtualedit' is set, should "I" in blockwise visual mode also insert
in lines that don't extend into the block?
8 With 'virtualedit' set, in Insert mode just after the end of line, CTRL-O
yh does not yank the last character of the line. (Pavel Papushev)
Doing "hl" first appears to make it work.
8 With 'virtualedit' set it's possible to move into the blank area from
'linebreak'.
8 With 'virtualedit' set and 'selection' "exclusive", a Visual selection
that ends in or after a tab, "d" doesn't delete (part of) the tab.
(Helmut Stiegler)
8 With 'virtualedit' set, a blockwise Visual selection that starts and ends
in a tab, "<" shifts too much. (Helmut Stiegler)
9 When jumping to a tag, the search pattern is put in the history. When
'magic' is on, the pattern may not work. Translate the pattern depending
on p_magic when putting it in the history? Alternative: Store value of
'magic' in history. (Margo)
9 optwin.vim: Restoring a mapping for <Space> or <CR> is not correct for
":noremap". Add "mapcmd({string}, {mode})? Use code from ":mkexrc".
9 incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
isn't updated).
9 term_console is used before it is set (msdos, Amiga).
9 Get out-of-memory for ":g/^/,$s//@/" on 1000 lines, this is not handled
correctly. Get many error messages while redrawing the screen, which
cause another redraw, etc.
8 [<C-I> doesn't work when '*' is in 'iskeyword'. find_pattern_in_path()
must escape special characters in the pattern.
8 Vim can overwrite a read-only file with ":w!". ":w" can't overwrite an
existing file, "w!" can, but perhaps not a read-only file? Then use
":w!!" for that.
Or ask for permission to overwrite it (if file can be made writable) and
restore file to readonly afterwards.
7 When compiled with "xterm_clipboard", startup can be slower and might get
error message for invalid $DISPLAY. Try connecting to the X server in the
background (forked), so that Vim starts up quicker? Connect as soon as
the clipboard is to be used (Visual select mode starts, paste from
clipboard)
8 For xterm need to open a connection to the X server to get the window
title, which can be slow. Can also get the title with "<Esc>[21t", no
need to use X11 calls. This returns "<Esc>]l{title}<Esc>\".
8 When the builtin xterm termcap contains codes that are not wanted, need a
way to avoid using the builtin termcap.
8 Xterm sends ^[[H for <Home> and ^[[F for <End> in some mode. Also
recognize these keys? Mostly useful for xterm simulators, like gnometerm.
See http://dickey.his.com/xterm/xterm.faq.html#xterm_pc_style.
8 '[ and '] should be set to start/end of line when using a linewise operator
(e.g., ":w").
8 CTRL-A can't handle big "long" numbers, they become negative. Check for
"-" character, if not present, use unsigned long.
8 Make it possible to disable the special meaning of "#" in the first column
for ">>".
8 Add suspending with CTRL-Z at the "more" prompt, and when executing a long
script in do_cmdline().
8 When using 'hidden', many swap files will be open. When Vim runs into the
maximum number of open files, error messages will appear. Detect that
this problem is present, and close any hidden files that don't have
changes.
8 With 'viminfo' set such that the ".viminfo" file is written on a FAT
filesystem, an illegal file name may be created: ".vim".
8 For each buffer that is opened, the viminfo file is opened and read to
check for file marks. This can be slow.
7 In xterm, recognize both vt100 and vt220 cursor keys. Change
add_termcode() to not remove an existing entry for a name, when it's
needed.
Need a generic solution to recognize different codes for the same key.
8 Core dump within signal function: gdb doesn't show stack backtrace! Option
to skip catch_signals()?
9 Repeating a "cw" with "." doesn't work if the text was pasted from the
clipboard. (Thomas Jones) It's because the menu/toolbar item exits Insert
mode and uses "gP". How to fix this without breaking inserting a block of
text?
8 In Replace mode pasting from the clipboard (using menu or toolbar) inserts
all the text. Add ":rmenu"?
8 Pasting with the mouse in Replace mode inserts the text, instead of
overwriting, when it is more than one line. Same for using <C-R>.
9 CTRL-E and CTRL-Y don't work in small window when 'so' is 4 and lines are
wrapping (Acevedo/in.226). E.g., when using CTRL-E, window height 7,
window might actually scroll down when last line of buffer is displayed.
--> Remember if the previous command was "cursor follows screen" or
"screen follow cursor" and use this in cursupdate().
7 tilde_replace() can only handle "~/", should also do "~user/".
Get the list of home directories (from /etc/passwd? Use getpwent()) and
use some clever algorithm to match a path with that. Find common strings
in the list?
8 When dragging status line with mouse, sometimes a jump when first clicking
on the status line (caused by 'winheight'). Select window on button up,
instead of on button down.
8 Dragging the status line doesn't scroll but redraw.
9 Evaluating 'statusline' in build_stl_str_hl() does not properly check for
reaching the end of the available buffer.
8 When performing incremental search, should abort searching as soon as a
character is typed.
8 When the value of $MAKE contains a path, configure can't handle this.
It's an autoconf bug. Remove the path from $MAKE to work around it.
8 How to set VIMRC_FILE to \"something\" for configure? Why does this not
work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
8 The temporary file is sometimes not writable. Check for this, and use an
alternate name when it isn't. Or add the 'temptemplate' option: template
for the temp file name ":set temptemplate=/usr/tmp/?????.tmp".
Also: Win32 version uses Windows temp directory, which might not work for
cygwin bash.
7 Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
Remember flags for backreferences.
7 When switching to Daylight Saving Time, Vim complains that a file has been
changed since last read. Can we use a function that uses GMT?
7 When completing an environment variable after a '$', check for file names
that contain a '$' after all have been found.
8 When "cm" termcap entry is missing, starting gvim shouldn't complain about
it. (Lohner) Try out with "vt100" entry, cm replaced with cX.
7 When an include file starts with "../", the check for already visiting
this file doesn't work. Need to simplify the file name.
8 On Sinix SYS_NMLN isn't defined. Include patch from Cristiano De Michele.
7 The names and comments for the arguments of do_browse() are confusing.
"dflt" isn't the default file name when "initdir" is not NULL and
"initdir" is the default path to be used.
7 When 'scrolloff' is exactly half the window height, "j" causes a scroll of
two lines at a time. "k" doesn't do this. (Cory T. Echols)
8 When write_viminfo() is used while there are many orphaned viminfo
tempfiles writing the viminfo file fails. Give a clear error message so
that the user knows he has to delete the files.
7 It's possible to redefine a script-local function with ":func
<SNR>123_Test()". (Krishna) Disallow this.
7 After ":%d" an undo reports the number of lines added as if there still
was one line.
I can't reproduce these (if you can, let me know how!):
9 NT 4.0 on NTFS file system: Editing ".bashrc" (drag and drop), file
disappears. Editing ".xyz" is OK. Also, drag&drop only works for three
files. (McCollister)
8 Motif: Tear-off menu item crashes Vim on some machines. (Netherton) It
works fine for me, maybe it's a Motif problem.
Problems that will (probably) not be solved:
- In a terminal with 'mouse' set such that the mouse is active when entering
a command line, after executing a shell command that scrolls up the
display and then pressing ":": Selecting text with the mouse works like
the display wasn't scrolled. Vim doesn't know how much the external
command scrolled up the display. Use Shift to select text.
- X windows: When $DISPLAY points to a X server where there is no access
permission, trying to connect to the X server causes an error message.
XtOpenDisplay() prints this directly, there is no way to avoid it.
- X windows: Setting 'guifontset' to an illegal value sometimes crashes Vim.
This is caused by a fault in a X library function, can't be solved in Vim.
- Motif: When adding a menu item "Find this &Symbol", the "s" in "this" will
be underlined, instead of in "Symbol". Motif doesn't let us specify which
character gets the highlighting.
- Moving the cursor removes color in color-xterm. This is a color-xterm
problem! color-xterm ver. 6.1 beta 3 and later work properly.
- In zsh, "gvim&" changes the terminal settings. This is a zsh problem.
(Jennings)
- Problem with HPterm under X: old contents of window is lost (Cosentino).
- Amiga: When using quickfix with the Manx compiler we only get the first 25
errors. How do we get the rest?
- Amiga: The ":cq" command does not always abort the Manx compiler. Why?
- Linux: A file with protection r--rw-rw- is seen readonly for others. The
access() function in GNU libc is probably wrong.
- MSDOS: When using smartdrive with write-back buffering, writing to a
readonly floppy will cause problems. How to test for a writable floppy
first?
- MSDOS: Both 16 and 32 bit versions: File name expansion doesn't work for
names that start with a dot. These used to be illegal file names.
- When doing a CTRL-Z and typing a command for the shell, while Vim is busy
(e.g. writing a file), the command for the shell is sometimes eaten by Vim,
because the terminal mode is changed from RAW to CBREAK.
- An old version of GNU tgoto can't handle the terminfo code for "AF". The
"%p1" is interpreted as "%p" and "1", causing color not to be working.
Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
(Benzinger).
- When running an external command from the GUI, typeahead is going to that
program, not to Vim. It looks like the shell eats the characters, Vim
can't get back what the external command didn't use.
- Win32 GUI: Error code from external command not returned in shell_error.
It appears that cmd.exe and command.com don't return an error code.
- Win32 GUI: The Toolbar is a bit too high when the flat style is being
used. We don't have control over the height of the Toolbar.
- Win32: All files created on the day of switching from winter to summer
time cause "changed since editing started" messages. It goes away when
the file is written again the next day, or the timezone is adjusted.
DJGPP version is OK. (Zaimi) Looks like a problem with the Win32 library.
Rebooting doesn't help. Time stamps look OK in directory. (Penn)
Is this on FAT (stores wall clock time) or NTFS (stores UTS)?
- SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal
scroll bar for the "files" selection. This is a problem in the Motif
libraries, get a patch from Sun.
- Solaris 2.6 with GTK and Perl: gvim crashes when started. Problem with X
input method called from GDK code. Without Perl it doesn't crash.
- VMS: Vimdiff doesn't work with the VMS diff, because the output looks
different. This makes test 47 fail. Install a Unix-compatible diff.
- VMS v7.1 and older: Tests 21 and 32 fail. From VMS v7.1-2 and newer Vim
does not have this behavior. (Zoltan Arpadffy)
- Win32 GUI: mouse wheel always scrolls rightmost window. The events arrive
in Vim as if the rightmost scrollbar was used.
- GTK with Gnome: Produces an error message when starting up:
Gdk-WARNING **: locale not supported by C library
This is caused by the gnome library gnome_init() setting $LC_CTYPE to
"en_US". Not all systems support this locale name, thus causing the
error. Hopefully a newer version of GTK/Gnome fixes this problem.
- GTK 2: With this mapping the hit-enter prompt is _sometimes_ below the
screen, at other times there is a grey area below the command line:
:nmap <F11> :if &guioptions=~'m' \| set guioptions-=m \| else \| set guioptions+=m \| endif<cr>
- GTK: When pasting a selection from Vim to xclipboard gvim crashes with a
ABRT signal. Probably an error in the file gdkselection.c, the assert
always fails when XmbTextListToTextProperty() fails. (Tom Allard)
- When using an xterm that supports the termresponse feature, and the 't_Co'
termcap option was wrong when Vim started, it will be corrected when the
termresponse is received. Since the number of colors changes, the
highlighting needs to be initialized again. This may cause color defined
in the vimrc file to be lost.
- On Windows NT 4.0 the number of files passed to Vim with drag&drop and
"Edit with Vim" is limited. The maximum command line length is 255 chars.
*extensions-improvements*
For version 6.3:
9 Use the latest NSIS 2.0 installer. Patch from Rene de Zwart. (18 dec
2002) Script from Alejandro Lopez-Valencia (2004 Feb 29).
Also check work from Steve Hall for NSIS.
Add registry keys in "Applications" so that it appears in the "open with"
list. (Giuseppe Bilotta, Nov 2003)
Also include the console binaries (for Win 98 and XP). Using LZMA
compression the size increase is only 2x 100K.
- Give a warning when highlight group names use something else than ASCII
letters, digits and "_".
- Include kvim patch? http://freenux.org/vim/ Mickael Marchand, 2003 Jan 29
- Patch to add highlighting for whitespace. (Tom Schumm, 2003 Jul 5)
use the patch that keeps using HLF_8 if HLF_WS has not
been given values.
Add section in help files for these highlight groups?
Documentation:
8 Extend usr_27.txt a bit. (Adam Seyfarth)
9 Merge in ideas from ~/vim/patches/tutor.txt (Gabriel Zachmann)
7 Add a section on debugging scripts in the user manual.
9 Make the Reference Manual more precise. For each command mention:
- change to cursor position and curswant
- if it can be undone (u/CTRL-R) and redone (.)
- how it works for folded lines
- how it works with multi-byte characters
9 In change.txt, remark about Javadoc isn't right. Right alignment would
work too.
8 Spread the windows commands over the other files. For example, ":stag"
should be with ":tag". Cross-link with tags to avoid too much double
text.
7 Windows: When a wrong command is typed with an ALT key, give a hint to
look at the help for 'winaltkeys'.
7 Add a help.vim plugin that maps <Tab> to jump to the next tag in || and
<C-Tab> (and <S-Tab>) to the previous tag.
- Check text editor compendium for vi and Vim remarks.
Help:
- When the user manual has been translated, how to make ":help" jump to tags
inside it?
- Append ".xx" to each tag in the translated help file (e.g., .it, .de)
- Add the 'helplang' option, user can set it to "it" or "de".
- The ":help" command appends ".it" or ".de" to the tag, when it doesn't
exist use the tag without appending.
- First try using the ":help" argument literally, before using it as a
pattern. And then match it as part of a tag.
- When a help item has multiple matches make it possible to use ":tn" to go
to the other matches.
- Support a way to view (and edit) .info files.
- Default mapping for help files: <Tab> to position cursor on next |:tag|.
- When hitting <Esc> or CTRL-C in Normal mode, give a message to help novice
users to get out: "Type :q! to quit Vim".
- Implement a "sticky" help window, some help text lines that are always
displayed in a window with fixed height. (Guckes) Use "~/.vimhelp" file,
user can edit it to insert his favorite commands, new account can contain a
default contents.
- Make 'winminheight' a local option, so that the user can set a minimal
height for the help window (and other windows).
- ":help :s^I" should expand to ":help :substitute".
- Make the help key (<F1>) context sensitive?
- Learn mode: show short help while typing commands.
"make test":
- Find a way to skip tests that can't be done. For non-Unix systems, but
also for e.g. the Perl interface.
User Friendlier:
8 Windows install with NSIS: use bzip2 compression for a smaller file.
8 Windows install with install.exe: Use .exe instead of .bat files for
links, so that command line arguments are passed on unmodified? (Walter
Briscoe)
8 Windows install: Be able to associate Vim with a selection of file types?
8 Windows uninstall: Have uninstal.c delete the vimfiles directories that
dosinst.c creates. List the contents of the directory (recursively) if
the user asks for it. Requires an implementation of "rm -rf".
8 Remember the name of the vimrc file that was used (~/.vimrc, $VIM/_vimrc,
$HOME/_vimrc, etc.) and add "edit vimrc" to the File menu.
- Add a way to save local settings and mappings into a new plugin file.
":mkplugin <file>"?
8 Add ":plugininstall" command. Can be used to install a plugin file that
includes documentation. Let the user select a directory from
'runtimepath'.
" Vim plugin
<main plugin code>
" >>> plugin help start <<<
<plugin docs>
- Add mappings local to a window: ":map <window> ..."?
9 Add buffer-local menu. Should offer a choice between removing the menu or
disabling it. Be careful that tear-offs don't disappear (keep one empty
item?).
Alternative: use BufEnter and BufLeave autocommands.
8 Add file locking. Lock a file when starting to edit it with flock() or
fcntl(). This patch has advisory file locking while reading/writing the
file: ~/vim/patches/kahn_file_locking .
8 make a vimtutor script for Amiga and other systems.
7 Add the arguments for configure to the ":version" output?
Diff mode:
8 Add a command to stop diff mode: ":set nodiff fdc = 0 noscrollbind"
8 Use diff mode to show the changes made in a buffer (compared to the file).
Use an unnamed buffer, like doing:
new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
7 Add cursor-binding: when moving the cursor in one diff'ed buffer, also
move it in other diff'ed buffers, so that CTRL-W commands go to the same
location.
Folding:
(commands still available: zg zG zI zJ zK zp zP zq zQ zV zw zW zy zY;
secondary: zB zS zT zZ)
8 Add different highlighting for a fold line depending on the fold level.
(Noel Henson)
8 When a closed fold is displayed open because of 'foldminlines', the
behavior of commands is still like the fold is closed. How to make the
user aware of this?
8 Add an option 'foldskip' with values like 'foldopen' that specifies which
commands skip over a closed fold.
8 "H" and "L" count buffer lines instead of window lines. (Servatius Brandt)
8 Add a way to add fold-plugins. Johannes Zellner has one for VB.
7 When using 2html.vim, also reproduce folds as you can see them. When
someone doesn't want the folds he can disable them before converting.
7 When using manual folding, the undo command should also restore folds.
- Allow completely hiding a closed fold. Require showing a character in
'foldcolumn' to avoid the missing line goes unnoticed.
- When pressing the down arrow of a scrollbar, a closed fold doesn't scroll
until after a long time. How to make scrolling with closed folds
smoother?
- When creating a session, also store folds for buffers in the buffer list,
using the wininfo in wi_folds.
- 'foldmethod' "textobject": fold on sections and paragraph text objects.
- Add 'hidecomment' option: don't display comments in /* */ and after //.
- "zu": undo change in manual fold. "zU" redo change in manual fold. How to
implement this?
- "zJ" command: add the line or fold below the fold in the fold under the
cursor.
- 'foldmethod' "syntax": "fold=3": set fold level for a region.
- Can set 'foldtext' to empty string: don't display any line. How to
implement this?
- Apply a new foldlevel to a range of lines. (Steve Litt)
- Have some way to restrict commands to not folded text. Also commands like
searches.
Multi-byte characters:
9 When the tail byte of a double-byte character is illegal (e.g., a CR), the
display is messed up (Yasuhiro Matsumoto). Should check for illegal
double-byte characters and display them differently (display each single
byte).
8 Add an item in 'fileencodings' to check the first line of an XML file for
the encoding. <?xml version="1.0" encoding="UTF-8"?>
8 The quickfix file is read without conversion, thus in 'encoding'. Add an
option to specify the encoding of the errorfile and convert it. Also for
":grep".
8 When a file was converted from 'fileencoding' to 'encoding', a tag search
should also do this on the search pattern. (Andrzej M. Ostruszka)
7 When converting a file fails, mention which byte could not be converted,
so that the user can fix the problem.
8 The X11 clipboard supports the Vim selection for char/line/block mode, but
this doesn't store the encoding. Can't copy/paste between two Vims with a
different 'encoding'.
8 Add configure option to be able to disable using the iconv library. (Udo
Schweigert)
8 Add patch from Muraoka Taro (Mar 16) to support input method on Mac?
9 'aleph' should be set to 1488 for Unicode. (Zvi Har'El)
8 Should add test for using various commands with multi-byte characters.
- Include flipcase patch: ~/vim/patches/wall.flipcase2 ? Make it work for
multi-byte characters.
8 'infercase' doesn't work with multi-byte characters.
8 toupper() function doesn't handle byte count changes.
8 Support four composing characters, needed for Hebrew. (Ron Aaron)
8 "ga" should show all composing characters, also if there are more than 2.
7 When searching, should order of composing characters be ignored?
8 Should implement 'delcombine' for command line editing.
8 Detect overlong UTF-8 sequences and handle them like illegal bytes.
8 ":s/x/\u\1/" doesn't work, making uppercase isn't done for multi-byte
characters.
8 UTF-8: "r" in Visual mode doesn't take composing characters.
8 UTF-8: When there is a precomposed character in the font, use it instead
of a character and a composing character. See xterm for an example.
7 When a character can't be displayed, display its digraph instead.
'display' option to specify this.
7 Use ideas for nl_langinfo() from Markus Kuhn in enc_default():
(www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c)
- GTK and Win32: Allow selecting fonts for 'guifontset' with the
fontselector somehow.
- GTK and Win32: make it possible to set the font for the menu to make it
possible to have 'encoding' different from the current locale.
- dbcs_class() only works for Japanese and Korean. Implement this for
other encodings. The "euc-jp" and "euc-kr" choices might be wrong.
- Find some way to automatically select the right GUI font or fontset,
depending on the default value of 'encoding'.
Irrelevant in the GTK+ 2 GUI so long as UTF-8 is used.
For Windows, the charset_pairs[] table could be used. But how do we know
if a font exists?
- Do keyboard conversion from 'termencoding' to 'encoding' with
convert_input() for Mac GUI, RiscOS GUI, BeOS GUI.
- Add mnemonics from RFC1345 longer than two characters.
Support CTRL-K _{mnemonic}_
- Make 'langmap' accept multi-byte characters.
- Do we need the reverse of 'keymap', like 'langmap' but with files and
multi-byte characters? E.g., when using a Russian keyboard.
- Add the possibility to enter mappings which are used whenever normal text
could be entered. E.g., for "f" command. But not in Normal mode. Sort
of opposite of 'langmap'. Use ":tmap" command?
- When breaking a line, take properties of multi-byte characters into
account. The "linebreak" program from Bruno Haible can do it:
ftp://ftp.ilog.fr/pub/Users/haible/gnu/linebreak-0.1.tar.gz
But it's very complicated...
Printing:
- Add "page width" to wrap long lines.
- Win32: use a font dialog for setting 'printfont'. Can reuse the code for
the 'guifont' dialog, put the common code in a separate function.
- Win32: when 'printfont' is empty use 'guifont'.
- Unix: Use some dialog box to do the obvious settings (paper size, printer
name, portrait/landscape, etc).
- Win32: add options to print dialog. Patch from Vipin Aravind.
- PostScript: only works for 7-bit ASCII and EBCDIC. Should support
different 'encoding' values somehow.
- Allow specifying the paper size, instead of using a standard size. Same
units as for the margins.
- Support right-to-left text?
8 Make the foreground color darkening function preserve the hue of the
color.
Syntax highlighting:
8 Make ":syn off" use 'runtimepath' instead of $VIMRUNTIME. (Gary Johnson)
Should do the same for ":syn on" and ":syn manual".
8 Support "containedin" argument for ":syn include", so that the defined
cluster can be added to existing syntax items.
8 C syntax: Don't highlight {} as errors inside () when used like this:
"({ something })", often used in GCC code.
8 When editing a new file without a name and giving it a name (by writing
it) and 'filetype' is not set, detect the filetype. Avoid doing it for
":wq file".
8 Make conversion to HTML faster (Write it in C or pre-compile the script).
9 There is still a redraw bug somewhere. Probably because a cached state is
used in a wrong way. I can't reproduce it...
7 Make syntax keyword table configurable. Set number of bits used with
":syn clear [hashbits]", so that we don't need to reallocate the table.
minimal 4 bits, maximal 16. (Campbell)
7 Be able to change only the background highlighting. Useful for Diff* and
Search highlighting.
8 Allow the user to add items to the Syntax menu sorted, without having to
change this for each release.
8 Add a "matchcontains" for regions: items contained in the start or end
pattern, but not in the body.
8 Add a "keepend-contained" argument: Don't change the end of an item this
one is contained in. Like "keepend" but specified on the contained item,
instead of the containing item.
8 For keywords, allow to define the size of the hash table with ":syn
clear". Change KHASH_ defines into variables stored in buffer struct.
Use something else than linear linked list from the hash table. (Campbell)
8 cpp.vim: In C++ it's allowed to use {} inside ().
8 Some syntax files set 'iskeyword'. When switching to another filetype
this isn't reset. Add a special keyword definition for the syntax rules?
When this is done, use vim.vim syntax highlighting for help file examples,
but without ":" in 'iskeyword' for syntax.
8 Add specific syntax item to match with parens/braces that don't have a
"%" match. :syntax nomatch cMatchError (,{,[,),},] [contained]
8 Highlight the text between two matching parens (e.g., with a grey
background) when on one of the parens or in between them.
Or highlight the matching paren when the cursor is on one.
8 Add a command to jump to the next character highlighted with "Error".
8 When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
sequences. Add remark in docs that :if 'term' == "term-name" should be
used.
8 Add @spell cluster to String and Comment groups for many languages. Will
allow spell checking. (Fleiner)
8 When listing syntax items, try to sort the keywords alphabetically. And
re-insert the [] if possible.
8 Make it possible to use color of text for Visual highlight group (like for
the Cursor).
8 "fg" and "bg" don't work in an xterm. Get default colors from xterm with
an ESC sequence. Ideas in: ~/vim/patches/vikas.xtermcolors .
8 Make it possible to only highlight a sub-expression of a match. Like
using "\1" in a ":s" command.
8 Support for deleting syntax items:
:syn keyword cTodo remove this
:syn match cTodo remove "pattern"
:syn region cString remove start="this" end="that"
8 Add possibility to sync on something else, when the syncing in one way
doesn't find match. For HTML: When no {script} is found, try looking for
a '<'. (Fleiner)
7 Replace the synchronizing method with a state machine specification?
Should be able to start at any line in the file, search forwards or
backwards, and use the result of matching a pattern.
7 Use parsing like awk, so that e.g., a ( without a matching ) can be
detected.
8 Make it possible to use "inverted" highlighting, invert the original
character. For Visual mode. (xterm-selection already does this).
8 Highlight non-printable characters with "SpecialChar", linked to
"Special". Display them with the digraph characters, if possible.
7 Add "DefaultFG" and "DefaultBG" for the colors of the menu. (Martin
Dalecki has a patch for Motif)
8 Highlight the clipboard-selection with a highlight group.
8 Be able to reset highlighting to its original (default) values.
7 Be able to write current highlighting to a file as commands, similar to
":mkvimrc".
8 Improve c.vim:
- Add check for unterminated strings, with a variable to switch it on:
"c_strict_ansi".
- Detect unbalanced "#endif". Requires looking back a long way...
8 Add an option to restrict the updating of syntax highlighting to the
current line while in Insert mode.
8 When guessing value of 'background', the syntax file has already been
loaded (from the .gvimrc). After changing 'background', load it again?
8 Add ":syn resync" command, to re-parse the whole file until the current
display position.
8 Should support "me" offset for a region start pattern. To be used to
allow searching for the end pattern inside the match of the end pattern.
Example: syn region pikeXX start="([^{]" end=")" should work on "()".
8 When using a regexp for "contains=", should delay matching with it until
redrawing happens. Set a flag when a group is added, check this flag when
highlighting starts.
7 Add "semitrans": Add highlighting. E.g., make the text bold, but keep the
colors. And add colors, so that Green+Red becomes Yellow.
E.g. for this html:
<B> bold text <I> italic+bold text </B> italic text </I>
7 Wild idea: Not only set highlighting, but also change what is displayed
(e.g., remove characters, so that "<B>bold</B>" can be shown as "bold"):
:syn region boldstuff start="<B>" display="" end="</B>" display=""
7 CTRL-] checks the highlight group for finding out what the tag is.
7 Add an explanation how a list of words can be used to highlight misspelled
words.
8 Add spell checking. Use "ispell -a" somehow.
~/vim/patches/wm_vim-5_4d.zip can be used as an example (includes ispell
inside Vim). Gautam Iyer has an example with "aspell".
7 Command line completion for ":find" should search in 'path'.
8 Add more command line completion for :syntax.
8 Add more command line completion for :highlight.
8 Add more command line completion for :sign.
7 Should find a better way to parse the :syntax and :highlight commands.
Use tables or lists that can be shared by parsing for execution and
completion?
8 Add ColorSchemePost autocommand event, so that scripts can set up their
highlighting. (Salman Halim)
7 Add a few sets of colors (e.g. Borland Turbo C one). With a menu to
select one of the sets.
8 Add offsets to sub-matches: "\(a*\) *"he=e1-1
'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
2, etc.
8 In Insert mode, when there are typeahead characters, postpone the
highlighting (for "." command).
8 Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
For example: What about a line that starts with / / and contains * /?
8 Ignore / * and * / inside strings, when syncing.
7 Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
ISP, LDL, Icon, ratfor. And check "nedit/source/highlight.c".
6 Add possibility to have background color continue until the right edge of
the window. Useful for comment blocks and function headings. (Rogall)
- Make it possible to add "contains" items for all items in a group. Useful
when extending an already existing syntax file.
- Add line-continuation pattern for non-syncing items too?
- Add possibility to highlight specific columns (for Fortran). Or put a
line in between columns (e.g. for 'textwidth').
Patch to add 'hlcolumn' from Vit Stradal, 2003 June 2:
http://vitas.matfyz.cz/vim/vim62-hlc.patch
- Add possibility to highlight the whole line, including the right margin
(for comment blocks).
- Add 'hlmatch' option: List of flags:
'c': highlight match for character under the cursor.
'b': highlight the previous (, and its match.
'a': highlight all text from the previous ( until its match.
Also for {}, <>, etc.?
'e': highlight all braces without a match (slow?)
OR: add an argument "cursor" to the syntax command, which means that the
region/match/keyword is only highlighted when the cursor is on it.
(Campbell)
Or do it like Elvis: define text objects and how to highlight them around
the cursor. (Iain Truskett)
7 Make it possible to use all words in the tags files as Keyword.
Can also be done with a script (but it's slow).
7 Make it possible to call a ":" command when a match is found. Should
allow for adding keywords from the text (e.g. variables that are set).
And allows for sections with different highlighting.
7 Add highlight group for commandline: "Commandline". Make sure it
highlights the command line while typing a command, and any output from
messages. And external commands?
8 Make a version that works like less, but with highlighting: read stdin for
text, exit at end of file, don't allow editing, etc. moreim? lessim?
7 SpecialKey highlighting overrules syntax highlighting. Can't give an
unprintable char another color. Would be useful for ^M at end of line.
Built-in script language:
8 Add referring to key options with "&t_xx". Both for "echo &t_xx" and
":let &t_xx =". Useful for making portable mappings.
8 Allow range for ":exec". Pass it on to the executed command. (Webb)
8 exists("&&option") tests if 'option' is actually implemented. Useful for
'shellslash', for example.
7 Be able to call a function while passing on a variable number of
arguments:
:function Foo(abc, ...)
: call Bar(a:abc, a:*)
Charles Campbell has a patch for this
8 Have a look at VSEL. Would it be useful to include? (Bigham)
8 Add ":fungroup" command, to group function definitions together. When
encountered, all functions in the group are removed. Suggest using an
obscure name to avoid name clashes. Require a ":fungroup END" in the same
sourced file? Assume the group ends at the end of the file. Handle
nested packages?
Alternative: Support packages. {package-name}:{function-name}().
Packages are loaded automatically when first used, from
$VIMRUNTIME/packages (or use a search path).
7 Make globpath() also work with "**" and upwards search. (Brian Medley)
7 Pre-parse or compile Vim scripts into a bytecode. Put the bytecode with
the original script, with an ":if has('bytecode')" around it, so that it's
only used with a Vim that supports it.
7 Add "n" flag to search() function, just like searchpair(). (Alexey
Marinichev)
8 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
Aric Blumer has a patch for this.
7 Add argument to winwidth() to subtract the space taken by 'foldcolumn',
signs and/or 'number'.
8 Add functions:
multibyteidx(string, idx) Byte index in multi-byte character.
Patch by Ilya Sher, 2003 Feb 25
menuname({menu_name}, {idx}) get name of menu. menuname("", 1)
returns "File", menuname("File", 1) returns
"Open...".
menuarg({menu_name}) return argument of a menu item by name.
mapname({idx}, mode) return the name of the idx'th mapping.
Patch by Ilya Sher, 2004 Mar 4.
match({pat}, {string} [,start] [,count]) get index of count'th match
Patch by Ilya Sher (2004 Feb 23)
sprintf(format, arg, ..) How to prevent a crash???
mousex() mousey() get position of mouse pointer (patch by Ross
Presser)
attributes() return file protection flags "drwxrwxrwx"
mkdir(dir) Create directory
copy(from, to) Copy a file
perl(cmd) call Perl and return string
shorten(fname) shorten a file name, like home_replace()
input(prompt, complete) like input() but do specified completion
virtualmode() add argument to obtain whether "$" was used in
Visual block mode.
tagtype(tag) get type of tag (also checks if it exists)
getacp() Win32: get codepage (Glenn Maynard)
find() find file in 'path' (patch from Johannes
Zellner 2001 Dec 20)
realname() Get user name (first, last, full)
user_fullname() patch by Nikolai Weibull, Nov
3 2002)
getfperm() file permissions, in form "rwxrwxrwx"
(patch from Nikolai Weibull 2003 Jan 13)
getftype() "file", "dir", "link", "other"?
(patch from Nikolai Weibull 2003 Jan 13)
setbufline() set line in any buffer (patch from Yegappan
Lakshmanan, 2003 Jan 21)
getbufline() get line from any buffer
deletebufline() delete line in any buffer
appendbufline() append line in any buffer
winnr("$") Get number of windows. (patch from Nikolai
Weibull 2003 Jan 13) (another patch from
Yegappan Lakshmanan, 2003 Aug 31)
search() Add optional offset argument.
Add 'n' flag. (patch from Nikolai Weibull
2003 Jan 13)
sort() Sort a newline-separated string. Also:
":sort".
libcall() Allow more than one argument.
libcallext() Like libcall(), but using a callback function
to allow the library to execute a command or
evaluate an expression.
confirm() add "flags" argument, with 'v' for vertical
layout and 'c' for console dialog. (Haegg)
Flemming Madsen has a patch for the 'c' flag
(2003 May 13)
system({cmd}, {expr}) Filter {expr} through the shell command
{cmd} and return the result.
(Patch from Yegappan Lakshmanan)
raisewin() raise gvim window (see HierAssist patch for
Tcl implementation ~/vim/HierAssist/ )
gettext() Translate a message. (Patch from Yasuhiro
Matsumoto) How to get the messages into the
.po files?
strrep() Repeat a string (patch from Christophe Poucet,
2003 Sep 12, also contains XX)
char2hex() convert char string to hex string. XX
hex2char() convert hex string to char string. XX
7 Make bufname("'0") return the buffer name from mark '0. How to get the
column and line number? col("'0") currently returns zero.
8 argc() returns 0 when using "vim -t tag". How to detect that no file was
specified in any way? To be able to jump to the last edited file.
8 Pass the executable name to the Vim scripts in some way. As v:argv0?
8 Add command arguments with three dashes, passed on to Vim scripts.
8 When starting to source a vim script, delete all functions that it has
previously defined? Avoids using ":fun!" all the time.
7 Add optional arguments to user functions:
:func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)
6 User functions: Functions local to buffer "b:func()"?
8 Add ":let var[{expr}] = {expr}". When past the end of "var" just ignore.
8 The "= register should be writable, if followed by the name of a variable,
option or environment variable.
8 ":let &option" should list the value of the option.
7 Add synIDlist(), making the whole list of syntax items on the
stack available (separated with '\n').
8 Add autocommand-event for when a variable is changed:
:au VarChanged {varname} {commands}
8 Add "has("gui_capable")", to check if the GUI can be started.
8 Add possibility to use variables like registers: characterwise (default),
linewise (when ending in '\n'), blockwise (when ending in '\001'). reg0,
rega, reg%, etc. Add functions linewise({expr}), blockwise({expr}) and
charwise({expr}).
7 Make it possible to do any command on a string variable (make a buffer
with one line, containing the string). Maybe add an (invisible) scratch
buffer for this?
result = scratch(string, command)
result = apply(string, command)
result = execute(string, command)
"command" would use <> notation.
Does scratch buffer have a number? Or re-use same number?
7 Add function to generate unique number (date in milliseconds).
7 Automatically load a function from a file when it is called. Need an
option for the search path. (Sekera)
7 Include support for arrays? Patch from Robert Webb.
This is restricted to fixed-size arrays indexed by number. Better: Use
associative arrays: a[5] = 3, a["some"] = 'x'. Implement by translating
into ordinary variables: a[5] is "-a-5", a["some"] is "a-some", a[5][6] is
"a-5-6". But how to do array assignment and concatenation?
Robustness:
8 This pattern in syntax/java.vim causes a recursive call of regmatch():
syn match javaStringError +"\([^"\\]\|\\.\)*$+
A long line with a " in it can cause a crash when it runs out of stack
space (on systems where this isn't caught). How can we catch this for
more systems?
Performance:
8 Loading plugins takes startup time. Only load the part that is used to
trigger the rest, and load the rest when it's needed?
8 Turn b_syn_ic and b_syn_containedin into b_syn_flags.
9 Loading menu.vim still takes quite a bit of time. How to make it faster?
8 in_id_list() takes much time for syntax highlighting. Cache the result?
7 setpcmark() shifts the jumplist, this takes quite a bit of time when
jumping around. Instead use an index for the start?
8 When displaying a space with only foreground highlighting, it's the same
as a space without attributes. Avoid displaying spaces for the "~" lines
when starting up in a color terminal.
8 Avoid alloc() for scratch buffer use, esp. in syntax.c. It's very slow on
Win16.
9 Setting GUI options in the console (e.g., 'guifont') should not cause a
redraw.
8 Profiling shows that in_id_list() is used very often for C code. Can this
function be improved?
8 For an existing file, the page size of the swap file is always the
default, instead of using the block size of the device, because the swap
file is created only after setting the block size in mf_open(). How can
this be improved?
8 Set default for 'ttyscroll' to half a screen height? Should speed up
MS-DOS version. (Negri)
7 C syntax highlighting gets a lot slower when adding a region for folding
from { to }. (Charles Campbell) Inserting a "{" is very slow. (dman)
7 HTML syntax highlighting is slow for long lines. Try displaying
http://www.theregister.co.uk/content/4/22908.html. Andre Pang
7 Check how performance of loading the wordlist can be improved (adding a
lot of abbreviations).
7 DOS console: Add t_DL support, to make scrolling faster.
7 Compile Ex commands to byte codes. Store byte codes in a vim script file
at the end, after "compiled:. M