blob: 38df7605e15a9df5845b14bfbedfdf6eb9f65e7f [file] [log] [blame]
Bram Moolenaar20f90cf2011-05-19 12:22:51 +02001*todo.txt* For Vim version 7.3. Last change: 2011 May 19
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7 TODO list for Vim *todo*
8
9This is a veeeery long list of known bugs, current work and desired
10improvements. To make it a little bit accessible, the items are grouped by
11subject. In the first column of the line a classification is used to be able
12to look for "the next thing to do":
13
14Priority classification:
159 next point release
168 next release
177 as soon as possible
186 soon
195 should be included
204 nice to have
213 consider including
222 maybe not
231 probably not
24- unclassified
25
26 *votes-for-changes*
27See |develop.txt| for development plans. You can vote for which items should
28be worked on, but only if you sponsor Vim development. See |sponsor|.
29
30 *known-bugs*
31-------------------- Known bugs and current work -----------------------
32
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020033Go through more coverity reports.
Bram Moolenaar662db672011-03-22 14:05:35 +010034
Bram Moolenaar20f90cf2011-05-19 12:22:51 +020035Hong Xu: I think src/Make_ro.mak should also be removed.
36Two patches 2011 May 15
37
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020038Crash in autocomplete, valgrind log. (Greg Weber, 2011 Apr 22)
39
Bram Moolenaar446beb42011-05-10 17:18:44 +020040Ex command ":s/ \?/ /g" splits multi-byte characters into bytes. (Dominique
41Pelle, 2011 May 7).
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020042
Bram Moolenaar446beb42011-05-10 17:18:44 +020043In command line window ":close" doesn't work properly. (Tony Mechelynck, 2009
44Jun 1)
45Patch by Jean-Rene David, 2011 Apr 30.
Bram Moolenaard58e9292011-02-09 17:07:58 +010046
Bram Moolenaar446beb42011-05-10 17:18:44 +020047When "b" is a symlink to directory "a", resolve("b/") doesn't result in "a/".
48(ZyX, 2011 Feb 12)
49Patch by Jean-Rene David, 2011 Apr 30.
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020050
Bram Moolenaard58e9292011-02-09 17:07:58 +010051Patch to set v:register default depending on "unnamed" in 'clipboard'. (Ingo
52Karkat, 2011 Jan 16)
53
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020054Patch to add 'cscoperelative'. (Raghavendra Prabhu, 2011 Apr 18)
55
Bram Moolenaar20f90cf2011-05-19 12:22:51 +0200569 "} else" causes following lines to be indented too much. (Rouben
57 Rostamian, 2008 Aug 30)
58Patch by Lech Lorens, 2011 May 16, with more tests.
59
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020060New syntax file for dnsmasq. (Thilo Six, 2011 Apr 18)
61
62Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
63
Bram Moolenaard58e9292011-02-09 17:07:58 +010064Patch for:
65 InsertCharPre - user typed character Insert mode, before inserting the
66 char. Pattern is matched with text before the cursor.
67 Set v:char to the character, can be changed.
68 (not triggered when 'paste' is set).
69(Jakson A. Aquino, 2011 Jan 29)
70
71Patch for "No errors" showing up after QuickfixCmdPost. (Mike Lundy, 2011 Feb
723)
73
74Patch for cmdline completion of ":lang". (Dominique Pelle, 2011 Feb 5)
75
Bram Moolenaard58e9292011-02-09 17:07:58 +010076Patch for adding 's' option to 'cino', C++ namespace indenting. (Konstantin
77Lepa, 2011 Jan 18)
78
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +010079Patch to support ":!start /b cmd". (Xaizek, 2010 Dec 22)
Bram Moolenaar166af9b2010-11-16 20:34:40 +010080
Bram Moolenaar20f90cf2011-05-19 12:22:51 +020081Patch for syntax "extend" not working correctly. (Ben Schmidt, 2011 May 15)
82
Bram Moolenaard58e9292011-02-09 17:07:58 +010083Patch to build with GTK on Mac. (Ben Schmidt, 2011 Jan 18)
84Use another name instead of FEAT_GUI_ELSEWHERE.
85
86Patch for xxd makefile to avoid generating .dSYM files. (Ben Schmidt, 2011 Jan
8718)
88
89Patch to show sign for folded text. (Christian Brabandt, 2011 Jan 12)
90Method to reproduce it: Jan 16.
91
92Patch to improve optwin.vim. (ZyX, 2011 Jan 29)
93
Bram Moolenaar00654022011-02-25 14:42:19 +010094Patch for Python 3 support. (lilydjwg, 2011 Feb 24)
95
Bram Moolenaar446beb42011-05-10 17:18:44 +020096Patch to make putting from clipboard linewise when the text ends in a newline.
97(Sung Pae) Do we want this?
98
Bram Moolenaar20f90cf2011-05-19 12:22:51 +020099Patch to add third dict argument to sort(). (ZyX, 2011 May 15)
100
Bram Moolenaaradc21822011-04-01 18:03:16 +0200101Building the MingW version without clipboard but with multi-byte doesn't
102work. (Bill Lam, 2010 Sep 18)
103
104Patch for handling of NL in substitute() with \= expression. (Motoya Kurotsu,
1052011 Mar 16) Update Mar 24.
106
107Patch to disallow fork() when __APPLE__ is defined. (Hisashi T Fujinaka, 2010
108Nov 25)
109
Bram Moolenaar446beb42011-05-10 17:18:44 +02001107 Output for ":scriptnames" and ":breaklist" should shorten the file names:
111 use "~/" when possible.
112Patch by Jean-Rene David, 2011 May 1.
113
114Patch for better #if 0 syntax highlighting for C code. (Ben Schmidt, 2011 Jan
11520)
116Change to C syntax folding to make it work much faster, but a bit less
117reliable. (Lech Lorens, 2009 Nov 9) Enable with an option?
118Most time is spent in in_id_list().
119Updated to merge both patches. (Ben Schmidt, 2011 May 2)
120
Bram Moolenaaradc21822011-04-01 18:03:16 +0200121GTK: Patch to fix menu popping down. (Hong Xu, 2010 Dec 4, Dec 5)
122Update 2011 Feb 3.
123
124Patch to use pipes on Win32. (Vincent Berthoux, 2011 Feb 28)
125Update Mar 1 using 'shelltemp'.
126
Bram Moolenaar446beb42011-05-10 17:18:44 +0200127Patch to support UTF-8 for Hangul. (Shawn Y.H. Kim, 2011 May 1)
128Needs more work.
129
Bram Moolenaaradc21822011-04-01 18:03:16 +0200130"gh<Del>" deletes the current line, except when it's the last line.
131Hint by Christian Brabandt, 2011 Mar 22
132
133The :z command doesn't work exactly as it should. (ChangZhuo Chen, 2011 Mar 2)
134Compare with how old Vi works and with posix spec. terminal is 80 x 24,
135'scroll' option set to 11.
136
137'cursorline' is displayed too short when there are concealed characters and
138'list' is set. (Dennis Preiser)
139Patch 7.3.116 was the wrong solution.
140
141When opening file from windows explorer, characters inside [] cause
142problems, even though double quotes are used. (Manuel Stol, 2011 Mar 9)
143
144Patch to change the meaning of \n in substitute(). (motoya kurotsu, 2011 Mar 8)
145
Bram Moolenaar20f90cf2011-05-19 12:22:51 +0200146Gui menu edit/paste in block mode insert only inserts in one line (Bjorn
147Winckler, 2011 May 11)
148Use function to set paste option and restore it, use CTRL-R+ to paste.
149
Bram Moolenaaradc21822011-04-01 18:03:16 +0200150Help file foldexpr (ZyX)
151
152Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2,
153only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
15421, Ben Fritz, 2010 Sep 14)
155
156Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
157
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +0200158In GTK Gvim, setting 'lines' and 'columns' to 99999 causes a crash (Tony
159Mechelynck, 2011 Apr 25). Can reproduce the crash sometimes:
160 gvim -N -u NONE --cmd 'set lines=99999 columns=99999'
161(gvim:25968): Gdk-WARNING **: Native Windows wider or taller than 65535 pixels are not supported
162The program 'gvim' received an X Window System error.
163This probably reflects a bug in the program.
164The error was 'RenderBadPicture (invalid Picture parameter)'.
165 (Details: serial 313 error_code 161 request_code 149 minor_code 8)
166 (Note to programmers: normally, X errors are reported asynchronously;
167 that is, you will receive the error a while after causing it.
168 To debug your program, run it with the --sync command line
169 option to change this behavior. You can then get a meaningful
170 backtrace from your debugger if you break on the gdk_x_error() function.)
171Check that number of pixels doesn't go above 65535?
172
Bram Moolenaar446beb42011-05-10 17:18:44 +02001738 Add an event like CursorHold that is triggered repeatedly, not just once
174 after typing something.
175Need for CursorHold that retriggers. Use a key that doesn't do anything, or a
176function that resets did_cursorhold.
177Patch by Christian Brabandt, 2011 May 6.
178
Bram Moolenaaradc21822011-04-01 18:03:16 +0200179CursorHold repeats typed key when it's the start of a mapping.
180(Will Gray, 2011 Mar 23)
Bram Moolenaar20f90cf2011-05-19 12:22:51 +0200181Christian Brabandt: problem is that OP_PENDING isn't set.
Bram Moolenaaradc21822011-04-01 18:03:16 +0200182
183Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26)
184
185This line hangs Vim, because of syntax HL:
186call append(line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78%$")
187
188When using a Vim server, a # in the path causes an error message.
189(Jeff Lanzarotta, 2011 Feb 17)
190
191Bug: E685 error for func_unref(). (ZyX, 2010 Aug 5)
192
193Using ":break" or something else that stops executing commands inside a
194":finally" does not rethrow a previously uncaught exception. (ZyX, 2010 Oct
19515)
196
197Vim using lots of memory when joining lines. (John Little, 2010 Dec 3)
198
199On 64 bit MS-Windows "long" is only 32 bits, but we sometimes need to store a
20064 bits value. Change all number options to use nropt_T and define it to the
201right type.
202
203string() can't parse back "inf" and "nan". Fix documentation or fix code?
204(ZyX, 2010 Aug 23)
205
206When doing "redir => s:foo" in a script and then "redir END" somewhere else
207(e.g. in a function) it can't find s:foo.
208
209maparg() does not show the <script> flag. When temporarily changing a
210mapping, how to restore the script ID?
211
212Patch to fix \%V item in regexp. (Christian Brabandt, 2010 Nov 8)
213Update Nov 19. James Vega: still not right. Christian: it's difficult.
214
215Patch to add up to 99 match groups. (Christian Brabandt, 2010 Dec 22)
216Also add named groups: \%{name}(re) and \%{name}g
217
218Bug in try/catch: return with invalid compare throws error that isn't caught.
219(ZyX, 2011 Jan 26)
220
221Highlighting stops working after changing it many times. Script to reproduce
222it: Pablo Contreras, 2010 Oct 12 Windows XP and 7. Font is never freed?
223
224After patch 7.3.097 still get E15. (Yukihiro Nakadaira, 2011 Jan 18)
225Also for another example (ZyX, 2011 Jan 24)
226
227Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
228
229"0g@$" puts '] on last byte of multi-byte. (ZyX, 2011 Jan 22)
230
231Deleting a linewise selection that includes the last line of the file leaves
232an empty line. (Ben Schmidt, 2011 Mar 17)
233Patch by Christian Brabandt, 2011 Mar 19.
234
235Patch to support sorting on floating point number. (Alex Jakushev, 2010 Oct
23630)
237
238When a script contains "redir => s:foo" but doesn't end redirection, a
239following "redir" command gives an error for not being able to access s:foo.
240(ZyX, 2011 Mar 27)
241
242Problem with "syn sync gouphere". (Gustavo Niemeyer, 2011 Jan 27)
243
244Loading autoload script even when usage is inside "if 0". (Christian Brabandt,
2452010 Dec 18)
246
247In the sandbox it's not allowed to do many things, but it's possible to change
248or set variables. Add a way to prevent variables from being changed in the
249sandbox? E.g.: ":protect g:restore_settings".
250
251GTK: drawing a double-width combining character over single-width characters
252doesn't look right. (Dominique Pelle, 2010 Aug 8)
253
254GTK: tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25)
255
256Win32: tear-off menu does not work when menu language is German. (Markus
257Bossler, 2011 Mar 2) Fixed by 7.3.095?
258
259Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
260
2617.3.014 changed how backslash at end of line works, but still get a NUL when
262there is one backslash. (Ray Frush, 2010 Nov 18) What does the original ex
263do?
264
Bram Moolenaaradc21822011-04-01 18:03:16 +0200265Searching mixed with Visual mode doesn't redraw properly. (James Vega, 2010 Nov
26622)
267
Bram Moolenaard58e9292011-02-09 17:07:58 +0100268New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
269- move compflags to separate growarray?
270- instead of a regexp use a hashtable. Expand '?', '*", '+'. What would be
271 the maximum repeat for * and +?
272
Bram Moolenaar662db672011-03-22 14:05:35 +0100273"L'Italie" noted as a spell error at start of the sentence. (Dominique Pelle,
2742011 Feb 27)
275
Bram Moolenaar4a748032010-09-30 21:47:56 +0200276Copy/paste between Vim and Google chrome doesn't work well for multi-byte
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200277characters. (Ben Haskell, 2010 Sep 17)
Bram Moolenaar4a748032010-09-30 21:47:56 +0200278When putting text in the cut buffer (when exiting) and conversion doesn't work
279properly, Prepend "ENC==={value of 'enc'}:" to the text and don't convert?
280Then it should at least work from Vim to Vim and in other applications it's
281clear why it doesn't work.
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200282
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200283Editing a file with a ^M with 'ff' set to "mac", opening a help file, then the
284^M is displayed as ^J sometimes. Getting 'ff' value from wrong window/buffer?
285
Bram Moolenaard58e9292011-02-09 17:07:58 +0100286When Vim is put in the background (SIGTSTP) and then gets a SIGHUP it doesn't
287exit. It exists as soon as back in the foreground. (Stephen Liang, 2011 Jan
2889) Caused by vim_handle_signal(SIGNAL_BLOCK); in ui.c.
289
290g` not working correctly when using :edit. It works OK when editing a file on
291the command line. (Ingo Karkat, 2011 Jan 25)
292
Bram Moolenaar81af9252010-12-10 20:35:50 +0100293Since patch 7.2.46 Yankring plugin has become very slow, eventually make Vim
294crash? (Raiwil, 2010 Nov 17)
295
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100296Python: Adding line to buffer other than the current one doesn't work
297correctly. (Rozbujnik, 2010 Dec 19)
298
Bram Moolenaar483c5d82010-10-20 18:45:33 +0200299Patch to add 'systemencoding', convert between 'encoding' and this for file
300names, shell commands and the like. (Kikuchan, 2010 Oct 14)
301Assume the system converts between the actual encoding of the filesystem to
302the system encoding (usually utf-8).
303
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200304Problem producing tags file when hebrew.frx is present. It has a BOM.
305Results in E670. (Tony Mechelynck, 2010 May 2)
306
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100307Ruby: ":ruby print $buffer.number" returns zero.
Bram Moolenaar483c5d82010-10-20 18:45:33 +0200308
Bram Moolenaar755bd262010-08-14 17:46:20 +0200309setpos() does not restore cursor position after :normal. (Tyru, 2010 Aug 11)
Bram Moolenaar2a988a12010-08-13 15:24:39 +0200310
Bram Moolenaar05365702010-10-27 18:34:44 +02003117 The 'directory' option supports changing path separators to "%" to make
312 file names unique, also support this for 'backupdir'. (Mikolaj Machowski)
313 Patch by Christian Brabandt, 2010 Oct 21.
314
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200315getpos()/setpos() don't include curswant. getpos() could return a fifth
316element. setpos() could accept an optional fifth element.
317Patch by Christian Brabandt, 2010 Sep 6. Check that new argument is optional
318and that it's documented.
319
Bram Moolenaar05365702010-10-27 18:34:44 +0200320With "tw=55 fo+=a" typing space before ) doesn't work well. (Scott Mcdermott,
3212010 Oct 24)
322
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100323Patch to add random number generator. (Hong Xu, 2010 Nov 8, update Nov 10)
324Alternative from Christian Brabandt. (2010 Sep 19)
325
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200326Messages in message.txt are highlighted as examples.
327
Bram Moolenaar05365702010-10-27 18:34:44 +0200328When using cp850 the NBSP (0xff) is not drawn correctly. (Brett Stahlman, 2010
329Oct 22) 'isprint' is set to "@,161-255".
330
Bram Moolenaardc685ab2010-08-13 21:16:49 +0200331Test 73 fails on MS-Windows when compiled with DJGPP and run twice. How to
332delete the Xfind directory? Add an rmdir() function, just like we have
333mkdir().
334
Bram Moolenaar483c5d82010-10-20 18:45:33 +0200335":echo "\x85" =~# '[\u0085]'" returns 1 instead of 0. (ZyX, 2010 Oct 3)
336
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200337'cindent' not correct when 'list' is set. (Zdravi Korusef, 2010 Apr 15)
338
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100339When 'paste' is changed with 'pastetoggle', the ruler doesn't reflect this
340right away. (Samuel Ferencik, 2010 Dec 7)
341
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200342Mac with X11: clipboard doesn't work properly. (Raf, 2010 Aug 16)
343
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100344Using CompilerSet doesn't record where an option was set from. E.g., in the
345gcc compiler plugin. (Gary Johnson, 2010 Dec 13)
346
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200347":helpgrep" does not put the cursor in the correct column when preceded by
348accented character. (Tony Mechelynck, 2010 Apr 15)
349
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200350Don't call check_restricted() for histadd(), setbufvar(), settabvar(),
351setwinvar().
352
Bram Moolenaar9de99972010-08-09 22:33:06 +0200353Echo starts in the wrong column:
354 while 1 | let s = input('A') | echo 'R' | endw
355(Boyko Bantchev, 2010 Aug 9)
356
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100357Patch for GVimExt to show an icon. (Dominik Riebeling, 2010 Nov 7)
358
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100359When writing a file > 2Gbyte, the reported number of bytes is negative.
360(Antonio Colombo, 2010 Dec 18)
361
Bram Moolenaar8408a9a2010-07-30 22:41:22 +0200362Patch: Let rare word highlighting overrule good word highlighting.
363(Jakson A. Aquino, 2010 Jul 30)
364
Bram Moolenaar06583f12010-08-07 20:30:49 +0200365Patch to make more characters work in dialogs. (Yankwei Jia, 2010 Aug 4)
366
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100367Patch for VisVim, pass file name to VimOpenFile. (Jiri Sedlak, 2010 Nov 12)
368
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200369When 'lines' is 25 and 'scrolloff' is 12, "j" scrolls zero or two lines
370instead of one. (Constantin Pan, 2010 Sep 10)
371
Bram Moolenaar81af9252010-12-10 20:35:50 +0100372Crash in setqflist(). (Benoit Mortgat, 2010 Nov 18)
373
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100374Patch to handle resizing when tab is opened, when at full size. (Yukihiro
375Nakadaira, 2010 Jan 6)
376
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100377Writing nested List and Dict in viminfo gives error message and can't be read
378back. (Yukihiro Nakadaira, 2010 Nov 13)
379
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100380Can 'undolevels' be a buffer-local option? Helps for making big changes in
381one file only, set 'ul' to -1 only for that buffer.
382Patch by Christian Brabandt, 2010 Dec 17. Needs test.
383
Bram Moolenaarb52073a2010-03-17 20:02:06 +0100384Problem with cursor in the wrong column. (SungHyun Nam, 2010 Mar 11)
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200385Additional info by Dominique Pelle. (also on 2010 Apr 10)
386
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100387CreateFile and CreateFileW are used without sharing, filewritable() fails when
388the file was already open (e.g. script is being sourced). Add FILE_SHARE_READ|
389FILE_SHARE_WRITE in mch_access()? (Phillippe Vaucher, 2010 Nov 2)
390
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200391Is ~/bin (literally) in $PATH supposed to work? (Paul, 2010 March 29)
392Looks like only bash can do it. (Yakov Lerner)
393
Bram Moolenaarb2c03502010-07-02 20:20:09 +0200394Cscope "cs add" stopped working somewhat before 7.2.438. (Gary Johnson, 2010
395Jun 29) Caused by 7.2.433?
396
Bram Moolenaar5e3dae82010-03-02 16:19:40 +0100397I often see pasted text (from Firefox, to Vim in xterm) appear twice.
398Also, Vim in xterm sometimes loses copy/paste ability (probably after running
399an external command).
Bram Moolenaar6dfc28b2010-02-11 14:19:15 +0100400
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200401Jumplist doesn't work properly in Insert mode? (Jean Johner, 2010 Mar 20)
402
Bram Moolenaarb52073a2010-03-17 20:02:06 +0100403Problem with transparent cmdline. Also: Terminal title is wrong with
404non-ASCII character. (Lily White, 2010 Mar 7)
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100405
406iconv() doesn't fail on an illegal character, as documented. (Yongwei Wu, 2009
407Nov 15, example Nov 26) Add argument to specify whether iconv() should fail
408or replace with a character and continue?
409
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100410Add local time at start of --startuptime output.
411Requires configure check for localtime().
412Use format year-month-day hr:min:sec.
413
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100414Shell not recognized properly if it ends in "csh -f". (James Vega, 2009 Nov 3)
415Find tail? Might have a / in argument. Find space? Might have space in
416path.
417
Bram Moolenaard58e9292011-02-09 17:07:58 +0100418Test 51 fails when language set to German. (Marco, 2011 Jan 9)
419Dominique can't reproduc it.
420
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200421":function f(x) keepjumps" creates a function where every command is executed
422like it has ":keepjumps" before it.
423
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100424Coverity: ask someone to create new user: Dominique.
Bram Moolenaar755bd262010-08-14 17:46:20 +0200425Check if there are new reported defects: http://scan.coverity.com/rung2.html
426
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100427Patch to support :undo absolute jump to file save number. (Christian Brabandt,
4282010 Nov 5)
429
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100430Patch to use 'foldnextmax' also for "marker" foldmethod. (Arnaud Lacombe, 2011
431Jan 7)
432
Bram Moolenaar755bd262010-08-14 17:46:20 +0200433When setting 'undofile' while the file is already loaded, but unchanged, try
434to read the undo file. Requires computing a checksum of the text. (Andy
435Wokula)
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100436
437Bug with 'incsearch' going to wrong line. (Wolfram Kresse, 2009 Aug 17)
438Only with "vim -u NONE".
439
440Problem with editing file in binary mode. (Ingo Krabbe, 2009 Oct 8)
441
Bram Moolenaar00654022011-02-25 14:42:19 +0100442With 'wildmode' set to "longest:full,full" and pressing Tab once the first
443entry in wildmenu is highlighted, that shouldn't happen. (Yuki Watanabe, 2011
444Feb 12)
445
Bram Moolenaar4421d6a2010-08-14 13:33:56 +0200446Display error when 'tabline' that includes a file name with double-width
447characters. (2010 Aug 14, bootleq)
448
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100449Problem with stop directory in findfile(). (Adam Simpkins, 2009 Aug 26)
450
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200451Undo problem: line not removed as expected when using setline() from Insert
452mode. (Israel Chauca, 2010 May 13, more in second msg)
453Break undo when CTRL-R = changes the text? Or save more lines?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100454
Bram Moolenaar1d689522010-05-28 20:54:39 +0200455Slow combination of folding and PHP syntax highlighting. Script to reproduce
456it. Caused by "syntax sync fromstart" in combination with patch 7.2.274.
457(Christian Brabandt, 2010 May 27)
Bram Moolenaar81af9252010-12-10 20:35:50 +0100458Generally, folding with 'foldmethod' set to "syntax" is slow. Do profiling to
459find out why.
Bram Moolenaar1d689522010-05-28 20:54:39 +0200460
Bram Moolenaar97ea5112010-06-12 06:46:44 +0200461When completion inserts the first match, it may trigger the line to be folded.
462Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9)
463
Bram Moolenaar662db672011-03-22 14:05:35 +0100464Using ":call foo#d.f()" doesn't autoload the "foo.vim" file. Works OK for
465echo, just not for ":call" and ":call call()". (Ted, 2011 Mar 17)
466
Bram Moolenaar4a748032010-09-30 21:47:56 +0200467Cannot use getchar() inside :normal and using an expression mapping. Is this
468supposed to work? (XyX, 2010 Sep 22)
469
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100470When using an expression mapping with a multi-byte character each byte is
471converted to a utf-8 character. (ZyX, 2011 Jan 4)
472Patch for possible solution. (Yukihiro Nakadaira, 2011 Jan 5)
473
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100474When a:base in 'completefunc' starts with a number it's passed as a number,
475not a string. (Sean Ma) Need to add flag to call_func_retlist() to force a
476string value.
477
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200478There is no command line completion for ":lmap".
479
Bram Moolenaar4a748032010-09-30 21:47:56 +0200480":e ~br<Tab>" does not complete to ":e /home/bram/". Would need to use
481getpwent() to find all the matches.
482
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100483Invalid read error in Farsi mode. (Dominique Pelle, 2009 Aug 2)
484
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100485For running gvim on an USB stick: avoid the OLE registration. Use a command
486line argument -noregister.
487
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100488When using an expression in 'statusline' leading white space sometimes goes
489missing (but not always). (ZyX, 2010 Nov 1)
490
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200491When a mapping exists both for insert mode and lang-insert mode, the last one
492doesn't work. (Tyru, 2010 May 6) Or is this intended?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100493
494Still a problem with ":make" in the wrong directory. Caused by ":bufdo".
495(Ajit Thakkar, 2009 Jul 1) More information Jul 9, Jul 15.
496Caused by "doautoall syntaxset BufEnter *" in syntax/nosyntax.vim ?
497There also is a BufLeave/BufEnter aucmd to save/restore view.
498Does the patch to save/restore globaldir work?
499
500":bufdo normal gg" while 'hidden' is set leaves buffers without syntax
501highlighting. Don't disable Syntax autocommands then? Or add a flag/modifier
502to avoid changing 'eventignore'?
503
504Patch for displaying 0x200c and 0x200d. (Ali Gholami Rudi, 2009 May 6)
505Probably needs a bit of work.
506
507List of encoding aliases. (Takao Fujiware, 2009 Jul 18)
508Are they all OK? Update Jul 22.
509
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200510Win32: Improved Makefile for MSVC. (Leonardo Valeri Manera, 2010 Aug 18)
511
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100512Win32: Expanding 'path' runs into a maximum size limit. (bgold12, 2009 Nov 15)
513
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200514Win32: Patch for enabling quick edit mode in console. (Craig Barkhouse, 2010
515Sep 1)
516
Bram Moolenaar33aea182010-08-07 13:19:27 +0200517Putting a Visual block while 'visualedit' is "all" does not leave the cursor
518on the first character. (John Beckett, 2010 Aug 7)
519
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100520Setting 'tags' to "tagsdir/*" does not find "tagsdir/tags". (Steven K. Wong,
5212009 Jul 18)
522
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100523Patch to add farsi handling to arabic.c (Ali Gholami Rudi, 2009 May 2)
524Added test, updates, June 23.
525
526Patch to add "focusonly" to 'scrollopt', so that scrollbind also applies in
527window that doesn't have focus. (Jonathon Mah, 2009 Jan 12)
528Needs more work.
529
530Problem with <script> mappings (Andy Wokula, 2009 Mar 8)
531
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100532When starting Vim with "gvim -f -u non_existent_file > foo.txt" there are a
533few control characters in the output. (Dale Wiles, 2009 May 28)
534
535'cmdwinheight is only used in last window when 'winheight' is a large value.
536(Tony Mechelynck, 2009 Apr 15)
537
538Status line containing winnr() isn't updated when splitting the window (Clark
539J. Wang, 2009 Mar 31)
540
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200541When $VIMRUNTIME is set in .vimrc, need to reload lang files. Already done
542for GTK, how about others? (Ron Aaron, 2010 Apr 10)
543
Bram Moolenaarede981a2010-08-11 23:37:32 +0200544Patch for GTK buttons X1Mouse and X2Mouse. (Christian J. Robinson, 2010 Aug 9)
545
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200546Motif: Build on Ubuntu can't enter any text in dialog text fields.
547
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100548When 'ft' changes redraw custom status line.
549
550":tab split fname" doesn't set the alternate file in the original window,
551because win_valid() always returns FALSE. Below win_new_tabpage() in
552ex_docmd.c.
553
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200554Space before comma in function definition not allowed: "function x(a , b)"
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100555Give a more appropriate error message. Add a remark to the docs.
556
557string_convert() should be able to convert between utf-8 and utf-16le. Used
558for GTK clipboard. Avoid requirement for iconv.
559
560Now that colnr_T is int instead of unsigned, more type casts can be removed.
561
562'delcombine' does not work for the command line. (Tony Mechelynck, 2009 Jul
56320)
564
565Unwanted file name escaping: ":echo input('file:' , '', 'file')"
566And use file name completion on a file with spaces. (Frederic Hardy, 2009 Mar
56723)
568
569Don't load macmap.vim on startup, turn it into a plugin. (Ron Aaron,
5702009 Apr 7) Reminder Apr 14.
571
572Add "no_hlsearch" to winsaveview().
573
574Cursorline highlighting combines with Search ('hlsearch') but not with
575SpellBad. (Jim Karsten, 2009 Mar 18)
576
577When 'foldmethod' is "indent", using >> on a line just above a fold makes the
578cursor line folded. (Evan Laforge, 2009 Oct 17)
579
580When 'foldmethod' is "indent", adding an empty line below a fold and then
581indented text, creates a new fold instead of joining it with the previous one.
582(Evan Laforge, 2009 Oct 17)
583
584Bug: When reloading a buffer changed outside of Vim, BufRead autocommands
585are applied to the wrong buffer/window. (Ben Fritz, 2009 Apr 2, May 11)
586Ignore window options when not in the right window?
587Perhaps we need to use a hidden window for applying autocommands to a buffer
588that doesn't have a window.
589
590When using "ab foo bar" and mapping <Tab> to <Esc>, pressing <Tab> after foo
591doesn't trigger the abbreviation like <Esc> would. (Ramana Kumar, 2009 Sep 6)
592
593getbufvar() to get a window-local option value for a buffer that's not
594displayed in a window should return the value that's stored for that buffer.
595
596":he ctrl_u" can be auto-corrected to ":he ctrl-u".
597
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100598There should be a way after an abbreviation has expanded to go back to what
599was typed. CTRL-G h ? Would also undo last word or line break inserted
600perhaps. And undo CTRL-W. CTRL-G l would redo.
601
Bram Moolenaar84f888a2010-08-05 21:40:16 +0200602Diff mode out of sync. (Gary Johnson, 2010 Aug 4)
603
Bram Moolenaar483c5d82010-10-20 18:45:33 +0200604Support a 'systemencoding' option (for Unix). It specifies the encoding of
605file names. (Kikuchan, 2010 Oct 5). Useful on a latin1 or double-byte Asian
606system when 'encoding' is "utf-8".
607
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100608Win32: A --remote command that has a directory name starting with a ( doesn't
609work, the backslash is removed, assuming that it escapes the (. (Valery
610Kondakoff, 2009 May 13)
611
612Win32 GUI: Changing manifest helps for dpi changes (Joe Castro, 2009 Mar 27)
613
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100614Win32 GUI: last message from startup doesn't show up when there is an echoerr
615command. (Cyril Slobin, 2009 Mar 13)
616
617Win32: use different args for SearchPath()? (Yasuhiro Matsumoto, 2009 Jan 30)
618
619Win32: completion of file name ":e c:\!test" results in ":e c:\\!test", which
620does not work. (Nieko Maatjes, 2009 Jan 8, Ingo Karkat, 2009 Jan 22)
621
Bram Moolenaarf5963f72010-07-23 22:10:27 +0200622opening/closing window causes other window with 'winfixheight' to change
623height. Also happens when there is another window in the frame, if it's not
Bram Moolenaar2c3b1d92010-07-24 16:58:02 +0200624very high. (Yegappan Lakshmanan, 2010 Jul 22, Michael Peeters, 2010 Jul 22)
Bram Moolenaarf5963f72010-07-23 22:10:27 +0200625
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100626Directory wrong in session file, caused by ":lcd" in BufEnter autocommand.
627(Felix Kater, 2009 Mar 3)
628
Bram Moolenaar81af9252010-12-10 20:35:50 +0100629Session file generates error upon loading, cause bu --remote-silent-tab.
630(7tommm (ytommm) 2010 Nov 24)
631
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100632Using ~ works OK on 'a' with composing char, but not on 0x0418 with composing
633char 0x0301. (Tony Mechelynck, 2009 Mar 4)
634
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100635A function on a dictionary is not profiled. (Zyx, 2010 Dec 25)
636
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100637Inconsistent: starting with $LANG set to es_ES.utf-8 gives Spanish
638messages, even though locale is not supported. But ":lang messages
639es_ES.utf-8" gives an error and doesn't switch messages. (Dominique Pelle,
6402009 Jan 26)
641
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +0100642When $HOME contains special characters, such as a comma, escape them when used
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100643in an option. (Michael Hordijk, 2009 May 5)
644Turn "esc" argument of expand_env_esc() into string of chars to be escaped.
645
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100646Should make 'ignorecase' global-local, so that it makes sense setting it from
647a modeline.
648
649Add cscope target to Makefile. (Tony Mechelynck, 2009 Jun 18, replies by
650Sergey Khorev)
651
652Consider making YankRing or something else that keeps a list of yanked text
653part of standard Vim. The "1 to "9 registers are not sufficient.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000654
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000655netrw: dragging status line causes selection of entry. Should check row
656number to be below last visible line.
657
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100658After doing "su" $HOME can be the old user's home, thus ~root/file is not
659correct. Don't use it in the swap file.
660
661Completion for ":buf" doesn't work properly on Win32 when 'shellslash' is off.
662(Henrik Ohman, 2009, Jan 29)
663
Bram Moolenaar166af9b2010-11-16 20:34:40 +0100664shellescape() depends on 'shellshash' for quoting. That doesn't work when
665'shellslash' is set but using cmd.exe. (Ben Fritz)
666Use a different option or let it depend on whether 'shell' looks like a
667unix-like shell?
668
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100669Allow patches to add something to version.c, like with an official patch, so
670that :version output shows which patches have been applied.
671
Bram Moolenaar00a927d2010-05-14 23:24:24 +0200672Bug: in Ex mode (after "Q") backslash before line break, when yanked into a
673register and executed, results in <Nul>: instead of line break.
674(Konrad Schwarz, 2010 Apr 16)
675
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100676Have a look at patch for utf-8 line breaking. (Yongwei Wu, 2008 Mar 1, Mar 23)
677Now at: http://vimgadgets.sourceforge.net/liblinebreak/
678
679Greek sigma character should be lower cased depending on the context. Can we
680make this work? (Dominique Pelle, 2009 Sep 24)
681
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100682When changing 'encoding' convert all the swap file names, so that we can
683still delete them. Also convert all buffer file names?
684
685"gqip" in Insert mode has an off-by-one error, causing it to reflow text.
686(Raul Coronado, 2009 Nov 2)
687
688Update src/testdir/main.aap.
689
690"vim -c 'sniff connect'" hangs Vim. (Dominique Pelle, 2008 Dec 7)
691
692Something wrong with session that has "cd" commands and "badd", in such a way
693that Vim doesn't find the edited file in the buffer list, causing the
694ATTENTION message? (Tony Mechelynck, 2008 Dec 1)
695Also: swap files are in ~/tmp/ One has relative file name ".mozilla/...".
696
697Add v:motion_force. (Kana Natsuno, 2008 Dec 6)
698
Bram Moolenaarc236c162008-07-13 17:41:49 +0000699Runtime files for Clojure. (Toralf Wittner, 2008 Jun 25)
700
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100701MS-Windows: editing the first, empty buffer, 'ffs' set to "unix,dos", ":enew"
702doesn't set 'ff' to "unix". (Ben Fritz, 2008 Dec 5) Reusing the old buffer
703probably causes this.
704
705'scrollbind' is not respected when deleting lines or undo. (Milan Vancura,
Bram Moolenaar927edbd2010-05-17 22:07:47 +02007062009 Jan 16)
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100707
708Document that default font in Athena can be set with resources:
709 XtDefaultFont: "9x15"
710 XtDefaultFontSet: "9x15"
711(Richard Sherman, 2009 Apr 12)
712
713Having "Syntax" in 'eventignore' for :bufdo may cause problems, e.g. for
714":bufdo e" when buffers are open in windows. ex_listdo(eap) could set the
715option only for when jumping to another buffer, not when the command argument
716is executed.
Bram Moolenaarc236c162008-07-13 17:41:49 +0000717
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100718":pedit %" with a BufReadPre autocommand causes the cursor to move to the
719first line. (Ingo Karkat, 2008 Jul 1) Ian Kelling is working on this.
Bram Moolenaar49325942007-05-10 19:19:59 +0000720
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000721Wildmenu not deleted: "gvim -u NONE", ":set nocp wildmenu cmdheight=3
722laststatus=2", CTRL-D CTRL-H CTRL-H CTRL-H. (A.Politz, 2008 April 1)
723Works OK with Vim in an xterm.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000724
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100725Cursor line moves in other window when using CTRL-W J that doesn't change
726anything. (Dasn, 2009 Apr 7)
727
728On Unix "glob('does not exist~')" returns the string. Without the "~" it
729doesn't. (John Little, 2008 Nov 9)
730Shell expansion returns unexpanded string?
731Don't use shell when "~" is not at the start?
732
733":unlet $VAR" doesn't work.
734
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000735When using ":e ++enc=foo file" and the file is already loaded with
736'fileencoding' set to "bar", then do_ecmd() uses that buffer, even though the
737fileencoding differs. Reload the buffer in this situation? Need to check for
738the buffer to be unmodified.
739Unfinished patch by Ian Kelling, 2008 Jul 11. Followup Jul 14, need to have
740another look at it.
741
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100742Patch for c.vim and cpp.vim syntax files. (Chung-chieh Shan, 2008 Nov 26)
743
744c.vim: XXX in a comment is colored yellow, but not when it's after "#if 0".
745(Ilya Dogolazky, 2009 Aug 7)
746
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100747You can type ":w ++bad=x fname", but the ++bad argument is ignored. Give an
748error message? Or is this easy to implement? (Nathan Stratton Treadway, 2008
749Aug 20) This is in ucs2bytes(), search for 0xBF. Using the ++bad argument is
750at the other match for 0xBF.
751
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000752Fix for matchparen HL doesn't work. beep.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000753
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100754When adding "-complete=file" to a user command this also changes how the
755argument is processed for <f-args>. (Ivan Tishchenko, 2008 Aug 19)
756
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000757Win32: associating a type with Vim doesn't take care of space after a
758backslash? (Robert Vibrant, 2008 Jun 5)
759
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200760Win32: bold font doesn't work when 'guifontwide' has been set. (Yue Wu, 2010
761Aug 23)
762
763When 'rightleft' is set, cursorcolumn isn't highlighted after the end of a
764line. It's also wrong in folds. (Dominique Pelle, 2010 Aug 21)
765
766Using an insert mode expression mapping, cursor is not in the expected
767position. (ZyX, 2010 Aug 29)
768
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000769After using <Tab> for command line completion after ":ta blah" and getting E33
770(no tags file), further editing the command to e.g., ":echo 'blah'", the
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000771command is not executed. Fix by Ian Kelling?
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000772
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000773":help s/~" jumps to *s/\~*, while ":help s/\~" doesn't find anything. (Tim
774Chase) Fix by Ian Kelling, 2008 Jul 14.
775
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100776Use "\U12345678" for 32 bit Unicode characters? (Tony Mechelynck, 2009
777Apr 6) Or use "\u(123456)", similar to Perl.
778
779When mapping : to ; and ; to :, @; doesn't work like @: and @: doesn't work
780either. Matt Wozniski: nv_at() calls do_execreg() which uses
781put_in_typebuf(). Char mapped twice?
782
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000783Despite adding save_subexpr() this still doesn't work properly:
784Regexp: matchlist('12a4aaa', '^\(.\{-}\)\(\%5c\@<=a\+\)\(.\+\)\?')
785Returns ['12a4', 'aaa', '4aaa'], should be ['12a4', 'aaa', '']
786Backreference not cleared when retrying after \@<= fails?
787(Brett Stahlman, 2008 March 8)
788
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100789Problem with remote_send(). (Charles Campbell, 2008 Aug 12)
790
791ftplugin for help file should set 'isk' to help file value.
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000792
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000793Win32: remote editing fails when the current directory name contains "[".
794(Ivan Tishchenko, Liu Yubao) Suggested patch by Chris Lubinski: Avoid
795escaping characters where the backslash is not removed later. Asked Chris for
796an alternate solution, also for src/ex_getln.c.
Bram Moolenaarc236c162008-07-13 17:41:49 +0000797This also fails when the file or directory name contains "%". (Thoml, 2008
798July 7)
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000799
800The str2special() function doesn't handle multi-byte characters properly.
801Patch from Vladimir Vichniakov, 2007 Apr 24.
802Should clean up the whole function. Also allow modifiers like <S-Char-32>?
803find_special_key() also has this problem.
804
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000805Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
8062008 May 14)
807
808Problem with CTRL-F. (Charles Campbell, 2008 March 21)
809Only happens with "gvim -geometry "160x26+4+27" -u NONE -U NONE prop.c".
810'lines' is 54. (2008 March 27)
811
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100812Problem with pointer wrapping around in getvcol(). (Wolfgang Kroworsch, 2008
813Oct 19) Check for "col" being "MAXCOL" separately?
814
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000815Unexpectedly inserting a double quote. (Anton Woellert, 2008 Mar 23)
816Works OK when 'cmdheight' is 2.
817
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100818Test54 should not use shell commands. Make it portable.
819
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000820The utf class table is missing some entries:
821 0x2212, minus sign
822 0x2217, star
823 0x2500, bar
824 0x26ab, circle
825
826Visual line mode doesn't highlight properly when 'showbreak' is used and the
827line doesn't fit. (Dasn, 2008 May 1)
828
829GUI: In Normal mode can't yank the modeless selection. Make "gy" do this?
830Works like CTRL-Y in Command line mode.
831
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100832Mac: Move Carbon todo items to os_mac.txt. Note that this version is frozen,
833try the Cocoa version.
834
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000835Mac: After a ":vsplit" the left scrollbar doesn't appear until 'columns' is
836changed or the window is resized.
837
Bram Moolenaar81af9252010-12-10 20:35:50 +0100838GTK: when setting 'columns' in a startup script and doing ":vertical diffsplit"
839the window isn't redrawn properly, see two vertical bars.
840
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000841Mac: Patch for configure: remove arch from ruby link args. (Knezevic, 2008
842Mar 5) Alternative: Kazuki Sakamoto, Mar 7.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000843
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000844Mac: trouble compiling with Motif, requires --disable-darwin. (Raf, 2008 Aug
8451) Reply by Ben Schmidt.
846
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000847C't: On utf-8 system, editing file with umlaut through Gnome results in URL
848with %nn%nn, which is taken as two characters instead of one.
849Try to reproduce at work.
850
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100851Patch for default choice in file changed dialog. (Bjorn Winckler, 2008 Oct 19)
852Is there a way to list all the files first?
853
854When 'smartcase' is set and using CTRL-L to add to the search pattern it may
855result in no matches. Convert chars to lower case? (Erik Wognsen, 2009 Apr
85616)
857
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200858Searching for composing char works, but not when inside []. (ZyX, Benjamin R.
859Haskell, 2010 Aug 24)
860
861Fail to edit file after failed register access. Error flag remains set?
862(Lech Lorens, 2010 Aug 30)
863
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000864Patch for redo register. (Ben Schmidt, 2007 Oct 19)
865Await response to question to make the register writable.
866
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100867src/testdir/Make_dos.mak: not all tests are included, e.g., test49, without a
868remark why.
869
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000870Problem with 'ts' set to 9 and 'showbreak' to ">>>". (Matthew Winn, 2007 Oct
8711)
872
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100873In the swapfile dialog, add a H(elp) option that gives more info about what
874each choice does. Similar to ":help swap-exists-choices"
875
876try/catch not working for argument of return. (Matt Wozniski, 2008 Sep 15)
877
Bram Moolenaard58e9292011-02-09 17:07:58 +0100878try/catch not working when inside a for loop. (ZyX, 2011 Jan 25)
879
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100880Recognize and ignore BOM in error file. (Aleksey Baibarin)
881
882":tab help" always opens a new tab, while ":help" re-uses an existing window.
883Would be more consistent when an existing tab is re-used. (Tony Mechelynck)
884
885":tab drop filename" doesn't work nicely when "filename" is open in a window
886in another tab. (Tony Mechelynck, 2009 Feb 13)
887
888Add ":nofold". Range will apply without expanding to closed fold.
889
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000890Including NFA regexp code:
891Use "\%#= to set the engine: 0 = automatic, 1 = backtracking, 2 = new.
892Useful in tests.
893Performance tests:
894- ~/vim/test/veryslow.js (file from Daniel Fetchinson)
895- ~/vim/test/slowsearch
896- ~/vim/test/rgb.vim
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100897- ~/vim/text/FeiqCfg.xml (file from Netjune)
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000898- search for a.*e*exn in the vim executable. Go to last line to use
899 'hlsearch'.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000900
901Using Aap to build Vim: add remarks about how to set personal preferences.
902Example on http://www.calmar.ws/tmp/aap.html
903
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000904Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb 26)
905Bug in using a transparent syntax region. (Hanlen in vim-dev maillist, 2007
906Jul 31)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000907
908C syntax: {} inside () causes following {} to be highlighted as error.
909(Michalis Giannakidis, 2006 Jun 1)
910
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100911Can't easily close the help window, like ":pc" closes the preview window and
912":ccl" closes the quickfix window. Add ":hclose". (Chris Gaal)
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200913Patch for :helpclose, Christian Brabandt, 2010 Sep 6.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100914
Bram Moolenaaradc21822011-04-01 18:03:16 +0200915Patch for :lmake not updating the quickfix window title. (Lech Lorens, 2011
916Mar 26)
917
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000918When 'diffopt' has "context:0" a single deleted line causes two folds to merge
919and mess up syncing. (Austin Jennings, 2008 Jan 31)
920
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000921Gnome improvements: Edward Catmur, 2007 Jan 7
922 Also use Save/Discard for other GUIs
923
924New PHP syntax file, use it? (Peter Hodge)
925
926'foldcolumn' in modeline applied to wrong window when using a session. (Teemu
927Likonen, March 19)
928
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100929Test 54 uses shell commands, that doesn't work on non-Unix systems. Use some
930other way to test buffer-local autocommands.
931
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000932The documentation mentions the priority for ":2match" and ":3match", but it
933appears the last one wins. (John Beckett, 2008 Jul 22) Caused by adding
934matchadd()? Suggested patch by John, 2008 Jul 24.
935
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100936When 'encoding' is utf-8 the command line is redrawn as a whole on every
937character typed. (Tyler Spivey, 2008 Sep 3) Only redraw cmdline for
938'arabicshape' when there is a character on the command line for which
939(ARABIC_CHAR(u8c)) is TRUE.
940
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000941Cheng Fang made javacomplete. (2007 Aug 11)
942Asked about latest version: 0.77.1 is on www.vim.org.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000943
944More AmigaOS4 patches. (Peter Bengtsson, Nov 9)
945
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +0200946Amiga patches with vbcc. (Adrien Destugues, 2010 Aug 30)
947http://pulkomandy.ath.cx/drop/vim73_vbcc_amiga.diff
948
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000949Insert mode completion: When editing the text and pressing CTRL-N again goes
950back to originally completed text, edited text is gone. (Peng Yu, 2008 Jul 24)
951Suggestion by Ben Schmidt, 2008 Aug 6.
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000952
953Problem with compound words? (Bert, 2008 May 6)
954No warning for when flags are defined after they are used in an affix.
955
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000956Screen redrawing when continuously updating the buffer and resizing the
957terminal. (Yakov Lerner, 2006 Sept 7)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000958
959Add option settings to help ftplugin. (David Eggum, 2006 Dec 18)
960
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000961Autoconf problem: when checking for iconv library we may add -L/usr/local/lib,
962but when compiling further tests -liconv is added without the -L argument,
963that may fail (e.g., sizeof(int)). (Blaine, 2007 Aug 21)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000964
965When opening quickfix window, disable spell checking?
966
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100967Problem with ".add" files when using two languages and restarting Vim. (Raul
968Coronado, 2008 Oct 30)
969
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000970Popup menu redraw: Instead of first redrawing the text and then drawing the
971popup menu over it, first draw the new popup menu, remember its position and
972size and then redraw the text, skipping the characters under the popup menu.
973This should avoid flicker. Other solution by A.Politz, 2007 Aug 22.
974
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000975When the popup menu is close to the edge of the window it is truncated. Patch
976to anchor the popup menu in a different way. (James Vega, 2008 Jul 30)
977
Bram Moolenaar49325942007-05-10 19:19:59 +0000978Windows 98: pasting from the clipboard with text from another application has
979a trailing NUL. (Joachim Hofmann) Perhaps the length specified for CF_TEXT
980isn't right?
981
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100982When a register contains illegal bytes, writing viminfo in utf-8 and reading
983it back doesn't result in utf-8. (Devin Bayer)
984
Bram Moolenaare37d50a2008-08-06 17:06:04 +0000985Command line completion: Scanning for tags doesn't check for typed key now and
986then? Hangs for about 5 seconds. Appears to be caused by finding include
987files with "foo/**" in 'path'. (Kalisiak, 2006 July 15)
Bram Moolenaarc236c162008-07-13 17:41:49 +0000988Additional info: When using the |wildcards| ** globing, vim hangs
989indefinitely on lots of directories. The |file-searching| globing, like in
990":set path=/**" does not hang as often as with globing with |wildcards|, like
991in ":1find /**/file". This is for a files that unix "find" can find very
992quick. Merging the 2 kinds of globing might make this an easier fix. (Ian
993Kelling, 2008 July 4)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +0000994
Bram Moolenaar8c8de832008-06-24 22:58:06 +0000995When the file name has parenthesis, e.g., "foo (bar).txt", ":!ls '%'" has the
996parenthesis escaped but not the space. That's inconsistent. Either escape
997neither or both. No escaping might be best, because it doesn't depend on
998particularities of the shell. (Zvi Har'El, 2007 Nov 10) (Teemu Likonen, 2008
999Jun 3)
1000However, for backwards compatibility escaping might be necessary. Check if
1001the user put quotes around the expanded item?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001002
Bram Moolenaar20f90cf2011-05-19 12:22:51 +02001003A throw in a function causes missing an endif below the call. (Spiros
1004Bousbouras, 2011 May 16)
1005
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001006Error E324 can be given when a cron script has wiped out our temp directory.
1007Give a clear error message about this (and tell them not to wipe out /tmp).
1008
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001009Color for cUserLabel should differ from case label, so that a mistake in a
1010switch list is noticed:
1011 switch (i)
1012 {
1013 case 1:
1014 foobar:
1015 }
1016
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001017Look at http://www.gtk-server.org/ . It has a Vim script implementation.
1018
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001019Netbeans problem. Use "nc -l 127.0.0.1 55555" for the server, then run gvim
1020with "gvim -nb:localhost:55555:foo". From nc do: '1:editFile!0 "foo"'. Then
1021go to Insert mode and add a few lines. Then backspacing every other time
1022moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)
1023
Bram Moolenaar8b682772010-07-30 21:49:40 +02001024Patch to use Modern UI 2.0 for the Nsis installer. (Guopeng Wen, 2010 Jul 30)
Bram Moolenaar20f90cf2011-05-19 12:22:51 +02001025Latest version: 2011 May 18
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +010010268 Windows install with NSIS: make it possible to do a silent install, see
1027 http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
1028 Version from Guopeng Wen that does this (2010 Dec 27)
Bram Moolenaar8b682772010-07-30 21:49:40 +02001029
Bram Moolenaar20f90cf2011-05-19 12:22:51 +02001030Windows installer: licence text should not use indent, causes bad word wrap.
1031(Benjamin Fritz, 2010 Aug 16)
1032
1033Dos uninstal may delete vim.bat from the wrong directory (e.g., when someone
1034makes his own wrapper). Add a magic string with the version number to the
1035.bat file and check for it in the uninstaller. E.g.
1036 # uninstall key: vim7.3*
1037
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001038Changes for Win32 makefile. (Mike Williams, 2007 Jan 22, Alexei Alexandrov,
10392007 Feb 8)
1040
1041Patch for Win32 clipboard under Cygwin. (Frodak Baksik, Feb 15)
1042 Sutcliffe says it works well.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001043 Update 2007 May 22 for Vim 7.1
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001044 Update 2008 Dec 2008 for Vim 7.2.xx (Sharonov)
1045
1046Win32: Can't complete shell command names. Why is setting xp_context in
1047set_one_cmd_context() inside #ifndef BACKSLASH_IN_FILENAME?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001048
1049Win32: Patch for convert_filterW(). (Taro Muraoka, 2007 Mar 2)
1050
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001051Win32: Patch for cscope external command. (Mike Williams, 2007 Aug 7)
1052
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001053Win32: XPM support only works with path without spaces. Patch by Mathias
1054Michaelis, 2006 Jun 9. Another patch for more path names, 2006 May 31.
1055New version: http://members.tcnet.ch/michaelis/vim/patches.zip (also for other
1056patches by Mathias, see mail Feb 22)
1057
1058Win32: compiling with normal features and OLE fails. Patch by Mathias
1059Michaelis, 2006 Jun 4.
1060
1061Win32: echo doesn't work for gvim.exe.mnf. Use inline file. Patch by Mathias
1062Michaelis. http://groups.yahoo.com/group/vimdev/message/43765
1063Patch that includes this and does more by George Reilly, 2007 Feb 12
1064
1065Win16: include patches to make Win16 version work. (Vince Negri, 2006 May 22)
1066
1067Win32: after "[I" showing matches, scroll wheel messes up screen. (Tsakiridis,
10682007 Feb 18)
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001069Patch by Alex Dobrynin, 2007 Jun 3. Also fixes other scroll wheel problems.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001070
1071Win32: using CTRL-S in Insert mode doesn't remove the "+" from the tab pages
Bram Moolenaared39e1d2008-08-09 17:55:22 +00001072label. (Tsakiridis, 2007 Feb 18) Patch from Ian Kelling, 2008 Aug 6.
1073
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001074Win32: using "gvim --remote-tab-silent fname" sometimes gives an empty screen
1075with the more prompt. Caused by setting the guitablabel? (Thomas Michael
1076Engelke, 2007 Dec 20 - 2008 Jan 17)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001077
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001078Win64: Seek error in swap file for a very big file (3 Gbyte). Check storing
1079pointer in long and seek offset in 64 bit var.
1080
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001081Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17)
1082
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001083Win32: When 'shell' is cmd.exe this command fails:
1084 echo system('"c:/path/echo.exe" "foo bar"')
1085Should we set the default for 'shellxquote' to a double quote, when 'shell'
1086contains "cmd" in the tail? (Benjamin Fritz, 2008 Oct 13)
1087Also set 'shellcmdflag' to include /s.
1088
1089Win32: When there is 4 Gbyte of memory mch_avail_mem() doesn't work properly.
Bram Moolenaarff312a42010-05-16 15:14:25 +02001090Unfinished patch by Jelle Geerts, 2008 Aug 24.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001091Let mch_avail_mem() return Kbyte instead?
1092
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001093Win32: When 'shell' is bash shellescape() doesn't always do the right thing.
1094Depends on 'shellslash', 'shellquote' and 'shellxquote', but shellescape()
1095only takes 'shellslash' into account.
1096
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001097Pressing the 'pastetoggle' key doesn't update the statusline. (Jan Christoph
1098Ebersbach, 2008 Feb 1)
1099
1100Menu item that does "xxd -r" doesn't work when 'fileencoding' is utf-16.
1101Check for this and use iconv? (Edward L. Fox, 2007 Sep 12)
1102Does the conversion in the other direction work when 'filenecodings' is set
1103properly?
1104
1105Cursor displayed in the wrong position when using 'numberwidth'. (James Vega,
11062007 Jun 21)
1107
1108When $VAR contains a backslash expand('$VAR') removes it. (Teemu Likonen, 2008
1109Jun 18)
1110
1111If the variable "g:x#y#z" exists completion after ":echo g:x#" doesn't work.
1112
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001113Feature request: Command to go to previous tab, like what CTRL-W p does for
1114windows. (Adam George)
1115
1116When using input() in a loop and then ":echo" the display column isn't right.
1117(Benjamin Fritz, 2008 Aug 28) Patch by Ben Schmidt, 2008 Sep 2.
1118
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001119F1 - F4 in an xterm produce a different escape sequence when used with a
1120modifier key. Need to catch three different sequences. Use K_ZF1, like
1121K_ZHOME? (Dickey, 2007 Dec 2)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001122
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001123UTF-8: mapping a multi-byte key where the second byte is 0x80 doesn't appear
1124to work. (Tony Mechelynck, 2007 March 2)
1125
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001126In debug mode, using CTRL-R = to evaluate a function causes stepping through
1127the function. (Hari Krishna Dara, 2006 Jun 28)
1128
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001129C++ indenting wrong with "=". (James Kanze, 2007 Jan 26)
1130
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001131":lockvar" should use copyID to avoid endless loop.
1132
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001133When using --remote-silent and the file name matches 'wildignore' get an E479
Bram Moolenaarc236c162008-07-13 17:41:49 +00001134error. without --remote-silent it works fine. (Ben Fritz, 2008 Jun 20)
Bram Moolenaar49325942007-05-10 19:19:59 +00001135
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001136Gvim: dialog for closing Vim should check if Vim is busy writing a file. Then
1137use a different dialog: "busy saving, really quit? yes / no".
1138
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001139Check other interfaces for changing curbuf in a wrong way. Patch like for
1140if_ruby.c.
1141
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001142":helpgrep" should use the directory from 'helpfile'.
1143
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001144Patch to dynamically load Python on Solaris. (Danek Duvall, 2009 Feb 16)
1145Needs more work.
1146
Bram Moolenaar166af9b2010-11-16 20:34:40 +01001147Python3 interface doesn't handle utf-8 correctly? (Nov 2010, lilydjwg)
1148
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001149The need_fileinfo flag is messy. Instead make the message right away and put
1150it in keep_msg?
1151
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001152Editing a file remotely that matches 'wildignore' results in a "no match"
Bram Moolenaarff312a42010-05-16 15:14:25 +02001153error. Should only happen when there are wildcards, not when giving the file
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001154name literally, and esp. if there is only one name.
1155
Bram Moolenaar1423b9d2006-05-07 15:16:06 +00001156Test 61 fails sometimes. This is a timing problem: "sleep 2" sometimes takes
1157longer than 2 seconds.
Bram Moolenaard68071d2006-05-02 22:08:30 +00001158
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001159Using ":au CursorMoved * cmd" invokes mch_FullName(), which can be slow.
1160Can this be avoided? (Thomas Waba, 2008 Aug 24)
1161Also for ":w" without a file name.
1162The buffer has the full path in ffname, should pass this to the autocommand.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001163
1164"vim -C" often has 'nocompatible', because it's set in some startup script.
1165Set 'compatible' after startup is done? Patch by James Vega, 2008 Feb 7.
1166
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001167VMS: while editing a file found in complex, Vim will save file into the first
1168directory of the path and not to the original location of the file.
1169(Zoltan Arpadffy)
1170
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001171VMS: VFC files are in some cases truncated during reading (Zoltan Arpadffy)
1172
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001173input() completion should not insert a backslash to escape a space in a file
1174name?
1175
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001176Ruby completion is insecure. Can this be fixed?
1177
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001178When 'backupskip' is set from $TEMP special characters need to be escaped.
1179(patch by Grembowietz, 2007 Feb 26, not quite right)
1180Another problem is that file_pat_to_reg_pat() doesn't recognize "\\", so "\\("
1181will be seen as a path separator plus "\(".
1182
Bram Moolenaar6dfc28b2010-02-11 14:19:15 +01001183gvim d:\path\path\(FILE).xml should not remove the \ before the (.
1184This also fails with --remote.
1185
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001186When doing ":quit" the Netbeans "killed" event isn't sent. (Xavier de Gaye,
11872008 Nov 10) call netbeans_file_closed() at the end of buf_freeall(), or in
1188all places where buf_freeall() is called?
1189
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001190":python os.chdir('/tmp')" makes short buffer names invalid. (Xavier de Gaye)
1191Check directory and call shorten_fnames()?
1192
1193aucmd_prepbuf() should also use a window in another tab page.
1194
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001195When unloading a buffer in a BufHidden autocommand the hidden flag is reset?
1196(Bob Hiestand, 2008 Aug 26, Aug 27)
1197
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001198Substituting an area with a line break with almost the same area does change
1199the Visual area. Can this be fixed? (James Vega, 2006 Sept 15)
1200
1201Windows installer could add a "open in new tab of existing Vim" menu entry.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001202Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
1203Just have two choices, always using one Vim and selecting between using an
1204argument list or opening each file in a separate tab.
Bram Moolenaarc236c162008-07-13 17:41:49 +00001205(Erik Falor, 2008 May 21, 2008 Jun 26)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001206
1207GUI: When combining fg en bg make sure they are not equal.
1208
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001209Spell checking: Add a way to specify punctuation characters. Add the
1210superscript numbers by default: 0x2070, 0xb9, 0xb2, 0xb3, 0x2074 - 0x2079.
1211
1212Spell checking in popup menu: If the only problem is the case of the first
1213character, don't offer "ignore" and "add to word list".
1214
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001215Use different pt_br dictionary for spell checking. (Jackson A. Aquino, 2006
1216Jun 5)
1217
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001218Use different romanian dictionary for spell checking. (Andrei Popescu, Nov
12192008) Use http://downloads.sourceforge.net/rospell/ro_RO.3.2.zip
1220Or the hunspell-ro.3.2.tar.gz file, it also has a iso-8859-2 list.
1221
1222In a C file with spell checking, in "% integer" "nteger" is seen as an error,
1223but "]s" doesn't find it. "nteger" by itself is found. (Ralf Wildenhues, 2008
1224Jul 22)
1225
1226There should be something about spell checking in the user manual.
1227
1228Spell menu: When using the Popup menu to select a replacement word,
1229":spellrepeat" doesn't work. SpellReplace() uses setline(). Can it use "z="
1230somehow? Or use a new function.
1231
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001232Mac: Using gvim: netrw window disappears. (Nick Lo, 2006 Jun 21)
1233
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001234Mac: OS/X 10.4 with Python 2.5 installed: configure finds an extra argument
1235that breaks the build. (Brian Victor, 2008 Sep 1)
Bram Moolenaare37d50a2008-08-06 17:06:04 +00001236
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001237Add an option to specify the character to use when a double-width character is
1238moved to the next line. Default '>', set to a space to blank it out. Check
1239that char is single width when it's set (compare with 'listchars').
1240
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001241The generated vim.bat can avoid the loop for NT. (Carl Zmola, 2006 Sep 3)
1242
1243Session file creation: 'autochdir' causes trouble. Keep it off until after
1244loading all files.
1245
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001246Win32: When 'autochdir' is on and 'encoding' is changed, files on the command
1247line are opened again, but from the wrong directory. Apply 'autochdir' only
1248after starting up?
1249
Bram Moolenaar6dfc28b2010-02-11 14:19:15 +01001250When showing a diff between a non-existent file and an existing one, with the
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001251cursor in the empty buffer, the other buffer only shows the last line. Change
1252the "insert" into a change from one line to many? (Yakov Lerner, 2008 May 27)
1253
1254Add autocommand for when a tabpage is being closed. Also for when a tab page
1255has been created.
1256
1257Using ":make" blocks Vim. Allow running one make in the background (if the
1258shell supports it), catch errors in a file and update the error list on the
1259fly. A bit like "!make > file&" and repeating ":cf file". ":bgmake",
1260background make. ":bgcancel" interrupts it.
1261A.Politz may work on this.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001262
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001263These two abbreviations don't give the same result:
1264 let asdfasdf = "xyz\<Left>"
1265 cabbr XXX <C-R>=asdfasdf<CR>
1266 cabbr YYY xyz<Left>
1267
1268Michael Dietrich: maximized gvim sometimes displays output of external command
1269partly. (2006 Dec 7)
1270
1271In FileChangedShell command it's no longer allowed to switch to another
1272buffer. But the changed buffer may differ from the current buffer, how to
1273reload it then?
1274
1275New syntax files for fstab and resolv from Radu Dineiu, David Necas did
1276previous version.
1277
1278For Aap: include a config.arg.example file with hints how to use config.arg.
1279
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001280Command line completion when 'cmdheight' is maximum and 'wildmenu' is set,
1281only one buffer line displayed, causes display errors.
1282
1283Completing with 'wildmenu' and using <Up> and <Down> to move through directory
1284tree stops unexpectedly when using ":cd " and entering a directory that
1285doesn't contain other directories.
1286
Bram Moolenaard58e9292011-02-09 17:07:58 +01001287Setting 'background' resets the Normal background color:
1288 highlight Normal ctermbg=DarkGray
1289 set background=dark
1290This is undesired, 'background' is supposed to tell Vim what the background
1291color is, not reset it.
1292
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001293Linux distributions:
1294- Suggest compiling xterm with --enable-tcap-query, so that nr of colors is
1295 known to Vim. 88 colors instead of 16 works better. See ":help
1296 xfree-xterm".
1297- Suggest including bare "vi" and "vim" with X11, syntax, etc.
1298
1299Completion menu: For a wrapping line, completing a long file name, only the
1300start of the path is shown in the menu. Should move the menu to the right to
1301show more text of the completions. Shorten the items that don't fit in the
1302middle?
1303
1304When running inside screen it's possible to kill the X server and restart it
Bram Moolenaare37d50a2008-08-06 17:06:04 +00001305(using pty's the program can keep on running). Vim dies because it loses the
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001306connection to the X server. Can Vim simply quit using the X server instead of
1307dying? Also relevant when running in a console.
1308
1309Accessing file#var in a function should not need the g: prepended.
1310
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001311When exiting detects a modified buffer, instead of opening the buffer in the
1312current tab, use an existing tab, if possible. Like finding a window where
1313the buffer is displayed. (Antonios Tsakiridis)
1314
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001315When ":cn" moves to an error in the same line the message isn't shortened.
1316Only skip shortening for ":cc"?
1317
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001318Write "making vim work better" for the docs (mostly pointers): *nice*
1319 - sourcing $VIMRUNTIME/vimrc_example.vim
1320 - setting 'mouse' to "a"
1321 - getting colors in xterm
1322 - compiling Vim with X11, GUI, etc.
1323
1324Problem with ":call" and dictionary function. Hari Krishna Dara, Charles
1325Campbell 2006 Jul 06.
1326
1327Syntax HL error caused by "containedin". (Peter Hodge, 2006 Oct 6)
1328
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001329A custom completion function in a ":command" cannot be a Funcref. (Andy
1330Wokula, 2007 Aug 25)
1331
1332Problem with using :redir in user command completion function? (Hari Krishna
1333Dara, 2006 June 21)
1334
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001335Another resizing problem when setting 'columns' and 'lines' to a very large
1336number. (Tony Mechelynck, 2007 Feb 6)
1337
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001338After starting Vim, using '0 to jump somewhere in a file, ":sp" doesn't center
1339the cursor line. It works OK after some other commands.
1340
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001341Win32: Is it possible to have both postscript and Win32 printing?
1342Does multi-byte printing with ":hardcopy" work? Add remark in documentation
1343about this.
1344
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001345Check: Running Vim in a console and still having connect to the X server for
1346copy/paste: is stopping the X server handled gracefully? Should catch the X
1347error and stop using the connection to the server.
1348
1349Problem with 'cdpath' on MS-Windows when a directory is equal to $HOME. (2006
1350Jul 26, Gary Johnson)
1351
Bram Moolenaarff312a42010-05-16 15:14:25 +02001352Using UTF-8 character with ":command" does not work properly. (Matt Wozniski,
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010013532008 Sep 29)
1354
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001355In the Netbeans interface add a "vimeval" function, so that the other side can
1356check the result of has("patch13").
1357
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001358Cursor line at bottom of window instead of halfway after saving view and
1359restoring. Only with 'nowrap'. (Robert Webb, 2008 Aug 25)
1360
Bram Moolenaar00654022011-02-25 14:42:19 +01001361Netrw has trouble executing autocommands only for a directory. Add <isdir>
1362and <notisdir> to autocommand patterns? Also <isfile>?
1363
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001364Add command modifier that skips wildcard expansion, so that you don't need to
1365put backslashes before special chars, only for white space.
1366
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001367Syntax HL: open two windows on the same C code, delete a ")" in one window,
1368resulting in highlighted "{" in that window, not in the other.
1369
1370In mswin.vim: Instead of mapping <C-V> for Insert mode in a complicated way,
1371can it be done like ":imap <C-V> <MiddleMouse>" without negative side effects?
1372
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001373GTK: when the Tab pages bar appears or disappears while the window is
1374maximized the window is no longer maximized. Patch that has some idea but
1375doesn't work from Geoffrey Antos, 2008 May 5.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001376Also: the window may no longer fit on the screen, thus the command line is not
1377visible.
1378
Bram Moolenaar81af9252010-12-10 20:35:50 +01001379When right after "vim file", "M" then CTRL-W v the windows are scrolled
1380differently and unexpectedly. Caused by patch 7.2.398?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001381
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001382The magic clipboard format "VimClipboard2" appears in several places. Should
1383be only one.
1384
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001385"vim -C" often has 'nocompatible', because it's set somewhere in a startup
1386script. Do "set compatible" after startup?
1387
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001388It's difficult to debug numbered functions (function in a Dictionary). Print
1389the function name before resolving it to a number?
1390 let d = {}
1391 fun! d.foo()
1392 echo "here"
1393 endfun
1394 call d.foo(9)
1395
1396Add a mark for the other end of the Visual area (VIsual pos). '< and '> are
1397only set after Visual moded is ended.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001398Also add a variable for the Visual mode. So that this mode and '< '> can be
1399used to set what "gv" selects. (Ben Schmidt)
1400
1401Win32: When running ":make" and 'encoding' differs from the system locale, the
1402output should be converted. Esp. when 'encoding' is "utf-8". (Yongwei Wu)
1403Should we use 'termencoding' for this?
1404
Bram Moolenaar996343d2010-07-04 22:20:21 +02001405Win32, NTFS: When editing a specific infostream directly and 'backupcopy' is
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001406"auto" should detect this situation and work like 'backupcopy' is "yes". File
1407name is something like "c:\path\foo.txt:bar", includes a colon. (Alex
1408Jakushev, 2008 Feb 1)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001409
1410Small problem displaying diff filler line when opening windows with a script.
1411(David Luyer, 2007 Mar 1 ~/Mail/oldmail/mool/in.15872 )
1412
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001413Is it allowed that 'backupext' is empty? Problems when backup is in same dir
1414as original file? If it's OK don't compare with 'patchmode'. (Thierry Closen)
1415
1416Patch for supporting count before CR in quickfix window. (AOYAMA Shotaro, 2007
1417Jan 1)
1418
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001419Patch for adding ":lscscope". (Navdeep Parhar, 2007 Apr 26; update 2008 Apr
142023)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001421
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001422":mkview" isn't called with the right buffer argument. Happens when using
1423tabs and the autocommand "autocmd BufWinLeave * mkview". (James Vega, 2007
1424Jun 18)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001425
1426xterm should be able to pass focus changes to Vim, so that Vim can check for
1427buffers that changed. Perhaps in misc.c, function selectwindow().
1428Xterm 224 supports it!
1429
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001430When completing from another file that uses a different encoding completion
1431text has the wrong encoding. E.g., when 'encoding' is utf-8 and file is
1432latin1. Example from Gombault Damien, 2007 Mar 24.
1433
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001434Is it possible to use "foo#var" instead of "g:foo#var" inside a function?
1435
1436Syntax HL: When using "nextgroup" and the group has an empty match, there is
1437no search at that position for another match. (Lukas Mai, 2008 April 11)
1438
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001439In gvim the backspace key produces a backspace character, but on Linux the
1440VERASE key is Delete. Set VERASE to Backspace? (patch by Stephane Chazelas,
14412007 Oct 16)
1442
1443TermResponse autocommand isn't always triggered when using vimdiff. (Aron
1444Griffis, 2007 Sep 19)
1445
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001446Create a gvimtutor.1 file and change Makefiles to install it.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001447
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001448When 'encoding' is utf-8 typing text at the end of the line causes previously
1449typed characters to be redrawn. Caused by patch 7.1.329. (Tyler Spivey, 2008
1450Sep 3, 11)
1451
1452When Vim in an xterm owns the selection and the user does ":shell" Vim doesn't
1453respond to selection requests. Invoking XtDisownSelection() before executing
1454the shell doesn't help. Would require forking and doing a message loop, like
1455what happens for the GUI.
1456
1457X11: Putting more than about 262040 characters of text on the clipboard and
1458pasting it in another Vim doesn't work. (Dominique Pelle, 2008 Aug 21-23)
1459clip_x11_request_selection_cb() is called with zero value and length.
1460Also: Get an error message from free() in the process that owns the selection.
1461Seems to happen when the selection is requested the second time, but before
1462clip_x11_convert_selection_cb() is invoked, thus in X library code.
1463
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001464":vimgrep" does not recognize a recursive symlink. Is it possible to detect
1465this, at least for Unix (using device/inode)?
1466
1467When switching between windows the cursor is often put in the middle.
1468Remember the relative position and restore that, just like lnum and col are
1469restored. (Luc St-Louis)
1470
Bram Moolenaarb2c03502010-07-02 20:20:09 +02001471Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn Winckler,
14722010 Jun 30)
1473
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001474
Bram Moolenaar00654022011-02-25 14:42:19 +01001475At next release:
1476- Rename src/Makefile and create a new one like toplevel Makefile that
1477 creates auto/config.mk when it's not there? (Ben Schmidt, 2011 Feb 11)
1478
1479
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001480More patches:
Bram Moolenaar26dcc7e2010-07-14 22:35:55 +02001481- Another patch for Javascript indenting. (Hari Kumar, 2010 Jul 11)
1482 Needs a few tests.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001483- Add 'cscopeignorecase' option. (Liang Wenzhi, 2006 Sept 3)
1484- Argument for feedkeys() to prepend to typeahead (Yakov Lerner, 2006 Oct
1485 21)
1486- Load intl.dll too, not only libintl.dll. (Mike Williams, 2006 May 9, docs
1487 patch May 10)
1488- Extra argument to strtrans() to translate special keys to their name (Eric
1489 Arnold, 2006 May 22)
1490- 'threglookexp' option: only match with first word in thesaurus file.
1491 (Jakson A. Aquino, 2006 Jun 14)
1492- Mac: indicate whether a buffer was modified. (Nicolas Weber, 2006 Jun 30)
1493- Allow negative 'nrwidth' for left aligning. (Nathan Laredo, 2006 Aug 16)
1494- ml_append_string(): efficiently append to an existing line. (Brad
1495 Beveridge, 2006 Aug 26) Use in some situations, e.g., when pasting a
1496 character at a time?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001497- recognize hex numbers better. (Mark Manning, 2006 Sep 13)
Bram Moolenaare37d50a2008-08-06 17:06:04 +00001498- Add <AbbrExpand> key, to expand an abbreviation in a mapping. (Kana
1499 Natsuno, 2008 Jul 17)
1500- Add 'wspara' option, also accept blank lines like empty lines for "{" and
1501 "}". (Mark Lundquist, 2008 Jul 18)
1502- Patch to add CTRL-T to delete part of a path on cmdline. (Adek, 2008 Jul
1503 21)
1504- Instead of creating a copy of the tutor in all the shell scripts, do it in
1505 vimtutor.vim. (Jan Minar, 2008 Jul 20)
1506- When fsync() fails there is no hint about what went wrong. Patch by Ben
1507 Schmidt, 2008 Jul 22.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001508- testdir/Make_dos_sh.mak for running tests with MingW. (Bill Mccarthy, 2008
1509 Sep 13)
1510- Patch for adding "space" item in 'listchars'. (Jérémie Roquet, 2009 Oct 29,
1511 Docs patch Oct 30)
Bram Moolenaar26dcc7e2010-07-14 22:35:55 +02001512- Replace ccomplete.vim by cppcomplete.vim from www.vim.org? script 1520 by
1513 Vissale Neang. (Martin Stubenschrott) Asked Vissale to make the scripts
1514 more friendly for the Vim distribution.
1515 New version received 2008 Jan 6.
1516 No maintenance in two years...
Bram Moolenaar4d32c2d2010-07-18 22:10:01 +02001517- Patch to access screen under Python. (Marko Mahni, 2010 Jul 18)
Bram Moolenaar5aae4192010-08-03 23:00:38 +02001518- Patch to open dropped files in new tabs. (Michael Trim, 2010 Aug 3)
Bram Moolenaard68071d2006-05-02 22:08:30 +00001519
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001520Awaiting updated patches:
Bram Moolenaarf9393ef2006-04-24 19:47:27 +000015219 Mac unicode patch (Da Woon Jung, Eckehard Berns):
1522 8 Add patch from Muraoka Taro (Mar 16) to support input method on Mac?
1523 New patch 2004 Jun 16
1524 - selecting proportional font breaks display
1525 - UTF-8 text causes display problems. Font replacement causes this.
1526 - Command-key mappings do not work. (Alan Schmitt)
1527 - With 'nopaste' pasting is wrong, with 'paste' Command-V doesn't work.
1528 (Alan Schmitt)
1529 - remove 'macatsui' option when this has been fixed.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001530 - when 'macatsui' is off should we always convert to "macroman" and ignore
1531 'termencoding'?
Bram Moolenaar76b92b22006-03-24 22:46:53 +000015329 HTML indenting can be slow. Caused by using searchpair(). Can search()
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001533 be used instead? A.Politz is looking into a solution.
Bram Moolenaarf193fff2006-04-27 00:02:13 +000015348 Win32: Add minidump generation. (George Reilly, 2006 Apr 24)
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015358 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001536 Aric Blumer has a patch for this. He will update the patch for 6.3.
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015377 Completion of network shares, patch by Yasuhiro Matsumoto.
1538 Update 2004 Sep 6.
1539 How does this work? Missing comments.
1540- Patch for 'breakindent' option: repeat indent for wrapped line. (Vaclav
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001541 Smilauer, 2004 Sep 13, fix Oct 31, update 2007 May 30)
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001542 Version for latest MacVim: Tobia Conforto, 2009 Nov 23
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015438 Add a few more command names to the menus. Patch from Jiri Brezina
Bram Moolenaar8cacf352006-04-15 20:27:24 +00001544 (28 feb 2002). Will mess the translations...
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015457 ATTENTION dialog choices are more logical when "Delete it' appears
1546 before "Quit". Patch by Robert Webb, 2004 May 3.
1547- Include flipcase patch: ~/vim/patches/wall.flipcase2 ? Make it work
1548 for multi-byte characters.
1549- Win32: add options to print dialog. Patch from Vipin Aravind.
1550- Patch to add highlighting for whitespace. (Tom Schumm, 2003 Jul 5)
1551 use the patch that keeps using HLF_8 if HLF_WS has not
1552 been given values.
1553 Add section in help files for these highlight groups?
15548 "fg" and "bg" don't work in an xterm. Get default colors from xterm
Bram Moolenaar18144c82006-04-12 21:52:12 +00001555 with an ESC sequence.
1556 xterm can send colors for many things. E.g. for the cursor:
1557 <Esc>]12;?<Bel>
1558 Can use this to get the background color and restore the colors on exit.
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015597 Add "DefaultFG" and "DefaultBG" for the colors of the menu. (Marcin
1560 Dalecki has a patch for Motif and Carbon)
1561- Add possibility to highlight specific columns (for Fortran). Or put a
1562 line in between columns (e.g., for 'textwidth').
1563 Patch to add 'hlcolumn' from Vit Stradal, 2004 May 20.
15648 Add functions:
1565 gettext() Translate a message. (Patch from Yasuhiro Matsumoto)
1566 Update 2004 Sep 10
1567 Another patch from Edward L. Fox (2005 Nov 24)
1568 Search in 'runtimepath'?
Bram Moolenaar8cacf352006-04-15 20:27:24 +00001569 More docs needed about how to use this.
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001570 How to get the messages into the .po files?
Bram Moolenaar72597a52010-07-18 15:31:08 +02001571 strchars() Like strlen() and strwidth() but counting characters
1572 instead of bytes.
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001573 confirm() add "flags" argument, with 'v' for vertical
1574 layout and 'c' for console dialog. (Haegg)
1575 Flemming Madsen has a patch for the 'c' flag
1576 (2003 May 13)
1577 raisewin() raise gvim window (see HierAssist patch for
1578 Tcl implementation ~/vim/HierAssist/ )
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00001579 taglist() add argument to specify maximum number of matches.
1580 useful for interactive things or completion.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00001581 col('^') column of first non-white character.
1582 Can use "len(substitute(getline('.'), '\S.*', '', ''))
1583 + 1", but that's ugly.
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015847 Add patch from Benoit Cerrina to integrate Vim and Perl functions
1585 better. Now also works for Ruby (2001 Nov 10)
1586- Patch from Herculano de Lima Einloft Neto for better formatting of the
1587 quickfix window (2004 dec 2)
15887 When 'rightleft' is set, the search pattern should be displayed right
1589 to left as well? See patch of Dec 26. (Nadim Shaikli)
Bram Moolenaar8cacf352006-04-15 20:27:24 +000015908 Option to lock all used memory so that it doesn't get swapped to disk
1591 (uncrypted). Patch by Jason Holt, 2003 May 23. Uses mlock.
Bram Moolenaar768b8c42006-03-04 21:58:33 +000015927 Add ! register, for shell commands. (patch from Grenie)
15938 In the gzip plugin, also recognize *.gz.orig, *.gz.bak, etc. Like it's
1594 done for filetype detection. Patch from Walter Briscoe, 2003 Jul 1.
15957 Add a "-@ filelist" argument: read file names from a file. (David
1596 Kotchan has a patch for it)
15978 Include a connection to an external program through a pipe? See
1598 patches from Felbinger for a mathematica interface.
1599 Or use emacs server kind of thing?
16007 Add ":justify" command. Patch from Vit Stradal 2002 Nov 25.
1601- findmatch() should be adjusted for Lisp. See remark at
1602 get_lisp_indent(). Esp. \( and \) should be skipped. (Dorai Sitaram,
1603 incomplete patch Mar 18)
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001604- For GUI Find/Replace dialog support using a regexp. Patch for Motif
1605 and GTK by degreneir (nov 10 and nov 18).
1606- Patch for "paranoid mode" by Kevin Collins, March 7. Needs much more work.
1607
1608
Bram Moolenaar071d4272004-06-13 20:20:40 +00001609Vi incompatibility:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001610- Try new POSIX tests, made after my comments. (Geoff Clare, 2005 April 7)
1611 Version 1.5 is in ~/src/posix/1.5. (Lynne Canal)
Bram Moolenaar071d4272004-06-13 20:20:40 +000016128 With undo/redo only marks in the changed lines should be changed. Other
1613 marks should be kept. Vi keeps each mark at the same text, even when it
1614 is deleted or restored. (Webb)
1615 Also: A mark is lost after: make change, undo, redo and undo.
1616 Example: "{d''" then "u" then "d''": deletes an extra line, because the ''
1617 position is one line down. (Veselinovic)
Bram Moolenaar071d4272004-06-13 20:20:40 +000016188 When stdin is not a tty, and Vim reads commands from it, an error should
1619 make Vim exit.
16207 Unix Vim (not gvim): Typing CTRL-C in Ex mode should finish the line
1621 (currently you can continue typing, but it's truncated later anyway).
1622 Requires a way to make CTRL-C interrupt select() when in cooked input.
16238 When loading a file in the .exrc, Vi loads the argument anyway. Vim skips
1624 loading the argument if there is a file already. When no file argument
1625 given, Vi starts with an empty buffer, Vim keeps the loaded file. (Bearded)
16266 In Insert mode, when using <BS> or <Del>, don't wipe out the text, but
1627 only move back the cursor. Behaves like '$' in 'cpoptions'. Use a flag
1628 in 'cpoptions' to switch this on/off.
16298 When editing a file which is a symbolic link, and then opening another
1630 symbolic link on the same file, Vim uses the name of the first one.
1631 Adjust the file name in the buffer to the last one used? Use several file
1632 names in one buffer???
1633 Also: When first editing file "test", which is symlink to "test2", and
1634 then editing "test2", you end up editing buffer "test" again. It's not
1635 logical that the name that was first used sticks with the buffer.
16367 The ":undo" command works differently in Ex mode. Edit a file, make some
1637 changes, "Q", "undo" and _all_ changes are undone, like the ":visual"
1638 command was one command.
Bram Moolenaareaa48e72005-06-08 22:07:37 +00001639 On the other hand, an ":undo" command in an Ex script only undoes the last
1640 change (e.g., use two :append commands, then :undo).
Bram Moolenaar071d4272004-06-13 20:20:40 +000016417 The ":map" command output overwrites the command. Perhaps it should keep
1642 the ":map" when it's used without arguments?
16437 CTRL-L is not the end of a section? It is for Posix! Make it an option.
16447 Implement 'prompt' option. Init to off when stdin is not a tty.
16457 CTRL-T in Insert mode inserts 'shiftwidth' of spaces at the cursor. Add a
1646 flag in 'cpoptions' for this.
16477 Add a way to send an email for a crashed edit session. Create a file when
1648 making changes (containing name of the swap file), delete it when writing
1649 the file. Supply a program that can check for crashed sessions (either
1650 all, for a system startup, or for one user, for in a .login file).
16517 Vi doesn't do autoindenting when input is not from a tty (in Ex mode).
16527 "z3<CR>" should still use the whole window, but only redisplay 3 lines.
16537 ":tag xx" should move the cursor to the first non-blank. Or should it go
1654 to the match with the tag? Option?
16557 Implement 'autoprint'/'ap' option.
16567 Add flag in 'cpoptions' that makes <BS> after a count work like <Del>
1657 (Sayre).
16587 Add flag in 'cpoptions' that makes operator (yank, filter) not move the
1659 cursor, at least when cancelled. (default Vi compatible).
Bram Moolenaar071d4272004-06-13 20:20:40 +000016607 This Vi-trick doesn't work: "Q" to go to Ex mode, then "g/pattern/visual".
1661 In Vi you can edit in visual mode, and when doing "Q" you jump to the next
1662 match. Nvi can do it too.
16637 Support '\' for line continuation in Ex mode for these commands: (Luebking)
1664 g/./a\ g/pattern1/ s/pattern2/rep1\\
1665 line 1\ line 2\\
1666 line 2\ line 3\\
1667 . line4/
16686 ":e /tmp/$tty" doesn't work. ":e $uid" does. Is $tty not set because of
1669 the way the shell is started?
16706 Vi compatibility (optional): make "ia<CR><ESC>10." do the same strange
1671 thing. (only repeat insert for the first line).
1672
1673
Bram Moolenaar071d4272004-06-13 20:20:40 +00001674GTK+ GUI known bugs:
Bram Moolenaar768b8c42006-03-04 21:58:33 +000016759 Crash with X command server over ssh. (Ciaran McCreesh, 2006 Feb 6)
Bram Moolenaar071d4272004-06-13 20:20:40 +000016768 GTK 2: Combining UTF-8 characters not displayed properly in menus (Mikolaj
1677 Machowski) They are displayed as separate characters. Problem in
1678 creating a label?
Bram Moolenaar6e7c7f32005-08-24 22:16:11 +000016798 GTK 2: Combining UTF-8 characters are sometimes not drawn properly.
1680 Depends on the font size, "monospace 13" has the problem. Vim seems to do
1681 everything right, must be a GTK bug. Is there a way to work around it?
Bram Moolenaar071d4272004-06-13 20:20:40 +000016829 Can't paste a Visual selection from GTK-gvim to vim in xterm or Motif gvim
1683 when it is longer than 4000 characters. Works OK from gvim to gvim and
1684 vim to vim. Pasting through xterm (using the shift key) also works.
1685 It starts working after GTK gvim loses the selection and gains it again.
Bram Moolenaare580b0c2006-03-21 21:33:03 +00001686- Gnome2: When moving the toolbar out of the dock, so that it becomes
1687 floating, it can no longer be moved. Therefore making it float has been
1688 blocked for now.
1689
Bram Moolenaar071d4272004-06-13 20:20:40 +00001690
1691Win32 GUI known bugs:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00001692- Win32: tearoff menu window should have a scrollbar when it's taller than
1693 the screen.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000016948 non-ASCII font names don't work. Need to convert from 'encoding' and use
1695 the wide functions.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016968 On Windows 98 the unicows library is needed to support functions with UCS2
1697 file names. Can we load unicows.dll dynamically?
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +020016988 Win32: With two monitors, gvim partly on both, and adding/removing a
1699 scrollbar Vim resizes and moves to one of the monitors. (Chris Monkiewicz,
1700 2008 Oct)
Bram Moolenaar1423b9d2006-05-07 15:16:06 +000017018 When the primary monitor is below or right of the secondary monitor and
1702 Vim is on the secondary monitor it will often move to the primary monitor.
1703 Window position coordinates can be negative. (James Harvey)
Bram Moolenaar24ea3ba2010-09-19 19:01:21 +02001704 When the primary monitor is on the right, coordinates on the left monitor
1705 are negative. Clamping to zero means gvim jups to the primary monitor.
1706 (Michael Wookey, 2010 Aug 17)
1707 Probably the same issue: When the GUI tab pages line is displayed Vim
1708 jumps from the secondary to the primary monitor. (Afton Lewis, 2007 Mar 9)
1709 Possible solution using GetSystemMetrics() (Sergey Khorev, 2010 Aug 18)
Bram Moolenaar071d4272004-06-13 20:20:40 +000017108 The -P argument doesn't work very well with many MDI applications.
1711 The last argument of CreateWindowEx() should be used, see MSDN docs.
1712 Tutorial: http://win32assembly.online.fr/tut32.html
17138 In eval.c, io.h is included when MSWIN32 is defined. Shouldn't this be
1714 WIN32? Or can including io.h be moved to vim.h? (Dan Sharp)
17157 Windows XP: When using "ClearType" for text smoothing, a column of yellow
1716 pixels remains when typing spaces in front of a "D" ('guifont' set to
1717 "lucida_console:h8").
17186 Win32 GUI: With "-u NONE -U NONE" and doing "CTRL-W v" "CTRL-W o", the ":"
1719 of ":only" is highlighted like the cursor. (Lipelis)
Bram Moolenaard4755bb2004-09-02 19:12:26 +000017208 When 'encoding' is "utf-8", should use 'guifont' for both normal and wide
1721 characters to make Asian languages work. Win32 fonts contain both
1722 type of characters.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017237 When font smoothing is enabled, redrawing can become very slow. The reason
1724 appears to be drawing with a transparent background. Would it be possible
1725 to use an opaque background in most places?
17268 Use another default for 'termencoding': the active codepage. Means that
1727 when 'encoding' is changed typing characters still works properly.
1728 Alternative: use the Unicode functions to obtain typed characters.
17298 Win32: Multi-byte characters are not displayed, even though the same font
1730 in Notepad can display them. (Srinath Avadhanula) Try with the
1731 UTF-8-demo.txt page with Andale Mono.
17327 The cursor color indicating IME mode doesn't work properly. (Shizhu Pan,
1733 2004 May 9)
17348 Win32: When clicking on the gvim title bar, which gives it focus, produces
1735 a file-changed dialog, after clicking on a button in that dialog the gvim
1736 window follows the mouse. The button-up event is lost. Only with
1737 MS-Windows 98?
1738 Try this: ":set sw ts", get enter-prompt, then change the file in a
1739 console, go back to Vim and click "reload" in the dialog for the changed
1740 file: Window moves with the cursor!
1741 Put focus event in input buffer and let generic Vim code handle it?
Bram Moolenaar071d4272004-06-13 20:20:40 +000017428 Win32: When mouse is hidden and in the toolbar, moving it won't make it
1743 appear. (Sami Salonen)
Bram Moolenaar071d4272004-06-13 20:20:40 +000017448 Win32 GUI: With maximized window, ":set go-=r" doesn't use the space that
1745 comes available. (Poucet) It works OK on Win 98 but doesn't work on Win
1746 NT 4.0. Leaves a grey area where the scrollbar was. ":set go+=r" also
1747 doesn't work properly.
17488 When Vim is minimized and when maximizing it a file-changed dialog pops
1749 up, Vim isn't maximized. It should be done before the dialog, so that it
1750 appears in the right position. (Webb)
17519 When selecting at the more-prompt or hit-enter-prompt, the right mouse
1752 button doesn't give popup menu.
1753 At the hit-enter prompt CTRL-Y doesn't work to copy the modeless
1754 selection.
1755 On the command line, don't get a popup menu for the right mouse button.
1756 Let the middle button paste selected text (not the clipboard but the
1757 non-Visual selection)? Otherwise CTRL-Y has to be used to copy the text.
17588 When 'grepprg' doesn't execute, the error only flashes by, the
1759 user can hardly see what is wrong. (Moore)
1760 Could use vimrun with an "-nowait" argument to only wait when an error
1761 occurs, but "command.com" doesn't return an error code.
17628 When the 'shell' cannot be executed, should give an appropriate error msg.
1763 Esp. for a filter command, currently it only complains the file could not
1764 be read.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017657 Add an option to add one pixel column to the character width? Lucida
1766 Console italic is wider than the normal font ("d" overlaps with next char).
1767 Opposite of 'linespace': 'columnspace'.
17687 At the hit-enter prompt scrolling now no longer works. Need to use the
1769 keyboard to get around this. Pretend <CR> was hit when the user tries to
Bram Moolenaar4463f292005-09-25 22:20:24 +00001770 scroll?
Bram Moolenaar071d4272004-06-13 20:20:40 +000017717 Scrollbar width doesn't change when selecting other windows appearance.
1772 Also background color of Toolbar and rectangle below vert. scrollbar.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017736 Drawing text transparently doesn't seem to work (when drawing part cursor).
17748 CTRL key doesn't always work in combination with ALT key. It does work
1775 for function keys, not for alphabetic characters. Perhaps this is because
1776 CTRL-ALT is used by Windows as AltGr?
17778 CTRL-- doesn't work for AZERTY, because it's CTRL-[ for QWERTY. How do we
1778 know which keyboard is being used?
17797 When scrolling, and a background color is dithered, the dither pattern
1780 doesn't always join correctly between the scrolled area and the new drawn
1781 area (Koloseike).
17828 When gui_init_font() is called with "*", p_guifont is freed while it might
1783 still be used somewhere. This is too tricky, do the font selection first,
1784 then set the new font by name (requires putting all logfont parameters in
1785 the font name).
1786
1787
1788Athena and Motif:
Bram Moolenaar5313dcb2005-02-22 08:56:13 +000017896 New Motif toolbar button from Marcin Dalecki:
1790 - When the mouse pointer is over an Agide button the red becomes black.
1791 Something with the way colors are specified in the .xpm file.
1792 - The pixmap is two pixels smaller than it should be. The gap is filled
1793 with grey instead of the current toolbar background color.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017949 Can configure be changed to disable netbeans if the Xpm library is
1795 required and it's missing?
17968 When using the resource "Vim*borderwidth 2" the widgets are positioned
1797 wrong.
17989 XIM is disabled by default for SGI/IRIX. Fix XIM so that 'imdisable' can
1799 be off by default.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000018009 XIM doesn't work properly for Athena/Motif. (Yasuhiro Matsumoto) For now,
Bram Moolenaar071d4272004-06-13 20:20:40 +00001801 keep XIM active at all times when the input method has the preediting
1802 flag.
18038 X11: A menu that contains an umlaut is truncated at that character.
1804 Happens when the locale is "C", which uses ASCII instead of IS0-8859-1.
1805 Is there a way to use latin1 by default? Gnome_init() seems to do this.
18068 Perhaps use fontsets for everything?
18076 When starting in English and switching the language to Japanese, setting
1808 the locale with ":lang", 'guifontset' and "hi menu font=", deleting all
1809 menus and setting them again, the menus don't use the new font. Most of
1810 the tooltips work though...
18117 Motif: when using a file selection dialog, the specified file name is not
1812 always used (when specifying a filter or another directory).
18138 When 'encoding' is different from the current locale (e.g., utf-8) the
1814 menu strings don't work. Requires conversion from 'encoding' to the
1815 current locale. Workaround: set 'langmenu'.
1816
1817
1818Athena GUI:
Bram Moolenaar166af9b2010-11-16 20:34:40 +010018199 The first event for any button in the menu or toolbar appears to get lost.
1820 The second click on a menu does work.
Bram Moolenaar071d4272004-06-13 20:20:40 +000018219 When dragging the scrollbar thumb very fast, focus is only obtained in
1822 the scrollbar itself. And the thumb is no longer updated when moving
1823 through files.
18247 The file selector is not resizable. With a big font it is difficult to
1825 read long file names. (Schroeder)
18264 Re-write the widget attachments and code so that we will not have to go
1827 through and calculate the absolute position of every widget every time the
1828 window is refreshed/changes size. This will help the "flashing-widgets"
1829 problem during a refresh.
18305 When starting gvim with all the default colors and then typing
1831 ":hi Menu guibg=cyan", the menus change color but the background of the
1832 pullright pixmap doesn't change colors.
1833 If you type ":hi Menu guibg=cyan font=anyfont", then the pixmap changes
1834 colors as it should.
1835 Allocating a new pixmap and setting the resource doesn't change the
1836 pullright pixmap's colors. Why? Possible Athena bug?
1837
1838
1839Motif GUI:
Bram Moolenaar00659062010-09-21 22:34:02 +02001840- gui_mch_browsedir() is missing, browsedir() doesn't work nicely.
Bram Moolenaar071d4272004-06-13 20:20:40 +000018417 Use XmStringCreateLocalized() instead of XmStringCreateSimple()?
1842 David Harrison says it's OK (it exists in Motif 1.2).
Bram Moolenaar071d4272004-06-13 20:20:40 +000018438 Lesstif: When deleting a menu that's torn off, the torn off menu becomes
1844 very small instead of disappearing. When closing it, Vim crashes.
1845 (Phillipps)
1846
1847
1848GUI:
18499 On Solaris, creating the popup menu causes the right mouse button no
1850 longer to work for extending the selection. (Halevy)
18519 When running an external program, it can't always be killed with CTRL-C.
Bram Moolenaar51ac12f2005-07-02 23:21:11 +00001852 e.g., on Solaris 5.5, when using "K" (Keech). Other 'guipty' problems on
Bram Moolenaar071d4272004-06-13 20:20:40 +00001853 Solaris 2.6. (Marley)
18549 On Solaris: Using a "-geometry" argument, bigger than the window where Vim
1855 is started from, causes empty lines below the cmdline. (raf)
18568 X11 GUI: When menu is disabled by excluding 'm' from 'guioptions', ALT key
1857 should not be used to trigger a menu (like the Win32 version).
18588 When setting 'langmenu', it should be effective immediately. Store both
1859 the English and the translated text in the menu structure. Re-generate
1860 the translation when 'langmenu' has changed.
18618 Basic flaw in the GUI code: NextScreen is updated before calling
1862 gui_write(), but the GUI code relies on NextScreen to represent the state
1863 of where it is processing the output.
1864 Need better separation of Vim core and GUI code.
18658 When fontset support is enabled, setting 'guifont' to a single font
1866 doesn't work.
18678 Menu priority for sub-menus for: Amiga, BeOS.
Bram Moolenaar1056d982006-03-09 22:37:52 +000018688 When translating menus ignore the part after the Tab, the shortcut. So
1869 that the same menu item with a different shortcut (e.g., for the Mac) are
1870 still translated.
Bram Moolenaar446beb42011-05-10 17:18:44 +020018718 Add menu separators for Amiga.
Bram Moolenaar071d4272004-06-13 20:20:40 +000018728 Add way to specify the file filter for the browse dialog. At least for
1873 browse().
18748 Add dialog for search/replace to other GUIs? Tk has something for this,
1875 use that code? Or use console dialog.
18768 When selecting a font with the font dialog and the font is invalid, the
1877 error message disappears too quick.
Bram Moolenaar5313dcb2005-02-22 08:56:13 +000018787 More features in the find/replace dialog:
1879 - regexp on/off
1880 - search in selection/buffer/all buffers/directory
1881 when all buffers/directory is used:
1882 - filter for file name
1883 when directory is used:
1884 - subdirectory on/off
1885 - top directory browser
Bram Moolenaar071d4272004-06-13 20:20:40 +000018868 gui_check_colors() is not called at the right moment. Do it much later,
1887 to avoid problems.
18888 gui_update_cursor() is called for a cursor shape change, even when there
1889 are mappings to be processed. Only do something when going to wait for
1890 input. Or maybe every 100 ms?
18918 X11: When the window size is reduced to fit on screen, there are blank
1892 lines below the text and bottom scrollbar. "gvim -geometry 80x78+0+0".
1893 When the "+0+0" is omitted it works.
18948 When starting an external command, and 'guipty' set, BS and DEL are mixed
1895 up. Set erase character somehow?
18968 A dead circumflex followed by a space should give the '^' character
1897 (Rommel). Look how xterm does this.
1898 Also: Bednar has some code for dead key handling.
1899 Also: Nedit 5.0.2 with USE_XMIM does it right. (Gaya)
19008 The compose key doesn't work properly (Cepas). Both for Win32 and X11.
19017 The cursor in an inactive window should be hollow. Currently it's not
1902 visible.
19037 GUI on Solaris 2.5.1, using /usr/dt/..: When gvim starts, cursor is
1904 hollow, after window lowered/raised it's OK. (Godfrey)
19057 When starting GUI with ":gui", and window is made smaller because it
1906 doesn't fit on the screen, there is an extra redraw.
19078 When setting font with .Xdefaults, there is an extra empty line at the
1908 bottom, which disappears when using ":set guifont=<Tab>". (Chadzelek)
19098 When font shape changes, but not the size, doing ":set font=" does not
1910 redraw the screen with the new font. Also for Win32.
1911 When the size changes, on Solaris 2.5 there isn't a redraw for the
1912 remaining part of the window (Phillipps).
1913- Flashes really badly in certain cases when running remotely from a Sun.
19144 Re-write the code so that the highlighting isn't changed multiple times
1915 when doing a ":hi clear". The color changes happen three or more times
1916 currently. This is very obvious on a 66Mhz 486.
1917
1918
1919MSDOS/DJGPP:
19209 Pressing CTRL-C often crashes the console Vim runs in. (Ken Liao)
1921 When 'bioskey' isn't set it doesn't happen. Could be a problem with the
1922 BIOS emulation of the console. Version 5.6 already had this problem.
19238 DJGPP: "cd c:" can take us to a directory that no longer exists.
1924 change_drive() doesn't check this. How to check for this error?
19259 The 16 bit version runs out of memory very quickly. Should find unused
Bram Moolenaare2f98b92006-03-29 21:18:24 +00001926 code and reduce static data. Resetting 'writebackup' helps to be able to
1927 write a file.
Bram Moolenaar071d4272004-06-13 20:20:40 +000019289 Crash when running on Windows 98 in a console window and pressing CTRL-C.
1929 Happens now and then. When debugging Vim in gdb this also happens. Since
1930 the console crashes, might be a bug in the DOS console. Resetting
1931 'bioskey' avoids it, but then CTRL-C doesn't work.
19329 DOS: Make CTRL-Fx and ALT-Fx work.
1933 CTRL-F1 = CE-5E, CTRL-F2 = CE-5F, .., CTRL-F10 = CE-67
1934 ALT-F1 = CE-68, ALT-F2 = CE-69, .., ALT-F10 = CE-71
1935 Shifted cursor keys produce same codes as unshifted keys. Use bioskey(2)
1936 to get modifier mask for <S-C-M-Fx>.
1937 Use K_SPECIAL/KS_MODIFIER codes to insert modifier mask in input stream?
1938 Make this work like in Win32 console.
1939 Mapping things like <M-A> doesn't work, because it generates an extended
1940 key code. Use a translation table?
19419 Can't read an opened swap file when the "share" command has not been used.
1942 At least ignore the swap files that Vim has opened itself.
19438 Use DJGPP 2.03.
19448 The Dos32 version (DJGPP) can't use long file names on Windows NT.
1945 Check if new package can be used (v2misc/ntlfn08[bs].zip).
19468 setlocale() is bogus.
19478 Vim busy waits for new characters or mouse clicks. Should put in some
1948 sort of sleep, to avoid eating 50% of the CPU time. Test on an unpatched
1949 Windows 95 system!
19508 DJGPP: when shell is bash, make fails. (Donahoe)
Bram Moolenaar51ac12f2005-07-02 23:21:11 +000019517 Hitting CTRL-P twice quickly (e.g., in keyword completion) on a 8088
Bram Moolenaar071d4272004-06-13 20:20:40 +00001952 machine, starts printer echo! (John Mullin).
19537 MSDOS 16 bit version can't work with COMSPEC that has an argument, e.g.:
1954 COMSPEC=C:\WINDOWS\COMMAND.COM /E:4096 (Bradley)
1955 Caused by BCC system() function (Borland "make" has the same problem).
19568 Mouse: handle left&right button pressed as middle button pressed. Add
1957 modifier keys shift, ctrl and alt.
19587 When too many files are open (depends on FILES), strange things happen.
1959 The Dos16 version runs out of memory, in the Dos32 version "!ls" causes a
1960 crash. Another symptom: .swp files are not deleted, existing files are
1961 "[New file]".
19627 DJGPP version doesn't work with graphics display mode. Switch to a mode
1963 that is supported?
19648 DJGPP: ":mode" doesn't work for many modes. Disable them.
19658 DJGPP: When starting in Ex mode, shouldn't clear the screen. (Walter
1966 Briscoe)
1967
1968
1969MSDOS, OS/2 and Win32:
19708 OS/2: Add backtick expansion. Undefine NO_EXPANDPATH and use
1971 gen_expand_wildcards().
19728 OS/2: Add clipboard support? See example clipbrd.exe from Alexander
1973 Wagner.
19748 OS/2: Add Extended Attributes support and define HAVE_ACL.
19758 OS/2: When editing a file name "foo.txt" that is actually called FOO.txt,
1976 writing uses "foo.txt". Should obtain the real file name.
Bram Moolenaara5792f52005-11-23 21:25:05 +000019778 Should $USERPROFILE be preferred above $HOMEDRIVE/$HOMEPATH? No, but it's
1978 a good fallback, thus use:
1979 $HOME
1980 $HOMEDRIVE$HOMEPATH
1981 SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_APPDATA, FALSE);
1982 $USERPROFILE
1983 SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_COMMON_APPDATA, FALSE);
1984 $ALLUSERSPROFILE
1985 $SYSTEMDRIVE\
1986 C:\
Bram Moolenaar071d4272004-06-13 20:20:40 +000019878 Win32 console: <M-Up> and <M-Down> don't work. (Geddes) We don't have
1988 special keys for these. Should use modifier + key.
19898 Win32 console: caps-lock makes non-alpha keys work like with shift.
1990 Should work like in the GUI version.
19918 Environment variables in DOS are not case sensitive. Make a define for
1992 STRCMP_ENV(), and use it when comparing environment var names.
19938 Setting 'shellslash' has no immediate effect. Change all file names when
1994 it is set/reset? Or only use it when actually executing a shell command?
19958 When editing a file on a Samba server, case might matter. ":e file"
1996 followed by ":e FILE" will edit "file" again, even though "FILE" might be
1997 another one. Set last used name in buflist_new()? Fix do_ecmd(), etc.
Bram Moolenaar071d4272004-06-13 20:20:40 +000019988 When a buffer is editing a file like "ftp://mach/file", which is not going
1999 to be used like a normal file name, don't change the slashes to
2000 backslashes. (Ronald Hoellwarth)
2001
2002
2003Windows 95:
Bram Moolenaar06b5d512010-05-22 15:37:44 +020020048 Editing a file by its short file name and writing it, makes the long file
Bram Moolenaar071d4272004-06-13 20:20:40 +00002005 name disappear. Setting 'backupcopy' helps.
2006 Use FindFirstFile()->cAlternateFileName in fname_case() (George Reilly).
20078 Doing wildcard expansion, will match the short filename, but result in the
2008 long filename (both DJGPP and Win32).
2009
2010
2011Win32 console:
20129 When editing a file by its short file name, it should be expanded into its
2013 long file name, to avoid problems like these: (Mccollister)
2014 1) Create a file called ".bashrc" using some other editor.
2015 2) Drag that file onto a shortcut or the actual executable.
2016 3) Note that the file name is something like BASHRC~1
2017 4) Go to File->Save As menu item and type ".bashrc" as the file name.
2018 5) Press "Yes" to indicate that I want to overwrite the file.
2019 6) Note that the message "File exists (add ! to override)" is displayed
2020 and the file is not saved.
2021 Use FindFirstFile() to expand a file name and directory in the path to its
2022 long name.
20238 Also implement 'conskey' option for the Win32 console version? Look at
2024 how Xvi does console I/O under Windows NT.
20257 Re-install the use of $TERM and support the use of different terminals,
2026 besides the console.
20278 Use of <altgr> modifier doesn't work? 5.3 was OK. (Garcia-Suarez/Guckes)
20289 Mapping <C-S-Tab> doesn't work correctly. How to see the difference with
2029 <C-S-i>?
20309 tmpnam() uses file in root of file system: "\asdf". That doesn't work on
2031 a Netware network drive. Use same function as for Win32 GUI?
20328 In os_win32.h, HAVE_STRICMP and HAVE_STRNICMP are defined only if __GNUC__
2033 is not defined. Shouldn't that be the other way around?
Bram Moolenaar071d4272004-06-13 20:20:40 +000020347 Use SetConsoleCP() and SetConsoleOutputCP() to implement 'termencoding'?
2035 Avoids that input and output work differently. Need to be restored when
2036 exiting.
2037
2038
2039Amiga:
20408 In mch_inchar() should use convert_input_safe() to handle incomplete byte
2041 sequences.
20429 In mch_expandpath() a "*" is to be expanded, but "\*" isn't. Remove
2043 backslashes in result.
20448 Executing a shell, only one option for 'shell' is separated. Should do
2045 all options, using white space separation.
2046
2047
2048Macintosh:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002049- GUI: gui_mch_browsedir() is missing.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020507 Loading the Perl library only works on OS/X 10.2 or 10.3, never on both.
2051 Load the Perl library dynamically see Python sources file dynload_mac
2052 (Jack)
2053 dynamic linking: http://developer.apple.com/technotes/tn2002/tn2064.html
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000020548 inputdialog() doesn't resize when giving more text lines. (David Fishburn,
2055 2006 Sept 28)
Bram Moolenaar071d4272004-06-13 20:20:40 +000020568 Define vim_mkdir() for Macintosh.
20578 Define mch_writable() for Macintosh.
20589 When DiskLock is running, using a swap file causes a crash. Appears to be
2059 a problem with writing a file that starts with a dot. (Giacalone)
Bram Moolenaar071d4272004-06-13 20:20:40 +000020609 In mac_expandpath() check that handling of backslashes is done properly.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002061
2062
2063"Small" problems:
Bram Moolenaar8c8de832008-06-24 22:58:06 +00002064- Can't disable terminal flow control, to enable the use of CTRL-S and
2065 CTRL-Q. Add an option for it?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002066- When using e_secure in do_one_cmd() mention the command being executed,
2067 otherwise it's not clear where it comes from.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01002068- When the quickfix window is open and executing ":echo 'hello'" using the
2069 Command-line window, the text is immediately removed by the redrawing.
2070 (Michael Henry, 2008 Nov 1)
2071 Generic solution: When redrawing while there is a message on the
2072 cmdline, don't erase the display but draw over the existing text.
2073 Other solution, redraw after closing the cmdline window, before executing
2074 the command.
Bram Moolenaard68071d2006-05-02 22:08:30 +000020759 For Turkish vim_tolower() and vim_toupper() also need to use utf_
2076 functions for characters below 0x80. (Sertacyildiz)
Bram Moolenaarc93b83a2006-04-29 22:02:36 +000020779 When the last edited file is a help file, using '0 in a new Vim doesn't
Bram Moolenaarc236c162008-07-13 17:41:49 +00002078 edit the file as a help file. 'filetype' is OK, but 'iskeyword' isn't,
2079 file isn't readonly, etc.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020808 When an ":edit" is inside a try command and the ATTENTION prompt is used,
2081 the :catch commands are always executed, also when the file is edited
2082 normally. Should reset did_emsg and undo side effects. Also make sure
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002083 the ATTENTION message shows up. Servatius Brandt works on this.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020848 ":g//" gives "Pattern not found error" with E486. Should not use the
2085 error number, it's not a regular error message.
20867 Vimtutor leaves escape sequence in terminal. This is the xterm response to
2087 requesting the version number. (Yasuhiro Matsumoto)
20888 When redirecting and using ":silent" the current column for displaying and
2089 redirection can be different. Use a separate variable to hold the column
2090 for redirection.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020917 The messages for "vim --help" and "vim --version" don't use
2092 'termencoding'.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002093- Could the hit-enter prompt be avoided when a message only overlaps the
2094 'showcmd' area? Clear that area when the next cmd is typed.
Bram Moolenaar071d4272004-06-13 20:20:40 +000020958 When 'scrollbind' is set, a window won't scroll horizontally if the cursor
2096 line is too short. Add a word in 'scrollopt' to allow moving the cursor
2097 to longer line that is visible. A similar thing is done for the GUI when
2098 using the horizontal scrollbar.
20997 VisVim can only open one file. Hard to solve: each opened file is passed
2100 with a separate invocation, would need to use timestamps to know the
2101 invocations belong together.
21028 When giving a ":bwipeout" command a file-changed dialog may popup for this
2103 buffer, which is pointless. (Mike Williams)
21048 On MS-Windows ":make" doesn't show output while it is working. Use the
2105 tee.exe from http://unxutils.sourceforge.net/ ? About 16 Kbyte in the
2106 UnxUtils.zip archive.
2107 Alternate one: http://www.pramodx.20m.com/tee_for_win32.htm, but Walter
2108 Briscoe says it's not as good.
Bram Moolenaar910f66f2006-04-05 20:41:53 +000021098 "stl" and "stlnc" in 'fillchars' don't work for multi-byte characters.
Bram Moolenaarf193fff2006-04-27 00:02:13 +000021108 When doing Insert mode completion a mapping cannot recursively call
2111 edit(), because the completion information is global. Put everything in
2112 an allocated structure?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000021136 Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
Bram Moolenaar071d4272004-06-13 20:20:40 +000021148 Command line completion: buffers "foo.txt" and "../b/foo.txt", completing
2115 ":buf foo<Tab>" doesn't find the second one. (George V. Reilly)
Bram Moolenaar071d4272004-06-13 20:20:40 +000021167 mb_off2cells() doesn't work correctly on the tail byte of a double-byte
2117 character. (Yasuhiro Matsumoto) It should return 1 when used on a tail
2118 byte, like for utf-8. Store second byte of double-byte in ScreenLines2[]
2119 (like for DBCS_JPNU) and put a zero in the second byte (like for UTF-8).
21208 'backupdir' and 'directory' should use $TMPDIR, $TMP and/or $TEMP when
2121 defined.
21227 Inside a function with "perl <<EOF" a line with "$i++" is recognized as an
2123 ":insert" command, causing the following "endfunction" not to be found.
2124 Add skipping this perl construction inside function definitions.
21257 When 'ttimeoutlen' is 10 and 'timeoutlen' is 1000, there is a keycode
2126 "<Esc>a" and a mapping <Esc>x", when typing "<Esc>a" with half a second
2127 delay should not be interpreted as a keycode. (Hans Ginzel)
21287 ":botright 1 new" twice causes all window heights to be changed. Make the
2129 bottom window only bigger as much as needed.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021307 The Cygwin and MingW makefiles define "PC", but it's not used anywhere.
2131 Remove? (Dan Sharp)
Bram Moolenaar071d4272004-06-13 20:20:40 +000021329 User commands use the context of the script they were defined in. This
2133 causes a "s:var" argument to unexpectedly use a variable in the defining
2134 script, not the calling script. Add an argument to ":command":
2135 "-keepcontext". Do replace <SID>, so that a function in the defining
2136 script can be called.
21378 The Japanese message translations for MS-Windows are called ja.sjis.po,
2138 but they use encoding cp932. Rename the file and check that it still
2139 works.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021408 A very long message in confirm() can't be quit. Make this possible with
2141 CTRL-C.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000021428 "gf" always excludes trailing punctuation characters. file_name_in_line()
Bram Moolenaar071d4272004-06-13 20:20:40 +00002143 is currently fixed to use ".,:;!". Add an option to make this
2144 configurable?
21458 'hkmap' should probably be global-local.
21469 When "$" is in 'cpoptions' and folding is active, a "C" command changes
2147 the folds and resets w_lines_valid. The display updating doesn't work
2148 then. (Pritesh Mistry)
Bram Moolenaar071d4272004-06-13 20:20:40 +000021498 Using ":s" in a function changes the previous replacement string. Save
2150 "old_sub" in save_search_patterns()?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000021518 Should allow multi-byte characters for the delimiter: ":s+a+b+" where "+"
2152 is a multi-byte character.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021538 When appending to a file and 'patchmode' isn't empty, a backup file is
2154 always written, even when the original file already exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021559 When getting focus while writing a large file, could warn for this file
2156 being changed outside of Vim. Avoid checking this while the file is being
2157 written.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021587 The message in bt_dontwrite_msg() could be clearer.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021598 The script ID that is stored with an option and displayed with ":verbose
2160 set" isn't reset when the option is set internally. For example when
2161 'foldlevel' is set from 'foldlevelstart'.
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000021628 Also store the line number with the script ID and use it for ":verbose",
2163 so that "set nocompatible" is found when it changes other option values.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002164 When an option is set indirectly mention the command? E.g. when
2165 ":diffsplit" sets 'foldmethod'.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021668 In the fileformat dialog, "Cancel" isn't translated. Add a global
2167 variable for this. (Eduardo Fernandez)
21689 When editing a file with 'readonly' set, there is no check for an existing
2169 swap file. Then using ":write" (without making any changes) doesn't give
2170 a warning either. Should check for an existing swap file without creating
Bram Moolenaare37d50a2008-08-06 17:06:04 +00002171 one. Unfinished patch by Ian Kelling, 2008 July 14.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021727 When 'showbreak' is set, the amount of space a Tab occupies changes.
2173 Should work like 'showbreak' is inserted without changing the Tabs.
Bram Moolenaar071d4272004-06-13 20:20:40 +000021747 When 'mousefocus' is set and switching to another window with a typed
2175 command, the mouse pointer may be moved to a part of the window that's
2176 covered by another window and we lose focus. Only move in the y
2177 direction, not horizontally?
Bram Moolenaar071d4272004-06-13 20:20:40 +000021788 ":hardcopy":
Bram Moolenaar071d4272004-06-13 20:20:40 +00002179 - Using the cterm_color[] table is wrong when t_colors is > 16.
2180 - Need to handle unprintable characters.
2181 - Win32: On a B&W printer syntax highlighting isn't visible. Perform
2182 dithering to make grey text?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002183 - Add a flag in 'printoptions' to add an empty page to make the total
2184 number even. "addempty"? (Mike Williams)
Bram Moolenaarc0197e22004-09-13 20:26:32 +00002185 - Respect 'linebreak'. Perhaps also 'showbreak'?
Bram Moolenaar996343d2010-07-04 22:20:21 +02002186 - Should interpret CTRL-L as a page break.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002187 - Grey line numbers are not always readable. Add field in 'printoptions'.
2188 Default to black when no syntax highlighting.
2189 - Be able to print a window in diff mode.
2190 - Be able to specify a colorscheme to use for printing. And a separate
2191 one for B&W printing (if that can be detected).
21928 In Visual block mode with 'lbr' set, a change command doesn't insert the
2193 text in following lines where the linebreak changes.
21949 dosinst.c: The DJGPP version can't uninstall the Uninstall registry key on
2195 Windows NT. How to install a .inf file on Windows NT and how to detect
2196 that Windows NT is being used?
Bram Moolenaar071d4272004-06-13 20:20:40 +000021978 When 'virtualedit' is "block,insert" and encoding is "utf-8", selecting a
2198 block of one double-wide character, then "d" deletes only half of it.
21998 When 'virtualedit' is set, should "I" in blockwise visual mode also insert
2200 in lines that don't extend into the block?
22018 With 'virtualedit' set, in Insert mode just after the end of line, CTRL-O
2202 yh does not yank the last character of the line. (Pavel Papushev)
2203 Doing "hl" first appears to make it work.
22048 With 'virtualedit' set it's possible to move into the blank area from
2205 'linebreak'.
22068 With 'virtualedit' set and 'selection' "exclusive", a Visual selection
2207 that ends in or after a tab, "d" doesn't delete (part of) the tab.
2208 (Helmut Stiegler)
Bram Moolenaar071d4272004-06-13 20:20:40 +000022099 When jumping to a tag, the search pattern is put in the history. When
2210 'magic' is on, the pattern may not work. Translate the pattern depending
2211 on p_magic when putting it in the history? Alternative: Store value of
2212 'magic' in history. (Margo)
22139 optwin.vim: Restoring a mapping for <Space> or <CR> is not correct for
2214 ":noremap". Add "mapcmd({string}, {mode})? Use code from ":mkexrc".
22159 incsearch is incorrect for "/that/<Return>/this/;//" (last search pattern
2216 isn't updated).
22179 term_console is used before it is set (msdos, Amiga).
22189 Get out-of-memory for ":g/^/,$s//@/" on 1000 lines, this is not handled
2219 correctly. Get many error messages while redrawing the screen, which
2220 cause another redraw, etc.
22218 [<C-I> doesn't work when '*' is in 'iskeyword'. find_pattern_in_path()
2222 must escape special characters in the pattern.
22238 Vim can overwrite a read-only file with ":w!". ":w" can't overwrite an
2224 existing file, "w!" can, but perhaps not a read-only file? Then use
2225 ":w!!" for that.
2226 Or ask for permission to overwrite it (if file can be made writable) and
2227 restore file to readonly afterwards.
Bram Moolenaar04a09c12005-08-01 22:02:32 +00002228 Overwriting a file for which a swap file exists is similar issue.
Bram Moolenaar071d4272004-06-13 20:20:40 +000022297 When compiled with "xterm_clipboard", startup can be slower and might get
2230 error message for invalid $DISPLAY. Try connecting to the X server in the
2231 background (forked), so that Vim starts up quicker? Connect as soon as
2232 the clipboard is to be used (Visual select mode starts, paste from
2233 clipboard)
22347 X11: Some people prefer to use CLIPBOARD instead of PRIMARY for the normal
2235 selection. Add an "xclipboard" argument to the 'clipboard' option? (Mark
2236 Waggoner)
22378 For xterm need to open a connection to the X server to get the window
2238 title, which can be slow. Can also get the title with "<Esc>[21t", no
2239 need to use X11 calls. This returns "<Esc>]l{title}<Esc>\".
Bram Moolenaar35a9aaa2004-10-24 19:23:07 +000022406 When the xterm reports the number of colors, a redraw occurs. This is
2241 annoying on a slow connection. Wait for the xterm to report the number of
2242 colors before drawing the screen. With a timeout.
Bram Moolenaar071d4272004-06-13 20:20:40 +000022438 When the builtin xterm termcap contains codes that are not wanted, need a
2244 way to avoid using the builtin termcap.
22458 Xterm sends ^[[H for <Home> and ^[[F for <End> in some mode. Also
2246 recognize these keys? Mostly useful for xterm simulators, like gnometerm.
2247 See http://dickey.his.com/xterm/xterm.faq.html#xterm_pc_style.
Bram Moolenaar8424a622006-04-19 21:23:36 +000022488 For xterm also recognize keypad up/down/left/right and insert.
Bram Moolenaar071d4272004-06-13 20:20:40 +000022498 '[ and '] should be set to start/end of line when using a linewise operator
2250 (e.g., ":w").
22518 CTRL-A can't handle big "long" numbers, they become negative. Check for
2252 "-" character, if not present, use unsigned long.
22538 Make it possible to disable the special meaning of "#" in the first column
2254 for ">>".
22558 Add suspending with CTRL-Z at the "more" prompt, and when executing a long
2256 script in do_cmdline().
22578 When using 'hidden', many swap files will be open. When Vim runs into the
2258 maximum number of open files, error messages will appear. Detect that
2259 this problem is present, and close any hidden files that don't have
2260 changes.
22618 With 'viminfo' set such that the ".viminfo" file is written on a FAT
2262 filesystem, an illegal file name may be created: ".vim".
22638 For each buffer that is opened, the viminfo file is opened and read to
2264 check for file marks. This can be slow.
22657 In xterm, recognize both vt100 and vt220 cursor keys. Change
2266 add_termcode() to not remove an existing entry for a name, when it's
2267 needed.
2268 Need a generic solution to recognize different codes for the same key.
22698 Core dump within signal function: gdb doesn't show stack backtrace! Option
2270 to skip catch_signals()?
22719 Repeating a "cw" with "." doesn't work if the text was pasted from the
2272 clipboard. (Thomas Jones) It's because the menu/toolbar item exits Insert
2273 mode and uses "gP". How to fix this without breaking inserting a block of
2274 text?
22758 In Replace mode pasting from the clipboard (using menu or toolbar) inserts
2276 all the text. Add ":rmenu"?
22778 Pasting with the mouse in Replace mode inserts the text, instead of
2278 overwriting, when it is more than one line. Same for using <C-R>.
22799 CTRL-E and CTRL-Y don't work in small window when 'so' is 4 and lines are
2280 wrapping (Acevedo/in.226). E.g., when using CTRL-E, window height 7,
2281 window might actually scroll down when last line of buffer is displayed.
2282 --> Remember if the previous command was "cursor follows screen" or
2283 "screen follow cursor" and use this in cursupdate().
22847 tilde_replace() can only handle "~/", should also do "~user/".
2285 Get the list of home directories (from /etc/passwd? Use getpwent()) and
2286 use some clever algorithm to match a path with that. Find common strings
2287 in the list?
22888 When dragging status line with mouse, sometimes a jump when first clicking
2289 on the status line (caused by 'winheight'). Select window on button up,
2290 instead of on button down.
22918 Dragging the status line doesn't scroll but redraw.
22929 Evaluating 'statusline' in build_stl_str_hl() does not properly check for
2293 reaching the end of the available buffer.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002294 Patch to dynamically allocate the buffer for % items. (Eric Arnold, 2006
2295 May 14)
Bram Moolenaar071d4272004-06-13 20:20:40 +000022968 When performing incremental search, should abort searching as soon as a
2297 character is typed.
22988 When the value of $MAKE contains a path, configure can't handle this.
2299 It's an autoconf bug. Remove the path from $MAKE to work around it.
23008 How to set VIMRC_FILE to \"something\" for configure? Why does this not
2301 work: CFLAGS='-DVIMRC_FILE=\"/mydir/myfile\"' ./configure
23028 The temporary file is sometimes not writable. Check for this, and use an
2303 alternate name when it isn't. Or add the 'temptemplate' option: template
2304 for the temp file name ":set temptemplate=/usr/tmp/?????.tmp".
2305 Also: Win32 version uses Windows temp directory, which might not work for
2306 cygwin bash.
23077 Get error "*, \+ or \( operand could be empty" for pattern "\(.\)\1\{3}".
2308 Remember flags for backreferences.
23097 When switching to Daylight Saving Time, Vim complains that a file has been
2310 changed since last read. Can we use a function that uses GMT?
23117 When completing an environment variable after a '$', check for file names
2312 that contain a '$' after all have been found.
23138 When "cm" termcap entry is missing, starting gvim shouldn't complain about
2314 it. (Lohner) Try out with "vt100" entry, cm replaced with cX.
23157 When an include file starts with "../", the check for already visiting
2316 this file doesn't work. Need to simplify the file name.
Bram Moolenaar071d4272004-06-13 20:20:40 +000023177 The names and comments for the arguments of do_browse() are confusing.
2318 "dflt" isn't the default file name when "initdir" is not NULL and
2319 "initdir" is the default path to be used.
23207 When 'scrolloff' is exactly half the window height, "j" causes a scroll of
2321 two lines at a time. "k" doesn't do this. (Cory T. Echols)
23228 When write_viminfo() is used while there are many orphaned viminfo
2323 tempfiles writing the viminfo file fails. Give a clear error message so
2324 that the user knows he has to delete the files.
23257 It's possible to redefine a script-local function with ":func
2326 <SNR>123_Test()". (Krishna) Disallow this.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002327
2328
2329I can't reproduce these (if you can, let me know how!):
23309 NT 4.0 on NTFS file system: Editing ".bashrc" (drag and drop), file
2331 disappears. Editing ".xyz" is OK. Also, drag&drop only works for three
2332 files. (McCollister)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002333
2334
2335Problems that will (probably) not be solved:
Bram Moolenaara93fa7e2006-04-17 22:14:47 +00002336- GTK: when using the popup menu with spelling suggestions and releasing the
2337 right mouse button before the menu appears selecting an item with the
2338 right mouse button has no effect. GTK does not produce an event for this.
Bram Moolenaare37d50a2008-08-06 17:06:04 +00002339- GTK 2: Cannot use the file selector. When using it many things become
2340 slow. This is caused by some code in GTK that writes
2341 ~/.recently-used.xbel every time an event is handled. It assumes the main
2342 loop is never quit, which is a wrong assumption. Also, it overwrites the
2343 file with different file permissions, which is a privacy issue. This
2344 needs to be fixed in GTK. A solution in Vim would be really complicated.
Bram Moolenaar33aea182010-08-07 13:19:27 +02002345 (2008 Jul 31) This appears to be fixed in Vim 7.3.
Bram Moolenaar35a9aaa2004-10-24 19:23:07 +00002346- xterm title: The following scenario may occur (esp. when running the Vim
2347 test script): Vim 1 sets the title to "file1", then restores the title to
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +00002348 "xterm" with an ESC sequence when exiting. Vim 2 obtains the old title
Bram Moolenaar35a9aaa2004-10-24 19:23:07 +00002349 with an X library call, this may result in "file1", because the window
2350 manager hasn't processed the "xterm" title yet. Can apparently only be
2351 worked around with a delay.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002352- In a terminal with 'mouse' set such that the mouse is active when entering
2353 a command line, after executing a shell command that scrolls up the
2354 display and then pressing ":": Selecting text with the mouse works like
2355 the display wasn't scrolled. Vim doesn't know how much the external
2356 command scrolled up the display. Use Shift to select text.
2357- X windows: When $DISPLAY points to a X server where there is no access
2358 permission, trying to connect to the X server causes an error message.
2359 XtOpenDisplay() prints this directly, there is no way to avoid it.
2360- X windows: Setting 'guifontset' to an illegal value sometimes crashes Vim.
2361 This is caused by a fault in a X library function, can't be solved in Vim.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002362- Win32 tcl: has("tcl") hangs when the tcl84.dll is from cygwin.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002363- Motif: When adding a menu item "Find this &Symbol", the "s" in "this" will
2364 be underlined, instead of in "Symbol". Motif doesn't let us specify which
2365 character gets the highlighting.
2366- Moving the cursor removes color in color-xterm. This is a color-xterm
2367 problem! color-xterm ver. 6.1 beta 3 and later work properly.
2368- In zsh, "gvim&" changes the terminal settings. This is a zsh problem.
2369 (Jennings)
2370- Problem with HPterm under X: old contents of window is lost (Cosentino).
2371- Amiga: When using quickfix with the Manx compiler we only get the first 25
2372 errors. How do we get the rest?
2373- Amiga: The ":cq" command does not always abort the Manx compiler. Why?
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00002374- Linux: A file with protection r--rw-rw- is seen readonly for others. The
Bram Moolenaar071d4272004-06-13 20:20:40 +00002375 access() function in GNU libc is probably wrong.
2376- MSDOS: When using smartdrive with write-back buffering, writing to a
2377 readonly floppy will cause problems. How to test for a writable floppy
2378 first?
2379- MSDOS: Both 16 and 32 bit versions: File name expansion doesn't work for
2380 names that start with a dot. These used to be illegal file names.
2381- When doing a CTRL-Z and typing a command for the shell, while Vim is busy
2382 (e.g. writing a file), the command for the shell is sometimes eaten by Vim,
2383 because the terminal mode is changed from RAW to CBREAK.
2384- An old version of GNU tgoto can't handle the terminfo code for "AF". The
2385 "%p1" is interpreted as "%p" and "1", causing color not to be working.
2386 Fix: Change the "%p1" in the "AF" and "AB" terminfo entries to "%p".
2387 (Benzinger).
2388- When running an external command from the GUI, typeahead is going to that
2389 program, not to Vim. It looks like the shell eats the characters, Vim
2390 can't get back what the external command didn't use.
2391- Win32 GUI: Error code from external command not returned in shell_error.
2392 It appears that cmd.exe and command.com don't return an error code.
2393- Win32 GUI: The Toolbar is a bit too high when the flat style is being
2394 used. We don't have control over the height of the Toolbar.
2395- Win32: All files created on the day of switching from winter to summer
2396 time cause "changed since editing started" messages. It goes away when
2397 the file is written again the next day, or the timezone is adjusted.
2398 DJGPP version is OK. (Zaimi) Looks like a problem with the Win32 library.
2399 Rebooting doesn't help. Time stamps look OK in directory. (Penn)
2400 Is this on FAT (stores wall clock time) or NTFS (stores UTS)?
2401- Win32, MS-Windows XP: $HOME uses the wrong drive when the user profiles
2402 are not on the boot disk. This is caused by a wrong value of $HOMEDRIVE.
2403 This is a bug in XP, see MSKB article 818134.
Bram Moolenaar662db672011-03-22 14:05:35 +01002404- Win32, MS-Windows: expanding plugin/**/*.vim also picks up
2405 dir/ctags.vim,v. This is because the short file name is something like
2406 "ctags~1.vim" and that matches the pattern.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002407- SunOS 5.5.1 with Motif: The file open dialog does not have a horizontal
2408 scroll bar for the "files" selection. This is a problem in the Motif
2409 libraries, get a patch from Sun.
2410- Solaris 2.6 with GTK and Perl: gvim crashes when started. Problem with X
2411 input method called from GDK code. Without Perl it doesn't crash.
2412- VMS: Vimdiff doesn't work with the VMS diff, because the output looks
2413 different. This makes test 47 fail. Install a Unix-compatible diff.
2414- VMS v7.1 and older: Tests 21 and 32 fail. From VMS v7.1-2 and newer Vim
2415 does not have this behavior. (Zoltan Arpadffy)
2416- Win32 GUI: mouse wheel always scrolls rightmost window. The events arrive
2417 in Vim as if the rightmost scrollbar was used.
2418- GTK with Gnome: Produces an error message when starting up:
2419 Gdk-WARNING **: locale not supported by C library
2420 This is caused by the gnome library gnome_init() setting $LC_CTYPE to
2421 "en_US". Not all systems support this locale name, thus causing the
2422 error. Hopefully a newer version of GTK/Gnome fixes this problem.
2423- GTK 2: With this mapping the hit-enter prompt is _sometimes_ below the
2424 screen, at other times there is a grey area below the command line:
2425 :nmap <F11> :if &guioptions=~'m' \| set guioptions-=m \| else \| set guioptions+=m \| endif<cr>
2426- GTK: When pasting a selection from Vim to xclipboard gvim crashes with a
2427 ABRT signal. Probably an error in the file gdkselection.c, the assert
2428 always fails when XmbTextListToTextProperty() fails. (Tom Allard)
Bram Moolenaarf4b8e572004-06-24 15:53:16 +00002429- GTK 2: gives an assertion error for every non-builtin icon in the toolbar.
2430 This is a GTK 2.4.x bug, fixed in GTK 2.4.2. (Thomas de Grenier de Latour)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002431- When using an xterm that supports the termresponse feature, and the 't_Co'
2432 termcap option was wrong when Vim started, it will be corrected when the
2433 termresponse is received. Since the number of colors changes, the
2434 highlighting needs to be initialized again. This may cause colors defined
2435 in the vimrc file to be lost.
2436- On Windows NT 4.0 the number of files passed to Vim with drag&drop and
2437 "Edit with Vim" is limited. The maximum command line length is 255 chars.
2438
2439--------------------- extensions and improvements ----------------------
2440 *extensions-improvements*
2441
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01002442Most interesting new features to be added when all bugs have been fixed:
2443- Using ":exe edit fname" has escaping problems. Use ":edit ++(fname)".
2444 Thus use "++=" to give arguments as expressions, comma separated as if
2445 calling a function.
2446 With options: ":edit ++(['!', '++enc=abc'], ['+/pat'], fname)".
2447 Alternative: Make a function for Ex commands: cmd_edit().
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002448- Add COLUMN NUMBERS to ":" commands ":line1,line2[col1,col2]cmd". Block
2449 can be selected with CTRL-V. Allow '$' (end of line) for col2.
2450- Add DEBUGGER INTERFACE. Implementation for gdb by Xavier de Gaye.
2451 Should work like an IDE. Try to keep it generic. Now found here:
2452 http://clewn.sf.net.
2453 And the idevim plugin/script.
2454 To be able to start the debugger from inside Vim: For GUI run a program
2455 with a netbeans connection; for console: start a program that splits the
2456 terminal, runs the debugger in one window and reconnect Vim I/O to the
2457 other window.
2458 Wishes for NetBeans commands:
2459 - make it possible to have 'defineAnnoType' also handle terminal colors.
2460 - send 'balloonText' events for the cursor position (using CursorHold ?)
2461 in terminal mode.
2462- ECLIPSE plugin. Problem is: the interface is very complicated. Need to
2463 implement part in Java and then connect to Vim. Some hints from Alexandru
2464 Roman, 2004 Dec 15. Should then also work with Oracle Jdeveloper, see JSR
2465 198 standard http://www.jcp.org/en/jsr/detail?id=198.
2466 Eclim does it: http://eclim.sourceforge.net/ (Eric Van Dewoestine)
2467 Plugin that uses a terminal emulator: http://vimplugin.sf.net
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002468 And another one: http://www.satokar.com/viplugin/index.php
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002469- STICKY CURSOR: Add a way of scrolling that leaves the cursor where it is.
2470 Especially when using the scrollbar. Typing a cursor-movement command
2471 scrolls back to where the cursor is.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01002472- Scroll commands by screen line. g CTRL-E and g CTRL-Y ? Requires the
2473 first line to be able to start halfway.
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002474- Running a shell command from the GUI still has limitations. Look into how
2475 the terminal emulator of the Vim shell project can help:
2476 http://vimshell.wana.at
Bram Moolenaar768b8c42006-03-04 21:58:33 +000024778 Add a command to jump to a certain kind of tag. Allow the user to specify
2478 values for the optional fields. E.g., ":tag size type=m".
2479 Also allow specifying the file and command, so that the result of
2480 taglist() can be used.
Bram Moolenaar27dc1952006-03-15 23:06:44 +00002481- X11: Make it possible to run Vim inside a window of another program.
2482 This can be done with XReparentWindow(). But how exactly?
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002483
2484
Bram Moolenaar071d4272004-06-13 20:20:40 +00002485Documentation:
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000024868 List of Vim runtime directories. dotvim.txt from Charles Campbell, 2007
2487 Feb 20.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000024888 The GUI help should explain the Find and Find/Replace dialogs. Add a link
2489 to it from ":promptrepl" and ":promptfind".
Bram Moolenaard4755bb2004-09-02 19:12:26 +000024908 List of options should mention whether environment variables are expanded
2491 or not.
Bram Moolenaar071d4272004-06-13 20:20:40 +000024928 Extend usr_27.txt a bit. (Adam Seyfarth)
Bram Moolenaar071d4272004-06-13 20:20:40 +000024937 Add a section on debugging scripts in the user manual.
24949 Make the Reference Manual more precise. For each command mention:
2495 - change to cursor position and curswant
2496 - if it can be undone (u/CTRL-R) and redone (.)
2497 - how it works for folded lines
2498 - how it works with multi-byte characters
24999 In change.txt, remark about Javadoc isn't right. Right alignment would
2500 work too.
25018 Spread the windows commands over the other files. For example, ":stag"
2502 should be with ":tag". Cross-link with tags to avoid too much double
2503 text.
25048 Add tags for all features, e.g. "gui_running".
25057 MS-Windows: When a wrong command is typed with an ALT key, give a hint to
2506 look at the help for 'winaltkeys'.
25077 Add a help.vim plugin that maps <Tab> to jump to the next tag in || and
2508 <C-Tab> (and <S-Tab>) to the previous tag.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00002509 Patch by Balazs Kezes, 2007 Dec 30. Remark from A. Politz.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002510- Check text editor compendium for vi and Vim remarks.
2511
2512
2513Help:
2514- First try using the ":help" argument literally, before using it as a
2515 pattern. And then match it as part of a tag.
2516- When a help item has multiple matches make it possible to use ":tn" to go
2517 to the other matches.
2518- Support a way to view (and edit) .info files.
2519- Default mapping for help files: <Tab> to position cursor on next |:tag|.
2520- Implement a "sticky" help window, some help text lines that are always
2521 displayed in a window with fixed height. (Guckes) Use "~/.vimhelp" file,
2522 user can edit it to insert his favorite commands, new account can contain a
2523 default contents.
2524- Make 'winminheight' a local option, so that the user can set a minimal
2525 height for the help window (and other windows).
2526- ":help :s^I" should expand to ":help :substitute".
2527- Make the help key (<F1>) context sensitive?
2528- Learn mode: show short help while typing commands.
2529
2530
2531User Friendlier:
25328 Windows install with install.exe: Use .exe instead of .bat files for
2533 links, so that command line arguments are passed on unmodified? (Walter
2534 Briscoe)
25358 Windows install: Be able to associate Vim with a selection of file types?
25368 Windows uninstall: Have uninstal.c delete the vimfiles directories that
2537 dosinst.c creates. List the contents of the directory (recursively) if
2538 the user asks for it. Requires an implementation of "rm -rf".
25398 Remember the name of the vimrc file that was used (~/.vimrc, $VIM/_vimrc,
2540 $HOME/_vimrc, etc.) and add "edit vimrc" to the File menu.
2541- Add a way to save local settings and mappings into a new plugin file.
2542 ":mkplugin <file>"?
25438 Add ":plugininstall" command. Can be used to install a plugin file that
2544 includes documentation. Let the user select a directory from
2545 'runtimepath'.
2546 " Vim plugin
2547 <main plugin code>
2548 " >>> plugin help start <<<
2549 <plugin docs>
2550- Add mappings local to a window: ":map <window> ..."?
25519 Add buffer-local menu. Should offer a choice between removing the menu or
2552 disabling it. Be careful that tear-offs don't disappear (keep one empty
2553 item?).
2554 Alternative: use BufEnter and BufLeave autocommands.
Bram Moolenaar071d4272004-06-13 20:20:40 +000025558 make a vimtutor script for Amiga and other systems.
25567 Add the arguments for configure to the ":version" output?
Bram Moolenaar51ac12f2005-07-02 23:21:11 +000025577 When Vim detects a file is being edited elsewhere and it's a gvim session
2558 of the same user it should offer a "Raise" button, so that the other gvim
2559 window can be displayed. (Eduard)
Bram Moolenaar33aec762006-01-22 23:30:12 +000025608 Support saving and restoring session for X windows? It should work to do
2561 ":mksession" and use "-S fname" for the restart command. The
2562 gui_x11_wm_protocol_handler() already takes care of the rest.
2563 global_event_filter() for GTK.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002564
2565
Bram Moolenaareddf53b2006-02-27 00:11:10 +00002566Tab pages:
25679 GUI implementation for the tab pages line for other systems.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000025687 GUI: Control over the appearance of the text in the labels (bold, color,
2569 font, etc.)
Bram Moolenaareddf53b2006-02-27 00:11:10 +000025708 Make GUI menu in tab pages line configurable. Like the popup menu.
Bram Moolenaarfc1421e2006-04-20 22:17:20 +000025718 balloons for the tab page labels that are shortened to show the full path.
Bram Moolenaareddf53b2006-02-27 00:11:10 +000025728 :tabmove +N move tab page N pages forward
25738 :tabmove -N move tab page N pages backward
25747 :tabdup duplicate the tab with all its windows.
Bram Moolenaareddf53b2006-02-27 00:11:10 +000025757 Option to put tab line at the left or right? Need an option to specify
Bram Moolenaar49325942007-05-10 19:19:59 +00002576 its width. It's like a separate window with ":tabs" output.
Bram Moolenaareddf53b2006-02-27 00:11:10 +000025777 Add local variables for each tab page?
25788 Add local options for each tab page? E.g., 'diffopt' could differ between
2579 tab pages.
25807 Add local highlighting for each tab page?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000025817 Add local directory for tab pages? How would this interfere with
2582 window-local directories?
Bram Moolenaareddf53b2006-02-27 00:11:10 +00002583
2584
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00002585Spell checking:
Bram Moolenaarc236c162008-07-13 17:41:49 +00002586- have some way not to give spelling errors for a range of characters.
2587 E.g. for Chinese and other languages with specific characters for which we
2588 don't have a spell file. Useful when there is also text in other
2589 languages in the file.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002590- Support more regions? Caolan McNamara argues it's needed for es_XX.
2591 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219777
2592- Unicode defines another quote character: 0x2019. Use it as an equivalent
2593 of a single quote, thus use it as a word character like a quote and match
2594 with words, replacing the curly quote with a single quote.
2595- Could filter &eacute; things for HTML before doing spell checking.
2596 Similarly for TeX.
Bram Moolenaar8b2d9c42006-05-03 21:28:47 +00002597- The Hungarian spell file uses four extra characters in the FOL/UPP/LOW
2598 items than other spell files with the ISO-8859-2 encoding, that causes
2599 problem when changing 'spelllang'. There is no obvious way to fix this.
Bram Moolenaar18144c82006-04-12 21:52:12 +00002600- Considering Hunspell 1.1.4:
2601 What does MAXNGRAMSUGS do?
2602 Is COMPLEXPREFIXES necessary when we have flags for affixes?
Bram Moolenaar8c8de832008-06-24 22:58:06 +00002603- Support spelling words in CamelCase as if they were two separate words.
2604 Requires some option to enable it. (Timothy Knox)
Bram Moolenaar6dfc28b2010-02-11 14:19:15 +01002605- There is no Finnish spell checking file. For openoffice Voikko is now
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002606 used, which is based on Malaga: http://home.arcor.de/bjoern-beutel/malaga/
2607 (Teemu Likonen)
Bram Moolenaar18144c82006-04-12 21:52:12 +000026088 ":mkspell" still takes much too long in Hungarian dictionary from
2609 hunspell. Only solution appears to be to postpone secondary suffixes.
26108 Handle postponed prefix with COMPOUNDPERMITFLAG or COMPOUNDFORBIDFLAG.
2611 WFP_COMPPERMIT and WFP_COMPFORBID
26128 implement use of <compoptions> in .spl file:
2613 implement CHECKCOMPOUNDREP: when a compound word seems to be OK apply REP
Bram Moolenaarc236c162008-07-13 17:41:49 +00002614 items and check if the result is a valid word.
Bram Moolenaar18144c82006-04-12 21:52:12 +00002615 implement CHECKCOMPOUNDDUP
2616 implement CHECKCOMPOUNDTRIPLE
2617 Add CHECKCOMPOUNDCASE: when compounding make leading capital lower case.
2618 How is it supposed to work?
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002619- Add a command the repeats ]s and z=, showing the misspelled word in its
2620 context. Thus to spell-check a whole file.
Bram Moolenaar261bfea2006-03-01 22:12:31 +00002621- suggestion for "KG" to "kg" when it's keepcase.
Bram Moolenaar7b89edc2006-04-06 20:21:51 +00002622- For flags on affixes: Use a "AFFCOMPSET" flag; means the compound flags of
2623 the word are not used.
Bram Moolenaardb552d602006-03-23 22:59:57 +00002624- Support breakpoint character ? 0xb7 and ignore it? Makes it possible to
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002625 use same wordlist for hyphenation.
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002626- Compound word is accepted if nr of words is <= COMPOUNDWORDMAX OR nr of
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002627 syllables <= COMPOUNDSYLMAX. Specify using AND in the affix file?
Bram Moolenaar4770d092006-01-12 23:22:24 +00002628- NEEDCOMPOUND also used for affix? Or is this called ONLYINCOMPOUND now?
2629 Or is ONLYINCOMPOUND only for inside a compound, not at start or end?
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002630- Do we need a flag for the rule that when compounding is done the following
2631 word doesn't have a capital after a word character, even for Onecap words?
2632- New hunspell home page: http://hunspell.sourceforge.net/
Bram Moolenaar69e0ff92005-09-30 21:23:56 +00002633 - Version 1.1.0 is out now, look into that.
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002634 - Lots of code depends on LANG, that isn't right. Enable each mechanism
2635 in the affix file separately.
2636 - Example with compounding dash is bad, gets in the way of setting
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002637 COMPOUNDMIN and COMPOUNDWORDMAX to a reasonable value.
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002638 - PSEUDOROOT == NEEDAFFIX
2639 - COMPOUNDROOT -> COMPOUNDED? For a word that already is a compound word
2640 Or use COMPOUNDED2, COMPOUNDED3, etc.
2641- CIRCUMFIX: when a word uses a prefix marked with the CIRCUMFIX flag, then
2642 the word must also have a suffix marked with the CIRCUMFIX flag. It's a
2643 bit primitive, since only one flag is used, which doesn't allow matching
2644 specific prefixes with suffixes.
2645 Alternative:
2646 PSFX {flag} {pchop} {padd} {pcond} {schop} {sadd}[/flags] {scond}
2647 We might not need this at all, you can use the NEEDAFFIX flag and the
2648 affix which is required.
2649- When a suffix has more than one syllable, it may count as a word for
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002650 COMPOUNDWORDMAX.
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002651- Add flags to count extra syllables in a word. SYLLABLEADD1 SYLLABLEADD2,
2652 etc.? Or make it possible to specify the syllable count of a word
2653 directly, e.g., after another slash: /abc/3
Bram Moolenaar4770d092006-01-12 23:22:24 +00002654- MORPHO item in affix file: ignore TAB and morphological field after
2655 word/flags and affix.
Bram Moolenaarda2303d2005-08-30 21:55:26 +00002656- Implement multiple flags for compound words and CMP item?
2657 Await comments from other spell checking authors.
2658- Also see tklspell: http://tkltrans.sourceforge.net/
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +000026598 Charles Campbell asks for method to add "contained" groups to existing
2660 syntax items (to add @Spell).
2661 Add ":syntax contains {pattern} add=@Spell" command? A bit like ":syn
2662 cluster" but change the contains list directly for matching syntax items.
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00002663- References: MySpell library (in OpenOffice.org).
2664 http://spellchecker.mozdev.org/source.html
2665 http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
2666 author: Kevin Hendricks <kevin.hendricks@sympatico.ca>
Bram Moolenaar8c8de832008-06-24 22:58:06 +000026678 It is currently not possible to mark "can not" as rare, because "can" and
2668 "not" are good words. Find a way to let "rare" overrule "good"?
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +000026698 Make "en-rare" spell file? Ask Charles Campbell.
26708 The English dictionaries for different regions are not consistent in their
2671 use of words with a dash.
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +000026727 Insert mode completion mechanism that uses the spell word lists.
26738 Add hl groups to 'spelllang'?
2674 :set spelllang=en_us,en-rare/SpellRare,en-math/SpellMath
2675 More complicated: Regions with different languages? E.g., comments
2676 in English, strings in German (po file).
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00002677
2678
Bram Moolenaar071d4272004-06-13 20:20:40 +00002679Diff mode:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000026809 Instead invoking an external diff program, use builtin code. One can be
2681 found here: http://www.ioplex.com/~miallen/libmba/dl/src/diff.c
Bram Moolenaarc400cb92010-07-19 19:52:13 +02002682 It's quite big and badly documented though.
Bram Moolenaar071d4272004-06-13 20:20:40 +000026838 Use diff mode to show the changes made in a buffer (compared to the file).
2684 Use an unnamed buffer, like doing:
2685 new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
Bram Moolenaara5792f52005-11-23 21:25:05 +00002686 Also show difference with the file when editing started? Should show what
2687 can be undone. (Tom Popovich)
Bram Moolenaar071d4272004-06-13 20:20:40 +000026887 Add cursor-binding: when moving the cursor in one diff'ed buffer, also
2689 move it in other diff'ed buffers, so that CTRL-W commands go to the same
2690 location.
2691
2692
2693Folding:
Bram Moolenaarbba577a2005-11-28 23:05:55 +00002694 (commands still available: zI zJ zK zp zP zq zQ zV zy zY;
2695 secondary: zB zS zT zZ, z=)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000026968 Vertical folds: looks like vertically split windows, but the cursor moves
2697 through the vertical separator, separator moves when scrolling.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +000026988 Add "z/" and "z?" for searching in not folded text only.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000026999 Add search pattern item to only match in closed or open fold and/or fold
2700 with certain level. Allows doing ":g/pat/cmd" to work on closed folds.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000027017 Use "++--", "+++--" for different levels instead of "+---" "+----".
Bram Moolenaar071d4272004-06-13 20:20:40 +000027028 When a closed fold is displayed open because of 'foldminlines', the
2703 behavior of commands is still like the fold is closed. How to make the
2704 user aware of this?
27058 Add an option 'foldskip' with values like 'foldopen' that specifies which
2706 commands skip over a closed fold.
27078 "H" and "L" count buffer lines instead of window lines. (Servatius Brandt)
27088 Add a way to add fold-plugins. Johannes Zellner has one for VB.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027097 When using manual folding, the undo command should also restore folds.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +00002710- Allow completely hiding a closed fold. E.g., by setting 'foldtext' to an
2711 empty string. Require showing a character in 'foldcolumn' to avoid the
2712 missing line goes unnoticed.
2713 How to implement this?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002714- When pressing the down arrow of a scrollbar, a closed fold doesn't scroll
2715 until after a long time. How to make scrolling with closed folds
2716 smoother?
2717- When creating a session, also store folds for buffers in the buffer list,
2718 using the wininfo in wi_folds.
Bram Moolenaar8b2d9c42006-05-03 21:28:47 +00002719- When currently editing the first file in the argument list the session
2720 file can contain:
2721 args version.c main.c
2722 edit version.c
2723 Can editing version.c twice be avoided?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002724- 'foldmethod' "textobject": fold on sections and paragraph text objects.
Bram Moolenaar4770d092006-01-12 23:22:24 +00002725- "zuf": undo change in manual fold. "zUf" redo change in manual fold. How
2726 to implement this?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002727- "zJ" command: add the line or fold below the fold in the fold under the
2728 cursor.
Bram Moolenaar3517bb12006-03-03 22:58:45 +00002729- 'foldmethod' "syntax": "fold=3" argument: set fold level for a region or
2730 match.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002731- Apply a new foldlevel to a range of lines. (Steve Litt)
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000027328 Have some way to restrict commands to not folded text. Also commands like
Bram Moolenaar071d4272004-06-13 20:20:40 +00002733 searches.
2734
2735
2736Multi-byte characters:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00002737- When editing a file with both utf-8 and latin1 text Vim always falls back
2738 to latin1. Add a command to convert the latin1 characters to utf-8?
2739 :unmix utf-8,latin1 filename
2740 Would only work when 'encoding' is utf-8.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027419 When the tail byte of a double-byte character is illegal (e.g., a CR), the
2742 display is messed up (Yasuhiro Matsumoto). Should check for illegal
2743 double-byte characters and display them differently (display each single
2744 byte).
Bram Moolenaare6dc5732010-07-24 23:52:26 +020027459 'fenc' in modeline problem: add option to reload the file when 'fenc' is
2746 set to a different value in a modeline? Option can be default on. Could
2747 it be done with an autocommand?
Bram Moolenaar071d4272004-06-13 20:20:40 +000027488 Add an item in 'fileencodings' to check the first lines of a file for
2749 the encoding. See Python PEP: http://www.python.org/peps/pep-0263.html.
2750 To avoid getting a wrong encoding only accept something Emacs-like:
2751 "-*- coding: enc-na_me.foo -*-" and "-*- coding= enc-na_me.foo -*-"
2752 Match with "-\*-\s*coding[:=]\s*\([::word::-_.]\+\)\s*-\*-" and use first
2753 item.
27548 Add an item in 'fileencodings' to check the first line of an XML file for
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00002755 the encoding. <?xml version="1.0" encoding="UTF-8"?> Or "charset=UTF-8"?
2756 For HTML look for "charset=utf-8".
Bram Moolenaar071d4272004-06-13 20:20:40 +000027578 The quickfix file is read without conversion, thus in 'encoding'. Add an
2758 option to specify the encoding of the errorfile and convert it. Also for
Bram Moolenaar293ee4d2004-12-09 21:34:53 +00002759 ":grep" and ":helpgrep".
Bram Moolenaar46c9c732004-12-12 11:37:09 +00002760 More generic solution: support a filter (e.g., by calling a function).
Bram Moolenaar071d4272004-06-13 20:20:40 +000027618 When a file was converted from 'fileencoding' to 'encoding', a tag search
2762 should also do this on the search pattern. (Andrzej M. Ostruszka)
Bram Moolenaar8c8de832008-06-24 22:58:06 +000027638 When filtering changes the encoding 'fileencoding' may not work. E.g.,
2764 when using xxd and 'fileencoding' is "utf-16". Add an option to set a
2765 different fileencoding for filter output?
Bram Moolenaar071d4272004-06-13 20:20:40 +000027667 When converting a file fails, mention which byte could not be converted,
2767 so that the user can fix the problem.
27688 Add configure option to be able to disable using the iconv library. (Udo
2769 Schweigert)
Bram Moolenaar071d4272004-06-13 20:20:40 +000027709 'aleph' should be set to 1488 for Unicode. (Zvi Har'El)
27718 Should add test for using various commands with multi-byte characters.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027728 'infercase' doesn't work with multi-byte characters.
27738 toupper() function doesn't handle byte count changes.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000027747 Searching and composing characters:
2775 When searching, should order of composing characters be ignored?
2776 Add special item to match with a composing character, zero-width, so that
2777 one can replace a base character and keep the composing characters.
2778 Add a special item to match with a composing character, so that composing
2779 characters can be manipulated.
2780 Add a modifier to ignore composing characters, only compare base
2781 characters. Useful for Hebrew (Ron Aaron)
Bram Moolenaar071d4272004-06-13 20:20:40 +000027828 Should implement 'delcombine' for command line editing.
27838 Detect overlong UTF-8 sequences and handle them like illegal bytes.
27848 ":s/x/\u\1/" doesn't work, making uppercase isn't done for multi-byte
2785 characters.
27868 UTF-8: "r" in Visual mode doesn't take composing characters.
27878 UTF-8: When there is a precomposed character in the font, use it instead
2788 of a character and a composing character. See xterm for an example.
27897 When a character can't be displayed, display its digraph instead.
2790 'display' option to specify this.
27917 Use ideas for nl_langinfo() from Markus Kuhn in enc_default():
2792 (www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c)
2793- GTK and Win32: Allow selecting fonts for 'guifontset' with the
2794 fontselector somehow.
2795- GTK and Win32: make it possible to set the font for the menu to make it
2796 possible to have 'encoding' different from the current locale.
2797- dbcs_class() only works for Japanese and Korean. Implement this for
2798 other encodings. The "euc-jp" and "euc-kr" choices might be wrong.
2799- Find some way to automatically select the right GUI font or fontset,
2800 depending on the default value of 'encoding'.
2801 Irrelevant in the GTK+ 2 GUI so long as UTF-8 is used.
2802 For Windows, the charset_pairs[] table could be used. But how do we know
2803 if a font exists?
2804- Do keyboard conversion from 'termencoding' to 'encoding' with
Bram Moolenaar446beb42011-05-10 17:18:44 +02002805 convert_input() for Mac GUI.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002806- Add mnemonics from RFC1345 longer than two characters.
2807 Support CTRL-K _{mnemonic}_
28087 In "-- INSERT (lang) --" show the name of the keymap used instead of
2809 "lang". (Ilya Dogolazky)
Bram Moolenaarac6e65f2005-08-29 22:25:38 +00002810- Make 'breakat' accept multi-byte characters. Problem: can't use a lookup
2811 table anymore (breakat_flags[]).
2812 Simplistic solution: when 'formatoptions' contains "m" also break a line
2813 at a multi-byte character >= 0x100.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002814- Add the possibility to enter mappings which are used whenever normal text
2815 could be entered. E.g., for "f" command. But not in Normal mode. Sort
2816 of opposite of 'langmap'. Use ":tmap" command?
2817- When breaking a line, take properties of multi-byte characters into
2818 account. The "linebreak" program from Bruno Haible can do it:
2819 ftp://ftp.ilog.fr/pub/Users/haible/gnu/linebreak-0.1.tar.gz
2820 But it's very complicated...
2821
2822
2823Printing:
Bram Moolenaarc0761132005-03-18 20:30:32 +000028247 Implement "undercurl" for printing.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002825- Add "page width" to wrap long lines.
2826- Win32: use a font dialog for setting 'printfont'. Can reuse the code for
2827 the 'guifont' dialog, put the common code in a separate function.
Bram Moolenaar567e4de2004-12-31 21:01:02 +00002828- Add the file timestamp to the page header (with an option). (George
2829 Reilly)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002830- Win32: when 'printfont' is empty use 'guifont'.
2831- Unix: Use some dialog box to do the obvious settings (paper size, printer
2832 name, portrait/landscape, etc).
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00002833- PostScript: Only works for text that can be converted to an 8-bit
2834 character set. How to support Unicode fully?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002835- Allow specifying the paper size, instead of using a standard size. Same
2836 units as for the margins.
2837- Support right-to-left text?
28388 Make the foreground color darkening function preserve the hue of the
2839 color.
2840
2841
2842Syntax highlighting:
Bram Moolenaar071d4272004-06-13 20:20:40 +000028438 Make ":syn off" use 'runtimepath' instead of $VIMRUNTIME. (Gary Johnson)
2844 Should do the same for ":syn on" and ":syn manual".
28458 Support "containedin" argument for ":syn include", so that the defined
2846 cluster can be added to existing syntax items.
28478 C syntax: Don't highlight {} as errors inside () when used like this:
2848 "({ something })", often used in GCC code.
Bram Moolenaar910f66f2006-04-05 20:41:53 +000028497 Add a "startgroup" to a region. Used like "nextgroup" inside the region,
2850 preferred item at the start of the region. (Charles Campbell)
Bram Moolenaar071d4272004-06-13 20:20:40 +000028518 When editing a new file without a name and giving it a name (by writing
2852 it) and 'filetype' is not set, detect the filetype. Avoid doing it for
2853 ":wq file".
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000028547 For "nextgroup" we have skipwhite, skipnl and skipempty. It would be
2855 really nice to be able to skip with a pattern. Or skip with a syntax
2856 group. (Nikolai Weibull, 2007 Feb 27)
Bram Moolenaar071d4272004-06-13 20:20:40 +000028578 Make conversion to HTML faster (Write it in C or pre-compile the script).
28589 There is still a redraw bug somewhere. Probably because a cached state is
2859 used in a wrong way. I can't reproduce it...
Bram Moolenaar071d4272004-06-13 20:20:40 +000028607 Be able to change only the background highlighting. Useful for Diff* and
2861 Search highlighting.
Bram Moolenaar17be7e62006-03-12 22:13:45 +000028627 When 'number' is set highlight the number of the current line.
2863 Must be enabled with an option, because it slows down display updating.
Bram Moolenaar071d4272004-06-13 20:20:40 +000028648 Allow the user to add items to the Syntax menu sorted, without having to
2865 change this for each release.
28668 Add a "matchcontains" for regions: items contained in the start or end
2867 pattern, but not in the body.
28688 Add a "keepend-contained" argument: Don't change the end of an item this
2869 one is contained in. Like "keepend" but specified on the contained item,
2870 instead of the containing item.
Bram Moolenaar071d4272004-06-13 20:20:40 +000028718 cpp.vim: In C++ it's allowed to use {} inside ().
28728 Some syntax files set 'iskeyword'. When switching to another filetype
2873 this isn't reset. Add a special keyword definition for the syntax rules?
2874 When this is done, use vim.vim syntax highlighting for help file examples,
2875 but without ":" in 'iskeyword' for syntax.
28768 Add specific syntax item to match with parens/braces that don't have a
2877 "%" match. :syntax nomatch cMatchError (,{,[,),},] [contained]
28788 Highlight the text between two matching parens (e.g., with a grey
2879 background) when on one of the parens or in between them.
Bram Moolenaar5e3cb7e2006-02-27 23:58:35 +00002880 Option for the matchparen plugin?
Bram Moolenaar071d4272004-06-13 20:20:40 +000028818 Add a command to jump to the next character highlighted with "Error".
28828 When using a cterm, and no ctermfg or ctermbg are defined, use start/stop
2883 sequences. Add remark in docs that :if 'term' == "term-name" should be
2884 used.
28858 Add @spell cluster to String and Comment groups for many languages. Will
2886 allow spell checking. (Fleiner)
28878 When listing syntax items, try to sort the keywords alphabetically. And
2888 re-insert the [] if possible.
28898 Make it possible to use color of text for Visual highlight group (like for
2890 the Cursor).
Bram Moolenaara5792f52005-11-23 21:25:05 +000028918 It would be useful to make the highlight group name an expression. Then
2892 when there is a match, the expression would be evaluated to find out what
2893 highlight group to use. Could be used to check if the shell used in a
2894 password file appears in /etc/shells. (Nikolai Weibull)
2895 syn match =s:checkShell(v:match) contained 'pattern'
Bram Moolenaar071d4272004-06-13 20:20:40 +000028968 Make it possible to only highlight a sub-expression of a match. Like
2897 using "\1" in a ":s" command.
28988 Support for deleting syntax items:
2899 :syn keyword cTodo remove this
2900 :syn match cTodo remove "pattern"
2901 :syn region cString remove start="this" end="that"
29028 Add possibility to sync on something else, when the syncing in one way
2903 doesn't find match. For HTML: When no {script} is found, try looking for
2904 a '<'. (Fleiner)
29057 Replace the synchronizing method with a state machine specification?
2906 Should be able to start at any line in the file, search forwards or
2907 backwards, and use the result of matching a pattern.
29087 Use parsing like awk, so that e.g., a ( without a matching ) can be
2909 detected.
29108 Make it possible to use "inverted" highlighting, invert the original
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00002911 character. For Visual mode. (xterm-selection already does this).
Bram Moolenaar071d4272004-06-13 20:20:40 +000029128 Highlight non-printable characters with "SpecialChar", linked to
2913 "Special". Display them with the digraph characters, if possible.
Bram Moolenaar071d4272004-06-13 20:20:40 +000029148 Highlight the clipboard-selection with a highlight group.
29158 Be able to reset highlighting to its original (default) values.
29167 Be able to write current highlighting to a file as commands, similar to
2917 ":mkvimrc".
29188 Improve c.vim:
2919 - Add check for unterminated strings, with a variable to switch it on:
2920 "c_strict_ansi".
2921 - Detect unbalanced "#endif". Requires looking back a long way...
29228 Add an option to restrict the updating of syntax highlighting to the
2923 current line while in Insert mode.
29248 When guessing value of 'background', the syntax file has already been
2925 loaded (from the .gvimrc). After changing 'background', load it again?
29268 Add ":syn resync" command, to re-parse the whole file until the current
2927 display position.
29288 Should support "me" offset for a region start pattern. To be used to
2929 allow searching for the end pattern inside the match of the end pattern.
2930 Example: syn region pikeXX start="([^{]" end=")" should work on "()".
29318 When using a regexp for "contains=", should delay matching with it until
2932 redrawing happens. Set a flag when a group is added, check this flag when
2933 highlighting starts.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000029348 Some terminals can display colors like the GUI. Add some setting to use
2935 GUI colors for the terminal? With something to define the escape
2936 sequence.
Bram Moolenaarf193fff2006-04-27 00:02:13 +000029377 It's possible for an item to be transparent, so that the colors of an item
2938 lower on the stack is used. Also do this with highlighting, so that the
2939 user can set transparent highlighting? E.g. a number in a C comment would
2940 get the color of a comment, a number in an assignment Normal. (Nikolai
2941 Weibull)
Bram Moolenaar071d4272004-06-13 20:20:40 +000029427 Add "semitrans": Add highlighting. E.g., make the text bold, but keep the
2943 colors. And add colors, so that Green+Red becomes Yellow.
2944 E.g. for this html:
2945 <B> bold text <I> italic+bold text </B> italic text </I>
Bram Moolenaar071d4272004-06-13 20:20:40 +000029467 CTRL-] checks the highlight group for finding out what the tag is.
29477 Add an explanation how a list of words can be used to highlight misspelled
2948 words.
Bram Moolenaar071d4272004-06-13 20:20:40 +000029498 Add more command line completion for :syntax.
29508 Add more command line completion for :highlight.
Bram Moolenaar071d4272004-06-13 20:20:40 +000029517 Should find a better way to parse the :syntax and :highlight commands.
2952 Use tables or lists that can be shared by parsing for execution and
2953 completion?
29548 Add ColorSchemePost autocommand event, so that scripts can set up their
2955 highlighting. (Salman Halim)
29567 Add a few sets of colors (e.g. Borland Turbo C one). With a menu to
2957 select one of the sets.
29588 Add offsets to sub-matches: "\(a*\) *"he=e1-1
2959 'e' is end of match 'e1' is end of sub-match 1, 's2' is start of submatch
2960 2, etc.
29618 In Insert mode, when there are typeahead characters, postpone the
2962 highlighting (for "." command).
29638 Syncing on comments isn't 100% correct when / / lines mix with / * and * /.
2964 For example: What about a line that starts with / / and contains * /?
29658 Ignore / * and * / inside strings, when syncing.
29667 Build a few more syntax files from the file "/usr/share/misc/vgrindefs":
2967 ISP, LDL, Icon, ratfor. And check "nedit/source/highlight.c".
29686 Add possibility to have background color continue until the right edge of
2969 the window. Useful for comment blocks and function headings. (Rogall)
2970- Make it possible to add "contains" items for all items in a group. Useful
2971 when extending an already existing syntax file.
2972- Add line-continuation pattern for non-syncing items too?
Bram Moolenaar071d4272004-06-13 20:20:40 +00002973- Add possibility to highlight the whole line, including the right margin
2974 (for comment blocks).
2975- Add 'hlmatch' option: List of flags:
2976 'c': highlight match for character under the cursor.
2977 'b': highlight the previous (, and its match.
2978 'a': highlight all text from the previous ( until its match.
2979 Also for {}, <>, etc.?
2980 'e': highlight all braces without a match (slow?)
2981 OR: add an argument "cursor" to the syntax command, which means that the
2982 region/match/keyword is only highlighted when the cursor is on it.
2983 (Campbell)
2984 Or do it like Elvis: define text objects and how to highlight them around
2985 the cursor. (Iain Truskett)
29867 Make it possible to use all words in the tags files as Keyword.
2987 Can also be done with a script (but it's slow).
29887 Make it possible to call a ":" command when a match is found. Should
2989 allow for adding keywords from the text (e.g. variables that are set).
2990 And allows for sections with different highlighting.
29917 Add highlight group for commandline: "Commandline". Make sure it
2992 highlights the command line while typing a command, and any output from
2993 messages. And external commands?
29948 Make a version that works like less, but with highlighting: read stdin for
2995 text, exit at end of file, don't allow editing, etc. moreim? lessim?
29967 SpecialKey highlighting overrules syntax highlighting. Can't give an
2997 unprintable char another color. Would be useful for ^M at end of line.
2998
2999
3000Built-in script language:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000030018 Make the filename and line number available to script functions, so that
3002 they can give useful debugging info. The whole call stack would be ideal.
Bram Moolenaar768b8c42006-03-04 21:58:33 +000030037 Execute a function with standard option values. No need to save and
3004 restore option values. Especially useful for new options. Problem: how
3005 to avoid a performance penalty (esp. for string options)?
Bram Moolenaar071d4272004-06-13 20:20:40 +000030068 Add referring to key options with "&t_xx". Both for "echo &t_xx" and
3007 ":let &t_xx =". Useful for making portable mappings.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003008- Add ":let var ?= value", conditional assignment. Patch by Dave Eggum,
3009 2006 Dec 11.
3010- range for ":exec", pass it on to the executed command. (Webb)
Bram Moolenaarc5604bc2010-07-17 15:20:30 +020030118 ":{range}source": source the lines from the current file.
3012 You can already yank lines and use :@" to execute them.
3013 Most of do_source() would not be used, need a new function.
3014 It's easy when not doing breakpoints or profiling.
3015 Requires copying the lines into a list and then creating a function to
3016 execute lines from the list. Similar to getnextac().
Bram Moolenaar1056d982006-03-09 22:37:52 +000030177 ":include" command: just like ":source" but doesn't start a new scriptID?
3018 Will be tricky for the list of script names.
Bram Moolenaar071d4272004-06-13 20:20:40 +000030198 Have a look at VSEL. Would it be useful to include? (Bigham)
30208 Add ":fungroup" command, to group function definitions together. When
3021 encountered, all functions in the group are removed. Suggest using an
3022 obscure name to avoid name clashes. Require a ":fungroup END" in the same
3023 sourced file? Assume the group ends at the end of the file. Handle
3024 nested packages?
3025 Alternative: Support packages. {package-name}:{function-name}().
3026 Packages are loaded automatically when first used, from
3027 $VIMRUNTIME/packages (or use a search path).
Bram Moolenaar071d4272004-06-13 20:20:40 +000030287 Pre-parse or compile Vim scripts into a bytecode.
3029 1. Put the bytecode with the original script, with an ":if
3030 has('bytecode')" around it, so that it's only used with a Vim that
3031 supports it. Update the code with a command, can be used in an
3032 autocommand.
3033 2. Use a ".vic" file (like Python use .pyc). Create it when writing a
3034 .vim file. Problem: distribution.
3035 3. Use a cache directory for each user. How to recognize which cached
3036 file belongs to a sourced script?
Bram Moolenaar071d4272004-06-13 20:20:40 +000030377 Add argument to winwidth() to subtract the space taken by 'foldcolumn',
3038 signs and/or 'number'.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000030396 Add ++ and -- operators? They only work on variables (lvals), how to
3040 implement this?
Bram Moolenaar071d4272004-06-13 20:20:40 +000030418 Add functions:
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003042 has(":command") Check if ":command" works. compare function
3043 with "ex_ni". E.g. for ":simalt".
3044 system() With a List argument. Bypasses the shell, use
3045 exec() directly. (Bob Hiestand)
3046 escape() Add argument to specify what to escape with.
3047 modestack() Instead of just the current mode return the
3048 stack of Insert / CTRL-O / :normal things.
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00003049 realname() Get user name (first, last, full)
3050 user_fullname() patch by Nikolai Weibull, Nov
3051 3 2002
3052 Only add this when also implemented for
3053 non-Unix systems, otherwise a shell cmd could
3054 be used.
3055 get_user_name() gets login name.
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003056 menuprop({name}, {idx}, {what})
3057 Get menu property of menu {name} item {idx}.
3058 menuprop("", 1, "name") returns "File".
3059 menuprop("File", 1, "n") returns "nmenu
3060 File.Open..." argument.
3061 Patch by Ilya Sher, 2004 Apr 22
3062 Return a list of menus and/or a dictionary
3063 with properties instead.
3064 mapname({idx}, mode) return the name of the idx'th mapping.
3065 Patch by Ilya Sher, 2004 Mar 4.
3066 Return a list instead.
Bram Moolenaar05159a02005-02-26 23:04:13 +00003067 char2hex() convert char string to hex string.
Bram Moolenaar446beb42011-05-10 17:18:44 +02003068 crypt() encrypt string
3069 decrypt() decrypt string
3070 base64enc() base 64 encoding
3071 base64dec() base 64 decoding
Bram Moolenaar071d4272004-06-13 20:20:40 +00003072 attributes() return file protection flags "drwxrwxrwx"
Bram Moolenaar05159a02005-02-26 23:04:13 +00003073 filecopy(from, to) Copy a file
Bram Moolenaar071d4272004-06-13 20:20:40 +00003074 shorten(fname) shorten a file name, like home_replace()
Bram Moolenaar05159a02005-02-26 23:04:13 +00003075 perl(cmd) call Perl and return string
Bram Moolenaar071d4272004-06-13 20:20:40 +00003076 inputrl() like input() but right-to-left
Bram Moolenaar8c8de832008-06-24 22:58:06 +00003077 typed() return the characters typed and consumed (to
3078 find out what happened)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003079 virtualmode() add argument to obtain whether "$" was used in
3080 Visual block mode.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003081 getacp() Win32: get codepage (Glenn Maynard)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003082 deletebufline() delete line in any buffer
3083 appendbufline() append line in any buffer
Bram Moolenaar071d4272004-06-13 20:20:40 +00003084 libcall() Allow more than one argument.
3085 libcallext() Like libcall(), but using a callback function
3086 to allow the library to execute a command or
3087 evaluate an expression.
Bram Moolenaar071d4272004-06-13 20:20:40 +000030887 Make bufname("'0") return the buffer name from mark '0. How to get the
3089 column and line number? col("'0") currently returns zero.
30908 argc() returns 0 when using "vim -t tag". How to detect that no file was
3091 specified in any way? To be able to jump to the last edited file.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000030928 Pass the command line arguments to Vim scripts in some way. As v:args
3093 List? Or extra parameter to argv()?
Bram Moolenaar071d4272004-06-13 20:20:40 +000030948 Add command arguments with three dashes, passed on to Vim scripts.
Bram Moolenaar071d4272004-06-13 20:20:40 +000030957 Add optional arguments to user functions:
3096 :func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)
30976 User functions: Functions local to buffer "b:func()"?
Bram Moolenaar5e3cb7e2006-02-27 23:58:35 +000030988 For Strings add ":let var[{expr}] = {expr}". When past the end of "var"
3099 just ignore.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031008 The "= register should be writable, if followed by the name of a variable,
3101 option or environment variable.
31028 ":let &option" should list the value of the option.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000031038 ":let Func().foo = value" should work, also when "foo" doesn't exist.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01003104 Also: ":let Func()[foo] = value" should work. Same for a List.
Bram Moolenaar5e3cb7e2006-02-27 23:58:35 +000031057 Add synIDlist(), making the whole list of syntax items on the syntax stack
3106 available as a List.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031078 Add autocommand-event for when a variable is changed:
3108 :au VarChanged {varname} {commands}
31098 Add "has("gui_capable")", to check if the GUI can be started.
31108 Add possibility to use variables like registers: characterwise (default),
3111 linewise (when ending in '\n'), blockwise (when ending in '\001'). reg0,
3112 rega, reg%, etc. Add functions linewise({expr}), blockwise({expr}) and
3113 charwise({expr}).
31147 Make it possible to do any command on a string variable (make a buffer
3115 with one line, containing the string). Maybe add an (invisible) scratch
3116 buffer for this?
3117 result = scratch(string, command)
3118 result = apply(string, command)
3119 result = execute(string, command)
3120 "command" would use <> notation.
3121 Does scratch buffer have a number? Or re-use same number?
31227 Add function to generate unique number (date in milliseconds).
Bram Moolenaar071d4272004-06-13 20:20:40 +00003123
3124
3125Robustness:
Bram Moolenaar843ee412004-06-30 16:16:41 +000031266 Add file locking. Lock a file when starting to edit it with flock() or
3127 fcntl(). This patch has advisory file locking while reading/writing
3128 the file for Vim 5.4: ~/vim/patches/kahn_file_locking .
3129 The patch is incomplete (needs support for more systems, autoconf).
3130 Andy doesn't have time to work on it.
3131 Disadvantage: Need to find ways to gracefully handle failure to obtain a
3132 lock. When to release a lock: When buffer is unloaded?
Bram Moolenaar071d4272004-06-13 20:20:40 +00003133
3134
3135Performance:
Bram Moolenaarc236c162008-07-13 17:41:49 +000031367 For string variables up to 3 bytes don't allocate memory, use v_list
3137 itself as a character array. Use VAR_SSTRING (short string).
Bram Moolenaare6dc5732010-07-24 23:52:26 +020031387 Add 'lazysize' option: Above this size Vim doesn't load everything before
3139 starting to edit a file. Things like 'fileencodings' only work up to this
3140 size, modelines only work at the top. Useful for large log files where
3141 you only want to look at the first few pages. Use zero to disable it.
Bram Moolenaarc236c162008-07-13 17:41:49 +000031428 move_lines() copies every line into allocated memory, making reloading a
3143 buffer a lot slower than re-editing the file. Can the memline be locked
3144 so that we don't need to make a copy? Or avoid invoking ml_updatechunk(),
3145 that is taking a lot of time. (Ralf Wildenhues, 2008 Jul 7)
Bram Moolenaard04b7502010-07-08 22:27:55 +02003146 With a patch, but does it work?
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000031478 Instead of loading rgb.txt every time a color wasn't recognized load it
3148 once and keep it in memory. Move the code to a common place to avoid
3149 repeating it in various system files.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031508 Turn b_syn_ic and b_syn_containedin into b_syn_flags.
31519 Loading menu.vim still takes quite a bit of time. How to make it faster?
31528 in_id_list() takes much time for syntax highlighting. Cache the result?
31537 setpcmark() shifts the jumplist, this takes quite a bit of time when
3154 jumping around. Instead use an index for the start?
31558 When displaying a space with only foreground highlighting, it's the same
3156 as a space without attributes. Avoid displaying spaces for the "~" lines
3157 when starting up in a color terminal.
31588 Avoid alloc() for scratch buffer use, esp. in syntax.c. It's very slow on
3159 Win16.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031608 Profiling shows that in_id_list() is used very often for C code. Can this
3161 function be improved?
31628 For an existing file, the page size of the swap file is always the
3163 default, instead of using the block size of the device, because the swap
3164 file is created only after setting the block size in mf_open(). How can
3165 this be improved?
31668 Set default for 'ttyscroll' to half a screen height? Should speed up
3167 MS-DOS version. (Negri)
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000031687 C syntax highlighting gets a lot slower after ":set foldmethod=syntax".
3169 (Charles Campbell) Inserting a "{" is very slow. (dman)
Bram Moolenaar071d4272004-06-13 20:20:40 +000031707 HTML syntax highlighting is slow for long lines. Try displaying
3171 http://www.theregister.co.uk/content/4/22908.html. (Andre Pang)
31727 Check how performance of loading the wordlist can be improved (adding a
3173 lot of abbreviations).
Bram Moolenaar00659062010-09-21 22:34:02 +020031747 MS-DOS console: Add t_DL support, to make scrolling faster.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031757 Compile Ex commands to byte codes. Store byte codes in a vim script file
3176 at the end, after "compiled:. Make it look like a single comment line
3177 for old Vim versions. Insert first line "Vim script compiled <timestamp>.
3178 Only used compiled code when timestamp matches the file stat.
3179 Add command to compile a vim script and add it to the file in-place.
3180 Split Ex command executing into a parsing and executing phase.
3181 Use compiled code for functions, while loops, etc.
31828 When editing a file with extremely long lines (e.g., an executable), the
3183 "linerest" in readfile() is allocated twice to be able to copy what was
3184 read so far. Use realloc() instead? Or split the line when allocating
3185 memory fails and "linerest" is big (> 100000)?
31868 When defining autocommands (e.g., from $VIMRUNTIME/filetype.vim), need to
3187 compare each pattern with all existing patterns. Use a hash code to avoid
3188 using strcmp() too often?
31897 Include turbo_loader patches, speeding up reading a file?
3190 Speed up reading a file by reading it into a fixed-size buffer, creating
3191 the list of indexes in another buffer, and then copying the result into a
3192 memfile block with two copies. Then read the next block into another
3193 fixed-size buffer, create the second list of indexes and copy text from
3194 the two blocks to the memfile block.
31957 do_cmdline(): Avoid that the command line is copied to allocated memory
3196 and freed again later all the time. For while loops, and for when called
3197 with an argument that can be messed with.
3198 Generic solution: Make a struct that contains a pointer and a flag that
3199 indicates if the pointer should be freed when replaced.
32007 Check that the file size is not more than "sizeof(long)".
3201- Further improve finding mappings in maphash[] in vgetorpeek()
32028 Syntax highlighting is slow when deleting lines. Try in
3203 $VIMRUNTIME/filetype.vim.
3204- "out of memory" after deleting (1,$d) and changing (:%s/^/> /) a lot of
3205 lines (27000) a few times. Memory fragmentation?
3206- Have a look at how pdksh does memory allocation (alloc.c). (Dalecki)
3207- Do profiling on:
3208 - :g/pat/normal cmd
3209 - 1000ii<Esc>
3210 - deleting 10Mbyte worth of lines (netscape binary)
3211 - "[i" and "[d" (Yegappan Lakshmanan)
3212 - ":g/^/m0" on a 450Kbyte file. And the "u".
3213 - highlighting "~/vim/test/longline.tex", "~/vim/test/scwoop.tcl" and
3214 "~/vim/test/lockup.pl".
3215 - loading a syntax file to highlight all words not from a dictionary.
Bram Moolenaarcc016f52005-12-10 20:23:46 +00003216 - editing a Vim script with syntax highlighting on (loading vim.vim).
Bram Moolenaar071d4272004-06-13 20:20:40 +000032177 Screen updating can be further improved by only redrawing lines that were
3218 changed (and lines after them, when syntax highlighting was used, and it
3219 changed).
3220 - On each change, remember start and end of the change.
3221 - When inserting/deleting lines, remember begin, end, and line count.
3222- Use macros/duarte/capicua for profiling. Nvi 1.71 is the fastest!
3223- When using a file with one long line (1Mbyte), then do "$hhhh", is still
3224 very slow. Avoid calling getvcol() for each "h"?
3225- Executing a register, e.g. "10000@@" is slow, because ins_typebuf has to
3226 move the previous commands forward each time. Pass count from
3227 normal_cmd() down to do_execreg().
3228- Repeating insert "1000i-<Esc>" displays --INSERT-- all the time, because of
3229 the <Esc> at the end. Make this work faster (disable redrawing).
3230- Avoid calls to plines() for cursor line, use w_cline_height.
3231- After ":set nowrap" remove superfluous redraw with wrong hor. offset if
3232 cursor is right of the screen.
32338 Make CTRL-C on Unix generate a signal, avoid using select() to check for a
3234 CTRL-C (it's slow).
3235
3236
3237Code size:
32388 GUI: When NO_CONSOLE is defined, more code can be excluded.
3239- Put getline() and cookie in a struct, so only one argument has to be
3240 passed to do_cmdline() and other functions.
32418 Make a GUI-only version for Unix?
32428 In buf_write _() isn't needed when setting errmsg, do it once when using
3243 it.
32447 When compiling with a GUI-only version, the code for cterm colors can be
3245 left out.
32468 When compiled with a GUI-only version, the termcap entries for terminals
3247 can be removed.
32488 Can the check for libelf in configure.in be removed?
3249
3250
3251Messages:
32528 When using ":q" in a changed file, the error says to "add !". Add the
3253 command so that beginners understand it: "use :q!".
32548 For 'verbose' level 12 prints commands from source'ed files. How to skip
3255 lines that aren't executed? Perhaps move the echoing to do_cmdline()?
32568 Use 'report' for ":bdel"? (Krishna) To avoid these messages when using a
3257 script.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003258- Delete message after new command has been entered and have waited for key.
3259 Perhaps after ten seconds?
3260- Make message history available in "msg" variables: msg1, msg2, .. msg9.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000032618 When reading from stdin allow suppressing the "reading from stdin"
3262 message.
Bram Moolenaar071d4272004-06-13 20:20:40 +000032639 Check handling of overwriting of messages and delays:
3264 Very wrong: errors while redrawing cause endless loop.
3265 When switching to another file and screen scrolls because of the long
3266 message and return must be typed, don't scroll the screen back before
3267 redrawing.
Bram Moolenaar071d4272004-06-13 20:20:40 +000032688 When address range is wrong you only get "Invalid range". Be a bit more
3269 specific: Negative, beyond last line, reverse range? Include the text.
32708 Make it possible to ignore errors for a moment ('errorignore'?). Another
3271 option to switch off giving error messages ('errorquiet'?). Also an option
3272 not to give any messages ('quiet')? Or ":quiet on", ":quiet off".
3273 Careful: For a severe error (out of memory), and when the user starts
3274 typing, error messages must be switched back on.
3275 Also a flag to ignore error messages for shell commands (for mappings).
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00003276- Option to set time for emsg() sleep. Interrupt sleep when key is typed?
Bram Moolenaarcc016f52005-12-10 20:23:46 +00003277 Sleep before second message?
Bram Moolenaar071d4272004-06-13 20:20:40 +000032788 In Ex silent mode or when reading commands from a file, what exactly is
3279 not printed and what is? Check ":print", ":set all", ":args", ":vers",
3280 etc. At least there should be no prompt. (Smulders) And don't clear the
3281 screen when reading commands from stdin. (Kendall)
3282 --> Make a difference between informative messages, prompts, etc. and
3283 error messages, printing text, etc.
32848 Window should be redrawn when resizing at the hit-enter prompt.
3285 Also at the ":tselect" prompt. Find a generic solution for redrawing when
3286 a prompt is present (with a callback function?).
3287
3288
3289Screen updating:
32907 Add a string to the 'display' option to make CTRL-E and CTRL-Y scroll one
3291 screen line, also if this means the first line doesn't start with the
3292 first character (like what happens with a single line that doesn't fit).
3293- screen_line():
3294 - insert/delete character stuff.
3295 - improve delete rest of line (spaces at end of line).
3296- When moving or resizing window, try to avoid a complete redraw (esp. when
3297 dragging the status line with the mouse).
3298- When 'lazyredraw' set, don't echo :ex commands? Need a flag to redraw when
3299 waiting for a character.
33008 Add a ":refresh [winnr]" command, to force updating a window. Useful from
3301 an event handler where ":normal" can't be used. Also useful when
3302 'lazyredraw' is set in a mapping.
33037 Make 'list' and 'linebreak' work together.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003304
3305
3306Scrolling:
Bram Moolenaar00659062010-09-21 22:34:02 +020033078 Add "zy" command: scroll horizontally to put the cursor in the middle.
Bram Moolenaar071d4272004-06-13 20:20:40 +000033086 Add option to set the overlap for CTRL-F and CTRL-B. (Garhi)
3309- extend 'scrollbind' option: 'scrollopt' words "search", "relative", etc..
3310 Also 'e'xecute some commands (search, vertical movements) in all bound
3311 windows.
33127 Add 'scrollbind' feature to make the offset of one window with the next
3313 one equal to the window height. When editing one file in both windows it
3314 looks like each window displays a page of the buffer.
3315- Allow scrolling by dragging with the mouse (grab a character and move it
3316 up/down). Like the "hand" in Acrobat reader. Use Alt-LeftMouse for this?
3317 (Goldfarb)
3318- Add command to execute some commands (search, vertical movements) in all
3319 bound windows.
3320- Add 'search' option to 'scrollopt' to allow 'scrollbind' windows to
3321 be bound by regexp searches
Bram Moolenaar69a7cb42004-06-20 12:51:53 +00003322- Add "z>" and "z<": scroll sideways one screenful. (Campbell)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003323- Add option to set the number of lines when not to scroll, instead of the
3324 fixed number used now (for terminals that scroll slow with a large number
3325 of lines but not with a single line).
3326
3327
3328Autoconf:
33298 Should use acconfig.h to define prototypes that are used by autoheader.
33308 Some compilers don't give an error for "-OPT:Olimit" but a warning. (Webb)
3331 Add a check for the warning, so that "Olimit" can be added automatically?
3332- Autoconf: Use @datadir@ for the system independent files. Make sure the
3333 system dependent and system independent files are separated. (Leitner).
3334- Add autoconf check for waitpid()/wait4().
3335- Remove fcntl() from autoconf, all systems have it?
3336- Set default for 'dictionary', add search for dictionary to autoconf.
3337
3338
3339Perl interface:
33408 Rename typemap file to something else?
Bram Moolenaar071d4272004-06-13 20:20:40 +000033417 Make buffers accessed as Perl arrays. (Clark)
33427 Make it possible to compile with non-ANSI C?
33436 Tcl/Tk has the "load" command: load a shared library (.so or .dll).
3344
3345
3346Shared libraries:
33476 Add support for loading shared libraries, and calling functions in it.
3348 :libload internal-name libname
3349 :libunload internal-name
3350 :liblist
3351 :libcall internal-name function(arg1, arg2, ...)
3352 :libcall function(arg1, arg2, ...)
3353 libcall() can have only one integer or String argument at the moment.
33546 Have a look on how Perl handles loading dynamic libraries.
3355
3356
3357Tags:
Bram Moolenaarc6fe9192006-04-09 21:54:49 +000033589 With ":set tags=./tags,../tags" and a tag appears in both tags files it is
3359 added twice. Requires figuring out the actual file name for each found
3360 match. Remove tag_fname from the match and combine it with the fname in
3361 the match (without expanding or other things that take time). When
3362 'tagrelative' is off tag_fname isn't needed at all.
Bram Moolenaarc236c162008-07-13 17:41:49 +000033638 For 'tags' wildcard in the file name is not supported, only in the path.
3364 This is due to it using |file-searching|. Suboptimal solution would be to
3365 make the filename or the whole option use |wildcards| globing, better
Bram Moolenaarf91787c2010-07-17 12:47:16 +02003366 would be to merge the 2 kinds of globing. originally (Erik Falor, 2008
Bram Moolenaarc236c162008-07-13 17:41:49 +00003367 April 18), updated (Ian Kelling, 2008 July 4)
Bram Moolenaard68071d2006-05-02 22:08:30 +000033688 Use a mechanism similar to omni completion to figure out the kind of tab
3369 for CTRL-] and jump to the appropriate matching tag (if there are
3370 several).
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01003371 Alternative: be able to define a function that takes the tag name and uses
3372 taglist() to find the right location. With indication of using CTRL-] so
3373 that the context can be taken into account. (Robert Webb)
Bram Moolenaar1d2ba7f2006-02-14 22:29:30 +000033747 Can CTRL-] (jump to tag) include a following "." and "->" to restrict the
3375 number of possible matches? Check tags file for an item that has members.
3376 (Flemming Madsen)
Bram Moolenaar071d4272004-06-13 20:20:40 +000033778 Scope arguments for ":tag", e.g.: ":tag class:cPage open", like Elvis.
33788 When output of ":tselect" is long, getting the more-prompt, should be able
3379 to type the tag number directly.
Bram Moolenaar071d4272004-06-13 20:20:40 +000033807 Add the possibility to use the "-t {tag}" argument multiple times. Open a
3381 window for each tag.
33827 Make output of ":tselect" a bit nicer. Use highlighting?
33837 Highlight the "tag 1 of >2" message. New highlight group, or same as "hit
3384 bottom" search message.
33857 When using ":tag" at the top of the tag stack, should add another entry,
3386 so CTRL-T can bring you back to where you are now AND to where you were
3387 before the previous ":tag" command. (Webb)
Bram Moolenaar485db9b2005-01-31 19:23:41 +00003388- When doing "[^I" or "[^D" add position to tag stack.
3389- Add command to put current position to tag stack: ":tpush".
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003390- Add functions to save and restore the tag stack? Or a command to switch
3391 to another tag stack? So that you can do something else and come back to
3392 what you were working on.
Bram Moolenaar071d4272004-06-13 20:20:40 +000033937 When using CTRL-] on someClass::someMethod, separate class from method and
3394 use ":ta class:someClass someMethod".
3395 Include C++ tags changes (Bertin). Change "class::func" tag into "func"
3396 with "class=class"? Docs in oldmail/bertin/in.xxx.
33977 Add ":tagargs", to set values for fields:
3398 :tagargs class:someclass file:version.c
3399 :tagargs clear
3400 These are then the default values (changes the order of priority in tag
3401 matching).
34027 Support for "gtags" and "global"? With ":rtag" command?
3403 There is an example for how to do this in Nvi.
3404 Or do it like Elvis: 'tagprg' and 'tagprgonce' options. (Yamaguchi)
3405 The Elvis method is far more flexible, do it that way.
34067 Support "col:99" extra field, to position the cursor in that column. With
3407 a flag in 'cpoptions' to switch it off again.
34087 Better support for jumping to where a function or variable is used. Use
3409 the id-utils, with a connection to "gid" (Emacs can do it too). Add
3410 ":idselect", which uses an "ID" database (made by "mkid") like "tselect".
Bram Moolenaar071d4272004-06-13 20:20:40 +00003411
3412
Bram Moolenaar071d4272004-06-13 20:20:40 +00003413Win32 GUI:
34148 Make debug mode work while starting up (vim -D). Open console window for
3415 the message and input?
34167 The Python interface only works with one version of Python, selected at
3417 compile time. Can this be made to work with version 2.1 and 2.2
3418 dynamically?
34197 GvimExt: when there are several existing Vims, move the list to a submenu.
3420 (Mike McCollister)
34218 When using "Edit with Vim" for one file it changes directory, when several
3422 files are selected and using "Edit with single Vim" the directory isn't
3423 changed. At least change directory when the path is the same for all
3424 files. Perhaps just use the path of the first file or use the longest
3425 common part of the path.
34268 Add font argument to set the lfCharSet. (Bobcik)
34278 Somehow automatically detect the system language and set $LANG, so that
3428 gettext and menus work.
34298 Could keep console open to run multiple commands, to avoid the need to hit
3430 return in every console.
Bram Moolenaar06b5d512010-05-22 15:37:44 +02003431 Also: Look at how Emacs does run external commands:
Bram Moolenaar071d4272004-06-13 20:20:40 +00003432 http://www.cs.washington.edu/homes/voelker/ntemacs.html.
34338 Need a separate PopUp menu for modeless selection. Need two new commands:
3434 Copy selection to clipboard, Paste selection (as typed text).
34358 Support copy/paste for other file formats. At least HTML, perhaps RTF.
3436 Add "copy special" and "paste special" commands?
34377 Use different default colors, to match the current Windows color scheme.
3438 Sys_WindowText, Sys_Window, etc. (Lionel Schaffhauser)
34397 Use <C-Tab> to cycle through open windows (e.g., the find dialog).
34407 <Esc> should close a dialog.
34417 Keep the console for external commands open. Don't wait for a key to be
3442 hit. Re-open it when the user has closed it anyway. Or use a prepended
3443 command: ":nowait {cmd}", or ":quiet", which executes {cmd} without any
3444 prompts.
34457 Should be able to set an option so that when you double click a file that
3446 is associated with Vim, you can either get a new instance of Vim, or have
3447 the file added into an already running Vim.
34487 The "-P" argument only works for the current codepage. Use wide
3449 functions to find the window title.
3450
3451
3452GUI:
Bram Moolenaar446beb42011-05-10 17:18:44 +020034538 Make inputdialog() work for Photon, Amiga.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003454- <C--> cannot be mapped. Should be possible to recognize this as a
3455 normal "-" with the Ctrl modifier.
34567 Implement ":popup" for other systems than Windows.
34578 Implement ":tearoff" for other systems than Win32 GUI.
34586 Implement ":untearoff": hide a torn-off menu.
34598 When using the scrollbar to scroll, don't move the cursor position. When
3460 moving the cursor: scroll to the cursor position.
34619 Make <S-Insert> paste from the clipboard by default. (Kunze)
34627 Menu local to a buffer, like mappings. Or local to a filetype?
34638 In Buffers menu, add a choice whether selecting a buffer opens it in the
3464 current window, splits the window or uses ":hide".
34658 Dragging the mouse pointer outside of a Vim Window should make the text
3466 scroll. Return a value from gui_send_mouse_event() to the machine
3467 specific code to indicate the time in which the event should be repeated.
34688 Make it possible to ignore a mouse click when it's used to give Vim (gvim)
3469 window focus. Also when a mouse click is used to bring a window to front.
34708 Make the split into system independent code and system specific code more
3471 explicit. There are too many #ifdefs in gui.c.
3472 If possible, separate the Vim code completely from the GUI code, to allow
3473 running them in separate processes.
Bram Moolenaar071d4272004-06-13 20:20:40 +000034747 X11: Support cursorColor resource and "-cr" argument.
34758 X11 (and others): CTRL-; is not different from ';'. Set the modifier mask
3476 to include CTRL for keys where CTRL produces the same ASCII code.
Bram Moolenaaraba2f482005-08-10 07:57:38 +000034777 Add some code to handle proportional fonts on more systems? Need to draw
3478 each character separately (like xterm). Also for when a double-width font
3479 is not exactly double-width. (Maeda)
Bram Moolenaar071d4272004-06-13 20:20:40 +000034808 Should take font from xterm where gvim was started (if no other default).
34818 Selecting font names in X11 is difficult, make a script or something to
Bram Moolenaar0a56cb82005-01-04 21:45:14 +00003482 select one.
Bram Moolenaar071d4272004-06-13 20:20:40 +000034838 Visual highlighting should keep the same font (bold, italic, etc.).
34848 Add flag to 'guioptions' to not put anything in the clipboard at all?
34858 Should support a way to use keys that we don't recognize yet. Add a
3486 command that adds entries to special_keys somehow. How do we make this
3487 portable (X11, Win32, ..)?
34887 Add a flag to 'guioptions' that tells not to remove inactive menu items.
3489 For systems where greying-out or removing menu items is very slow. The
3490 menu items would remain visibly normally, but not do anything.
34917 Add ":minimize" and ":maximize", which iconize the window and back.
3492 Useful when using gvim to run a script (e.g. 2html.vim).
34937 X11: Is it possible to free allocated colors, so that other programs can
3494 use them again? Otherwise, allow disabling allocating the default colors.
3495 Or allocate an own colormap (check UAE). With an option to use it. For
3496 the commandline, "-install" is mostly used for X11 programs.
34977 Add command line argument for "gvim" not to start the GUI. Sort of the
3498 inverse of "vim -g". (Vikas)
34997 Should support multi-column menus.
3500- Should add option for where to put the "Help" menu: like Motif at the far
3501 right, or with the other menus (but still at the right).
3502- Add menu item to "Keep Insert mode".
35038 ":mkgvimrc" command, that includes menus.
35046 Big change: Move GUI to separate program "vimgui", to make startup of vim a
3505 lot faster, but still be able to do "vim -g" or ":gui".
35067 More explicit mouse button binding instead of 'mousemodel'?
35077 Add option to set the position of the window on the screen. 'windowpos',
3508 which has a value of "123,456": <x>,<y>.
3509 Or add a command, like ":winsize"?
35107 Add toolbar for more GUIs.
35118 Make it possible to use "amenu icon=BuiltIn##", so that the toolbar item
3512 name can be chosen free.
35137 Make it possible to put the toolbar on top, left, right and/or bottom of
3514 the window? Allows for softkey-like use.
35156 Separate the part of Vim that does the editing from the part that runs the
3516 GUI. Communicate through a pseudo-tty. Vim starts up, creates a
3517 pty that is connected to the terminal. When the GUI starts, the pty is
3518 reconnected to the GUI process. When the GUI stops, it is connected to
3519 the terminal again. Also use the pty for external processes, it looks
3520 like a vt100 terminal to them. Vim uses extra commands to communicate GUI
3521 things.
35227 Motif: For a confirm() dialog <Enter> should be ignored when no default
3523 button selected, <Esc> should close the dialog.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035247 When using a pseudo-tty Vim should behave like some terminal (vt52 looks
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00003525 simple enough). Terminal codes to/from shell should be translated.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003526- Would it be useful to be able to quit the GUI and go back to the terminal
3527 where it was started from?
35287 Support "-visual <type>" command line argument.
3529
3530
Bram Moolenaar071d4272004-06-13 20:20:40 +00003531Autocommands:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00003532- Put autocommand event names in a hashtable for faster lookup?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010035338 When the SwapExists event is triggered, provide information about the
3534 swap file, e.g., whether the process is running, file was modified, etc.
3535 Must be possible to check the situation that it's probably OK to delete
3536 the swap file. (Marc Merlin)
35378 When all the patterns for an event are "*" there is no need to expand
3538 buffer names to a full path. This can be slow for NFS.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +000035397 For autocommand events that trigger multiple times per buffer (e.g.,
3540 CursorHold), go through the list once and cache the result for a specific
3541 buffer. Invalidate the cache when adding/deleting autocommands or
3542 changing the buffer name.
Bram Moolenaar34cdc3e2005-05-18 22:24:46 +000035437 Add TagJump event: do something after jumping to a tag.
Bram Moolenaar3d0a6032006-02-09 23:54:54 +000035448 Add "TagJumpFile" autocommand: When jumping to another file for a tag.
3545 Can be used to open "main.c.gz" when "main.c" isn't found.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035468 Use another option than 'updatetime' for the CursorHold event. The two
3547 things are unrelated for the user (but the implementation is more
3548 difficult).
Bram Moolenaar3d0a6032006-02-09 23:54:54 +000035497 Add autocommand event for when a buffer cannot be abandoned. So that the
3550 user can define the action taking (autowrite, dialog, fail) based on the
3551 kind of file. (Yakov Lerner) Or is BufLeave sufficient?
Bram Moolenaar071d4272004-06-13 20:20:40 +000035528 Autocommand for when modified files have been found, when getting input
3553 focus again (e.g., FileChangedFocus).
3554 Check when: getting focus, jumping to another buffer, ...
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000035557 Autocommand for when an option is changed. Match buffer name or option
3556 name?
Bram Moolenaar3d0a6032006-02-09 23:54:54 +000035578 Autocommands should not change registers. And marks? And the jumplist?
3558 And anything else? Add a command to save and restore these things.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035598 Add autocommands, user functions and user commands to ":mkvimrc".
Bram Moolenaar071d4272004-06-13 20:20:40 +000035606 Add KeymapChanged event, so that the effects of a different keymap can be
3561 handled (e.g., other font) (Ron Aaron)
Bram Moolenaar3d0a6032006-02-09 23:54:54 +000035627 When trying to open a directory, trigger an OpenDirectory event.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035637 Add file type in front of file pattern: <d> for directory, <l> for link,
Bram Moolenaar446beb42011-05-10 17:18:44 +02003564 <x> for executable, etc. With commas to separate alternatives. The
3565 autocommand is only executed when both the file type AND the file pattern
3566 match. (Leonard)
Bram Moolenaar071d4272004-06-13 20:20:40 +000035675 Add option that specifies extensions which are to be discarded from the
3568 file name. E.g. 'ausuffix', with ".gz,.orig". Such that file.c.gz will
3569 trigger the "*.c" autocommands. (Belabas)
35707 Add something to break the autocommands for the current event, and for
3571 what follows. Useful for a "BufWritePre" that wants to avoid writing the
3572 file.
35738 When editing "tt.gz", which is in DOS format, 'fileformat' stays at
3574 "unix", thus writing the file changes it. Somehow detect that the read
3575 command used dos fileformat. Same for 'fileencoding'.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003576- Add events to autocommands:
3577 Error - When an error happens
3578 NormalEnter - Entering Normal mode
Bram Moolenaar071d4272004-06-13 20:20:40 +00003579 ReplaceEnter - Entering Replace mode
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00003580 CmdEnter - Entering Cmdline mode (with type of cmdline to allow
3581 different mapping)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003582 VisualEnter - Entering Visual mode
Bram Moolenaar843ee412004-06-30 16:16:41 +00003583 *Leave - Leaving a mode (in pair with the above *Enter)
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003584 VimLeaveCheck - Before Vim decides to exit, so that it can be cancelled
3585 when exiting isn't a good idea.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003586 CursorHoldC - CursorHold while command-line editing
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +00003587 WinMoved - when windows have been moved around, e.g, ":wincmd J"
Bram Moolenaar071d4272004-06-13 20:20:40 +00003588 CmdUndefined - Like FuncUndefined but for user commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003589 SearchPost - After doing a search command (e.g. to do "M")
3590 PreDirChanged/PostDirChanged
3591 - Before/after ":cd" has been used (for changing the
3592 window title)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003593 ShutDown - when the system is about to shut down
Bram Moolenaar071d4272004-06-13 20:20:40 +00003594 InsertCharPost - user typed a character in Insert mode, after inserting
3595 the char.
3596 BufModified - When a buffer becomes modified, or unmodified (for
3597 putting a [+] in the window title or checking out the
3598 file from CVS).
3599 BufFirstChange - When making a change, when 'modified' is set. Can be
3600 used to do a :preserve for remote files.
3601 BufChange - after a change was made. Set some variables to indicate
3602 the position and number of inserted/deleted lines, so
3603 that marks can be updated. HierAssist has patch to add
3604 BufChangePre, BufChangePost and RevertBuf. (Shah)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00003605 ViewChanged - triggered when the text scrolls and when the window size
3606 changes.
3607 WinResized - After a window has been resized
3608 WinClose - Just before closing a window
Bram Moolenaarebefac62005-12-28 22:39:57 +00003609- Write the file now and then ('autosave'):
Bram Moolenaar071d4272004-06-13 20:20:40 +00003610 *'autosave'* *'as'* *'noautosave'* *'noas'*
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01003611 'autosave' 'as' number (default 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003612 Automatically write the current buffer to file N seconds after the
3613 last change has been made and when |'modified'| is still set.
3614 Default: 0 = do not autosave the buffer.
3615 Alternative: have 'autosave' use 'updatetime' and 'updatecount' but make
3616 them save the file itself besides the swapfile.
3617
3618
Bram Moolenaarade00832006-03-10 21:46:58 +00003619Omni completion:
Bram Moolenaarc236c162008-07-13 17:41:49 +00003620- Add a flag to 'complete' to be able to do omni completion with CTRL-N (and
3621 mix it with other kinds of completion).
Bram Moolenaarade00832006-03-10 21:46:58 +00003622- Ideas from the Vim 7 BOF at SANE:
3623 - For interpreted languages, use the interpreter to obtain information.
3624 Should work for Java (Eclipse does this), Python, Tcl, etc.
3625 Richard Emberson mentioned working on an interface to Java.
3626 - Check Readline for its completion interface.
Bram Moolenaarade00832006-03-10 21:46:58 +00003627- Ideas from others:
3628 http://www.wholetomato.com/
3629 http://www.vim.org/scripts/script.php?script_id=747
3630 http://sourceforge.net/projects/insenvim
3631 or http://insenvim.sourceforge.net
3632 Java, XML, HTML, C++, JSP, SQL, C#
3633 MS-Windows only, lots of dependencies (e.g. Perl, Internet
3634 explorer), uses .dll shared libraries.
3635 For C++ uses $INCLUDE environment var.
3636 Uses Perl for C++.
3637 Uses ctags to find the info:
3638 ctags -f $allTagsFile --fields=+aiKmnsSz --language-force=C++ --C++-kinds=+cefgmnpsut-dlux -u $files
3639 www.vim.org script 1213 (Java Development Environment) (Fuchuan Wang)
3640 IComplete: http://www.vim.org/scripts/script.php?script_id=1265
3641 and http://stud4.tuwien.ac.at/~e0125672/icomplete/
3642 http://cedet.sourceforge.net/intellisense.shtml (for Emacs)
3643 Ivan Villanueva has something for Java.
Bram Moolenaarff312a42010-05-16 15:14:25 +02003644 Emacs: http://www.xref-tech.com/xrefactory/more_c_completion.html
Bram Moolenaarade00832006-03-10 21:46:58 +00003645 Completion in .NET framework SharpDevelop: http://www.icsharpcode.net
3646- Pre-expand abbreviations, show which abbrevs would match?
3647
3648
Bram Moolenaar071d4272004-06-13 20:20:40 +00003649Insert mode completion/expansion:
Bram Moolenaar768b8c42006-03-04 21:58:33 +00003650- GUI implementation of the popup menu.
Bram Moolenaar8b2d9c42006-05-03 21:28:47 +000036517 When searching in other files the name flash by, too fast to read. Only
3652 display a name every second or so, like with ":vimgrep".
Bram Moolenaarc236c162008-07-13 17:41:49 +000036537 When expanding file names with an environment variable, add the match with
3654 the unexpanded var. So $HOME/tm expands to "/home/guy/tmp" and
3655 "$HOME/tmp"
Bram Moolenaar071d4272004-06-13 20:20:40 +000036568 When there is no word before the cursor but something like "sys." complete
3657 with "sys.". Works well for C and similar languages.
36589 ^X^L completion doesn't repeat correctly. It uses the first match with
3659 the last added line, instead of continuing where the last match ended.
3660 (Webb)
Bram Moolenaar071d4272004-06-13 20:20:40 +000036618 Add option to set different behavior for Insert mode completion:
3662 - ignore/match case
3663 - different characters than 'iskeyword'
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000036648 Add option 'isexpand', containing characters when doing expansion (so that
3665 "." and "\" can be included, without changing 'iskeyword'). (Goldfarb)
3666 Also: 'istagword': characters used for CTRL-].
3667 When 'isexpand' or 'istagword' are empty, use 'iskeyword'.
3668 Alternative: Use a pattern so that start and end of a keyword can be
3669 defined, only allow dash in the middle, etc.
Bram Moolenaar071d4272004-06-13 20:20:40 +000036708 Add a command to undo the completion, go back to the original text.
Bram Moolenaaraba2f482005-08-10 07:57:38 +000036717 Completion of an abbreviation: Can leave letters out, like what Instant
3672 text does: www.textware.com
Bram Moolenaar071d4272004-06-13 20:20:40 +000036738 Use the class information in the tags file to do context-sensitive
3674 completion. After "foo." complete all member functions/variables of
3675 "foo". Need to search backwards for the class definition of foo.
3676 Should work for C++ and Java.
3677 Even more context would be nice: "import java.^N" -> "io", "lang", etc.
36787 When expanding $HOME/dir with ^X^F keep the $HOME (with an option?).
36797 Add CTRL-X command in Insert mode like CTRL-X CTRL-N, that completes WORDS
3680 instead of words.
36818 Add CTRL-X CTRL-R: complete words from register contents.
36828 Add completion of previously inserted texts (like what CTRL-A does).
3683 Requires remembering a number of insertions.
36848 Add 'f' flag to 'complete': Expand file names.
3685 Also apply 'complete' to whole line completion.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00003686- Add a flag to 'complete' to only scan local header files, not system
3687 header files. (Andri Moell)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003688- Make it possible to search include files in several places. Use the
3689 'path' option? Can this be done with the dictionary completion (use
3690 wildcards in the file name)?
3691- Make CTRL-X CTRL-K do a binary search in the dictionary (if it's sorted).
3692- Speed up CTRL-X CTRL-K dictionary searching (don't use a regexp?).
3693- Set a mark at the position where the match was found (file mark, could
3694 be in another file).
3695- Add CTRL-A command in CTRL-X mode: show all matches.
3696- Make CTRL-X CTRL-L use the 'complete' option?
3697- Add command in CTRL-X mode to add following words to the completed string
3698 (e.g. to complete "Pointer->element" with CTRL-X CTRL-P CTRL-W CTRL-W)
3699- CTRL-X CTRL-F: Use 'path' to find completions.
3700- CTRL-X CTRL-F: Option to use forward slashes on MS-Windows?
3701- CTRL-X CTRL-F: Don't replace "$VIM" with the actual value. (Kelly)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003702- Allow listing all matches in some way (and picking one from the list).
3703
3704
3705Command line editing:
37067 Add commands (keys) to delete from the cursor to the end of the command
3707 line.
37088 Custom completion of user commands can't use the standard completion
3709 functions. Add a hook to invoke a user function that returns the type of
3710 completion to be done: "file", "tag", "custom", etc.
3711- Add flags to 'whichwrap' for command line editing (cursor right at end of
3712 lines wraps to start of line).
3713- Make editing the command line work like Insert mode in a single-line view
3714 on a buffer that contains the command line history. But this has many
3715 disadvantages, only implement it when these can be solved. Elvis has run
3716 into these, see remarks from Steve (~/Mail/oldmail/kirkendall/in.00012).
3717 - Going back in history and editing a line there would change the history.
3718 Would still need to keep a copy of the history elsewhere. Like the
3719 cmdwin does now already.
3720 - Use CTRL-O to execute one Normal mode command. How to switch to normal
3721 mode for more commands? <Esc> should cancel the command line. CTRL-T?
3722 - To allow "/" and "= need to recursively call getcmdline(), overwrite the
3723 cmdline. But then we are editing a command-line again. How to avoid
3724 that the user gets confused by the stack of command lines?
3725 - Use edit() for normal cmdline editing? Would have to integrate
3726 getcmdline() into edit(). Need to solve conflicts between Insert mode
3727 and Command-line mode commands. Make it work like Korn shell and tcsh.
3728 Problems:
3729 - Insert: completion with 'wildchar'
3730 - Insert: use cmdline abbreviations
3731 - Insert: CTRL-D deletes indent instead of listing matches
3732 - Normal: no CTRL-W commands
3733 - Normal: no ":" commands?
3734 - Normal: allow Visual mode only within one line.
3735 - where to show insert/normal mode message? Change highlighting of
3736 character in first column?
3737 - Implementation ideas:
3738 - Set "curwin" and "curbuf" to the command line window and buffer.
3739 - curwin->w_topline is always equal to curwin->w_cursor.lnum.
3740 - never set 'number', no folding, etc. No status line.
3741 - sync undo after entering a command line?
3742 - use NV_NOCL flag for commands that are not allowed in Command-line
3743 Mode.
3744
3745
3746Command line completion:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000037478 Completing ":r ~br" should find matching user names.
Bram Moolenaar071d4272004-06-13 20:20:40 +000037488 Change expand_interactively into a flag that is passed as an argument.
37498 With command line completion after '%' and '#', expand current/alternate
3750 file name, so it can be edited. Also with modifiers, such as "%:h".
37518 When completing command names, either sort them on the long name, or list
3752 them with the optional part inside [].
Bram Moolenaar8c8de832008-06-24 22:58:06 +000037538 Add an option to ignore case when doing interactive completion. So that
3754 ":e file<Tab>" also lists "Filelist" (sorted after matching case matches).
Bram Moolenaar071d4272004-06-13 20:20:40 +000037557 Completion of ":map x ": fill in the current mapping, so that it can be
3756 edited. (Sven Guckes)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003757- For 'wildmenu': Simplify "../bar" when possible.
3758- When using <Up> in wildmenu mode for a submenu, should go back to the
3759 current menu, not the first one. E.g., ":emenu File.Save<Up>".
Bram Moolenaar071d4272004-06-13 20:20:40 +000037608 When using backtick expansion, the external command may write a greeting
3761 message. Add an option or commands to remove lines that match a regexp?
37627 When listing matches of files, display the common path separately from the
3763 file names, if this makes the listing shorter. (Webb)
3764- Add command line completion for ":ilist" and friends, show matching
3765 identifiers (Webb).
37668 Add command line completion for "old value" of a command. ":args <key>"
3767 would result in the current list of arguments, which you can then edit.
37687 Add command line completion with CTRL-X, just like Insert mode completion.
3769 Useful for ":s/word/xx/".
3770- Add command to go back to the text as it was before completion started.
3771 Also to be used for <Up> in the command line.
3772- Add 'wildlongest' option: Key to use to find longest common match for
3773 command line completion (default CTRL-L), like 'wildchar'. (Cregut)
3774 Also: when there are several matches, show them line a CTRL-D.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003775
3776
3777Command line history:
Bram Moolenaar60c78922005-03-20 22:40:14 +000037789 Remember which command lines were actually typed and were not loaded from
3779 viminfo. When writing viminfo append only these lines, so that lines from
3780 other Vim's are not overwritten.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003781- Add "KeyWasTyped" flag: It's reset before each command and set when a
3782 character from the keyboard is consumed. Value is used to decide to put a
3783 command line in history or not. Put line in history if it didn't
3784 completely resulted from one mapping.
3785- When using ":browse", also put the resulting edit command in the history,
3786 so that it can be repeated. (Demirel)
3787
3788
3789Insert mode:
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000037909 When 'autoindent' is set, hitting <CR> twice, while there is text after
3791 the cursor, doesn't delete the autoindent in the resulting blank line.
3792 (Rich Wales) This is Vi compatible, but it looks like a bug.
Bram Moolenaar071d4272004-06-13 20:20:40 +000037938 When using CTRL-O in Insert mode, then executing an insert command
3794 "a" or "i", should we return to Insert mode after <Esc>? (Eggink)
3795 Perhaps it can be allowed a single time, to be able to do
3796 "<C-O>10axyz<Esc>". Nesting this further is confusing.
3797 ":map <F2> 5aabc<Esc>" works only once from Insert mode.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000037988 When using CTRL-G CTRL-O do like CTRL-\ CTRL-O, but when returning with
3799 the cursor in the same position and the text didn't change continue the
3800 same change, so that "." repeats the whole insert.
Bram Moolenaar071d4272004-06-13 20:20:40 +000038017 Use CTRL-G <count> to repeat what follows. Useful for inserting a
3802 character multiple times or repeating CTRL-Y.
Bram Moolenaarc236c162008-07-13 17:41:49 +00003803- Make 'revins' work in Replace mode.
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020038049 Can't use multi-byte characters for 'matchpairs'.
Bram Moolenaar071d4272004-06-13 20:20:40 +000038057 Use 'matchpairs' for 'showmatch': When inserting a character check if it
3806 appears in the rhs of 'matchpairs'.
3807- In Insert mode (and command line editing?): Allow undo of the last typed
3808 character. This is useful for CTRL-U, CTRL-W, delete and backspace, and
3809 also for characters that wrap to the next line.
3810 Also: be able to undo CTRL-R (insert register).
3811 Possibly use 'backspace'="whole" for a mode where at least a <CR> that
3812 inserts autoindent is undone by a single <BS>.
3813- Use CTRL-G in Insert mode for an extra range of commands, like "g" in
3814 Normal mode.
3815- Make 'paste' work without resetting other options, but override their
3816 value. Avoids problems when changing files and modelines or autocommands
3817 are used.
3818- When typing CTRL-V and a digit higher than 2, only expect two digits.
3819- Insert binary numbers with CTRL-V b.
3820- Make it possible to undo <BS>, <C-W> and <C-U>. Bash uses CTRL-Y.
3821
3822
3823'cindent', 'smartindent':
Bram Moolenaar662db672011-03-22 14:05:35 +010038249 Wrapping a variable initialization should have extra indent:
3825 char * veryLongName =
3826 "very long string"
3827 Also check if "cino=+10" is used correctly.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000038288 Lisp indenting: "\\" confuses the indenter. (Dorai Sitaram, 2006 May 17)
Bram Moolenaar8c8de832008-06-24 22:58:06 +000038298 Why are continuation lines outside of a {} block not indented? E.g.:
3830 long_type foo =
3831 value;
Bram Moolenaar071d4272004-06-13 20:20:40 +000038328 Java: Inside an anonymous class, after an "else" or "try" the indent is
3833 too small. (Vincent Bergbauer)
Bram Moolenaar8cacf352006-04-15 20:27:24 +00003834 Problem of using {} inside (), 'cindent' doesn't work then.
Bram Moolenaar071d4272004-06-13 20:20:40 +000038358 In C++ it's possible to have {} inside (): (Kirshna)
3836 func(
3837 new String[] {
3838 "asdf",
3839 "asdf"
3840 }
3841 );
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010038428 In C++ a function isn't recognized inside a namespace:
3843 (Chow Loong Jin)
3844 namespace {
3845 int
3846 func(int arg) {
3847 }
3848 }
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000038496 Add 'cino' flag for this function argument layout: (Spencer Collyer)
3850 func( arg1
3851 , arg2
3852 , arg3
3853 );
Bram Moolenaar9e54a0e2006-04-14 20:42:25 +000038547 Add separate "(0" option into inside/outside a function (Zellner):
Bram Moolenaar071d4272004-06-13 20:20:40 +00003855 func(
3856 int x) // indent like "(4"
3857 {
3858 if (a
3859 && b) // indent like "(0"
Bram Moolenaar071d4272004-06-13 20:20:40 +000038609 Using "{" in a comment: (Helmut Stiegler)
3861 if (a)
3862 {
3863 if (b)
3864 {
3865 // {
3866 }
3867 } <-- this is indented incorrect
Bram Moolenaar9e54a0e2006-04-14 20:42:25 +00003868 Problem is that find_start_brace() checks for the matching brace to be in
3869 a comment, but not braces in between. Requires adding a comment check to
3870 findmatchlimit().
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00003871- Make smartindenting configurable. Add 'sioptions', e.g. '#' setting the
Bram Moolenaar071d4272004-06-13 20:20:40 +00003872 indent to 0 should be switched on/off.
38737 Support ANSI style function header, with each argument on its own line.
3874- "[p" and "]p" should use 'cindent' code if it's on (only for the first
3875 line).
3876- Add option to 'cindent' to set indent for comments outside of {}?
3877- Make a command to line up a comment after a code line with a previous
3878 comment after a code line. Can 'cindent' do this automatically?
38797 Add 'j' flag to 'formatoptions': Remove comment leader when joining lines.
3880- When 'cindent'ing a '}', showmatch is done before fixing the indent. It
3881 looks better when the indent is fixed before the showmatch. (Webb)
3882- Add option to make indenting work in comments too (for commented-out
3883 code), unless the line starts with "*".
3884- Don't use 'cindent' when doing formatting with "gq"?
3885- When formatting a comment after some text, insert the '*' for the new line
3886 (indent is correct if 'cindent' is set, but '*' doesn't get inserted).
38878 When 'comments' has both "s1:/*,mb:*,ex:*/" and "s1:(*,mb:*,ex:*)", the
3888 'x' flag always uses the first match. Need to continue looking for more
3889 matches of "*" and remember all characters that could end the comment.
3890- For smartindent: When typing 'else' line it up with matching 'if'.
3891- 'smartindent': allow patterns in 'cinwords', for e.g. TeX files, where
3892 lines start with "\item".
3893- Support this style of comments (with an option): (Brown)
3894 /* here is a comment that
3895 is just autoindented, and
3896 nothing else */
3897- Add words to 'cinwords' to reduce the indent, e.g., "end" or "fi".
38987 Use Tabs for the indent of starting lines, pad with spaces for
3899 continuation lines. Allows changing 'tabstop' without messing up the
3900 indents.
Bram Moolenaar9e54a0e2006-04-14 20:42:25 +00003901 'keeptabs': when set don't change the tabs and spaces used for indent,
3902 when the indent remains the same or increases.
Bram Moolenaar071d4272004-06-13 20:20:40 +00003903
3904
3905Java:
39068 Can have {} constructs inside parens. Include changes from Steve
3907 Odendahl?
39088 Recognize "import java.util.Vector" and use $CLASSPATH to find files for
3909 "[i" commands and friends.
3910- For files found with 'include': handle "*" in included name, for Java.
3911 (Jason)
3912- How to make a "package java.util" cause all classes in the package to be
3913 searched? Also for "import java.util.*". (Mark Brophy)
3914
3915
3916'comments':
39178 When formatting C comments that are after code, the "*" isn't repeated
3918 like it's done when there is no code. And there is no automatic wrapping.
3919 Recognize comments that come after code. Should insert the comment leader
3920 when it's "#" or "//".
Bram Moolenaarce5e58e2005-01-19 22:24:34 +00003921 Other way around: when a C command starts with "* 4" the "*" is repeated
3922 while it should not. Use syntax HL comment recognition?
Bram Moolenaar071d4272004-06-13 20:20:40 +000039237 When using "comments=fg:--", Vim inserts three spaces for a new line.
3924 When hitting a TAB, these spaces could be removed.
39257 The 'n'esting flag doesn't do the indenting of the last (rightmost) item.
39266 Make strings in 'comments' option a RE, to be able to match more
3927 complicated things. (Phillipps) Use a special flag to indicate that a
3928 regexp is used.
39298 Make the 'comments' option with "/* * */" lines only repeat the "*" line
3930 when there is a "/*" before it? Or include this in 'cindent'?
3931
3932
3933Virtual edit:
39348 Make the horizontal scrollbar work to move the text further left.
Bram Moolenaar071d4272004-06-13 20:20:40 +000039357 Allow specifying it separately for Tabs and beyond end-of-line?
3936
3937
3938Text objects:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000039398 Add text object for fold, so that it can be yanked when it's open.
Bram Moolenaar071d4272004-06-13 20:20:40 +000039408 Add test script for text object commands "aw", "iW", etc.
Bram Moolenaar994cd122007-05-12 15:19:41 +000039418 Add text object for part of a CamelHumpedWord and under_scored_word.
Bram Moolenaar4399ef42005-02-12 14:29:27 +00003942 (Scott Graham) "ac" and "au"?
Bram Moolenaar5313dcb2005-02-22 08:56:13 +000039438 Add a text object for any kind of quoting, also with multi-byte
3944 characters. Option to specify what quotes are recognized (default: all)
Bram Moolenaar05159a02005-02-26 23:04:13 +00003945 use "aq" and "iq". Use 'quotepairs' to define pairs of quotes, like
3946 'matchpairs'?
Bram Moolenaar5313dcb2005-02-22 08:56:13 +000039478 Add text object for any kind of parens, also multi-byte ones.
Bram Moolenaar071d4272004-06-13 20:20:40 +000039487 Add text object for current search pattern: "a/" and "i/". Makes it
3949 possible to turn text highlighted for 'hlsearch' into a Visual area.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000039508 Add a way to make an ":omap" for a user-defined text object. Requires
3951 changing the starting position in oap->start.
Bram Moolenaar071d4272004-06-13 20:20:40 +000039528 Add "gp" and "gP" commands: insert text and make sure there is a single
3953 space before it, unless at the start of the line, and after it, unless at
3954 the end of the line or before a ".".
39557 Add objects with backwards extension? Use "I" and "A". Thus "2dAs"
3956 deletes the current and previous sentence. (Jens Paulus)
39577 Add "g{" and "g}" to move to the first/last character of a paragraph
3958 (instead of the line just before/after a paragraph as with "{" and "}").
Bram Moolenaar071d4272004-06-13 20:20:40 +000039596 Ignore comment leaders for objects. Make "das" work in reply-email.
39605 Make it possible to use syntax group matches as a text object. For
3961 example, define a "ccItem" group, then do "da<ccItem>" to delete one.
3962 Or, maybe just define "dai", delete-an-item, to delete the syntax item the
3963 cursor is on.
3964
3965
3966Select mode:
39678 In blockwise mode, typed characters are inserted in front of the block,
3968 backspace deletes a column before the block. (Steve Hall)
39697 Alt-leftmouse starts block mode selection in MS Word.
3970 See http://www.vim.org/tips/tip.php?tip_id=743
39717 Add Cmdline-select mode. Like Select mode, but used on the command line.
3972 - Change gui_send_mouse_event() to pass on mouse events when 'mouse'
3973 contains 'C' or 'A'.
3974 - Catch mouse events in ex_getln.c. Also shift-cursor, etc., like in
3975 normal_cmd().
3976 - remember start and end of selection in cmdline_info.
3977 - Typing text replaces the selection.
3978
3979
3980Visual mode:
3981- When dragging the Visual selection with the mouse and 'scrolloff' is zero,
3982 behave like 'scrolloff' is one, so that the text scrolls when the pointer
3983 is in the top line.
Bram Moolenaar768b8c42006-03-04 21:58:33 +00003984- Displaying size of Visual area: use 24-33 column display.
3985 When selecting multiple lines, up to about a screenful, also count the
3986 characters.
Bram Moolenaar071d4272004-06-13 20:20:40 +000039878 When using "I" or "A" in Visual block mode, short lines do not get the new
Bram Moolenaarcc016f52005-12-10 20:23:46 +00003988 text. Make it possible to add the text to short lines too, with padding
Bram Moolenaar071d4272004-06-13 20:20:40 +00003989 where needed.
39907 With a Visual block selected, "2x" deletes a block of double the width,
3991 "3y" yanks a block of triple width, etc.
39927 When selecting linewise, using "itext" should insert "text" at the start
3993 of each selected line.
39948 What is "R" supposed to do in Visual mode?
39958 Make Visual mode local to the buffer. Allow changing to another buffer.
3996 When starting a new Visual selection, remove the Visual selection in any
3997 other buffer. (Ron Aaron)
39988 Support dragging the Visual area to drop it somewhere else. (Ron Aaron,
3999 Ben Godfrey)
40007 Support dragging the Visual area to drop it in another program, and
4001 receive dropped text from another program. (Ben Godfrey)
40027 With blockwise Visual mode and "c", "C", "I", "A", etc., allow the use of
4003 a <CR>. The entered lines are repeated over the Visual area.
40047 CTRL-V :s should substitute only in the block, not to whole lines. (David
4005 Young is working on this)
40067 Filtering a block should only apply to the block, not to the whole lines.
Bram Moolenaared203462004-06-16 11:19:22 +00004007 When the number of lines is increased, add lines. When decreased, pad with
Bram Moolenaar071d4272004-06-13 20:20:40 +00004008 spaces or delete? Use ":`<,`>" on the command line.
40098 After filtering the Visual area, make "gv" select the filtered text?
4010 Currently "gv" only selects a single line, not useful.
40117 Don't move the cursor when scrolling? Needed when the selection should
4012 stay the same. Scroll to the cursor at any movement command. With an
4013 option!
40147 In Visual block mode, need to be able to define a corner on a position
4015 that doesn't have text? Also: when using the mouse, be able to select
4016 part of a TAB. Even more: Add a mode where the cursor can be on a screen
4017 position where there is no text. When typing, add spaces to fill the gap.
4018 Other solution: Always use curswant, so that you can move the cursor to
4019 the right column, and then use up/down movements to select the line,
4020 without changing the column.
40216 ":left" and ":right" should work in Visual block mode.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040227 CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
4023 current buffer.
40247 CTRL-A and CTRL-X should increase/decrease all numbers in the Visual area.
40256 In non-Block mode, "I" should insert the same text in front of each line,
4026 before the first non-blank, "gI" in column 1.
40276 In non-Block mode, "A" should append the same text after each line.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040286 When in blockwise visual selection (CTRL-V), allow cursor to be placed
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004029 right of the line. Could also allow cursor to be placed anywhere on a TAB
Bram Moolenaar071d4272004-06-13 20:20:40 +00004030 or other special character.
40316 Add commands to move selected text, without deselecting.
4032
4033
4034More advanced repeating commands:
4035- Add "." command for visual mode: redo last visual command (e.g. ":fmt").
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000040367 Repeating "d:{cmd}" with "." doesn't work. (Benji Fisher) Somehow remember
Bram Moolenaar071d4272004-06-13 20:20:40 +00004037 the command line so that it can be repeated?
Bram Moolenaar8c8de832008-06-24 22:58:06 +00004038- Add "gn": repeat last movement command. Including count.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004039- Add "." command after operator: repeat last command of same operator. E.g.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004040 "c." will repeat last change, also when "x" used since then (Webb).
4041 "y." will repeat last yank.
4042 "c2." will repeat the last but one change?
4043 Also: keep history of Normal mode commands, add command to list the history
4044 and/or pick an older command.
4045- History stack for . command? Use "g." command.
4046
4047
4048Mappings and Abbreviations:
Bram Moolenaar071d4272004-06-13 20:20:40 +000040498 When "0" is mapped (it is a movement command) this mapping should not be
4050 used after typing another number, e.g. "20l". (Charles Campbell)
4051 Is this possible without disabling the mapping of the following command?
40528 Should mapping <C-A> and <C-S-A> both work?
40537 ":abbr b byte", append "b " to an existing word still expands to "byte".
4054 This is Vi compatible, but can we avoid it anyway?
Bram Moolenaar071d4272004-06-13 20:20:40 +000040558 To make a mapping work with a prepended "x to select a register, store the
4056 last _typed_ register name and access it with "&.
40578 Add ":amap", like ":amenu".
Bram Moolenaarade00832006-03-10 21:46:58 +000040587 Add a mapping that works always, for remapping the keyboard.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040598 Add ":cab!", abbreviations that only apply to Command-line mode and not to
4060 entering search strings.
40618 Add a flag to ":abbrev" to eat the character that triggers the
4062 abbreviation. Thus "abb ab xxx" and typing "ab<Space>" inserts "xxx" and
4063 not the <Space>.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040648 Give a warning when using CTRL-C in the lhs of a mapping. It will never
4065 (?) work.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040668 Add a way to save a current mapping and restore it later. Use a function
4067 that returns the mapping command to restore it: mapcmd()? mapcheck() is
4068 not fool proof. How to handle ambiguous mappings?
40697 Add <0x8f> (hex), <033> (octal) and <123> (decimal) to <> notation?
Bram Moolenaar071d4272004-06-13 20:20:40 +000040707 When someone tries to unmap with a trailing space, and it fails, try
4071 unmapping without the trailing space. Helps for ":unmap xx | unmap yy".
Bram Moolenaar071d4272004-06-13 20:20:40 +000040726 Context-sensitive abbreviations: Specify syntax group(s) in which the
4073 abbreviations are to be used.
4074- Add mappings that take arguments. Could work like the ":s" command. For
4075 example, for a mouse escape sequence:
4076 :mapexp <Esc>{\([0-9]*\),\([0-9]*\); H\1j\2l
Bram Moolenaarade00832006-03-10 21:46:58 +00004077- Add optional <Number> argument for mappings:
4078 :map <Number>q ^W^W<Number>G
4079 :map <Number>q<Number>t ^W^W<Number1-1>G<Number2>l
4080 :map q<Char> :s/<Char>/\u\0/g
4081 Or implicit:
4082 :map q <Register>d<Number>$
Bram Moolenaar071d4272004-06-13 20:20:40 +00004083- Add command to repeat a whole mapping ("." only repeats the last change in
4084 a mapping). Also: Repeat a whole insert command, including any mappings
4085 that it included. Sort-of automatic recording?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086- Include an option (or flag to 'cpoptions') that makes errors in mappings
4087 not flush the rest of the mapping (like nvi does).
4088- Use context sensitiveness of completion to switch abbreviations and
4089 mappings off for :unab and :unmap.
40906 When using mappings in Insert mode, insert characters for incomplete
4091 mappings first, then remove them again when a mapping matches. Avoids
4092 that characters that are the start of some mapping are not shown until you
4093 hit another character.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004094- Add mappings for replace mode: ":rmap". How do we then enter mappings for
4095 non-replace Insert mode?
4096- Add separate mappings for Visual-character/block/line mode?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004097- Add 'mapstop' command, to stop recursive mappings.
4098- List mappings that have a raw escape sequence both with the name of the key
4099 for that escape sequence (if there is one) and the sequence itself.
4100- List mappings: Once with special keys listed as <>, once with meta chars as
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004101 <M-a>, once with the byte values (octal?). Sort of "spell mapping" command?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004102- When entering mappings: Add the possibility to enter meta keys like they
4103 are displayed, within <>: <M-a>, <~@> or <|a>.
4104- Allow multiple arguments to :unmap.
4105- Command to show keys that are not used and available for mapping
4106 ":freekeys".
4107- Allow any character except white space in abbreviations lhs (Riehm).
4108
4109
4110Incsearch:
4111- Add a limit to the number of lines that are searched for 'incsearch'?
4112- When no match is found and the user types more, the screen is redrawn
4113 anyway. Could skip that. Esp. if the line wraps and the text is scrolled
4114 up every time.
4115- Temporarily open folds to show where the search ends up. Restore the
4116 folds when going to another line.
4117- When incsearch used and hitting return, no need to search again in many
4118 cases, saves a lot of time in big files. (Slootman wants to work on this?)
4119 When not using special characters, can continue search from the last match
4120 (or not at all, when there was no match). See oldmail/webb/in.872.
4121- With incsearch, use CTRL-N/CTRL-P to go to next/previous match, some other
4122 key to copy matched word to search pattern (Alexander Schmid).
4123
4124
4125Searching:
Bram Moolenaar4770d092006-01-12 23:22:24 +000041268 Add "g/" and "gb" to search for a pattern in the Visually selected text?
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00004127 "g?" is already used for rot13.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00004128 The vis.vim script has a ":S" command that does something like this.
Bram Moolenaar4770d092006-01-12 23:22:24 +00004129 Can use "g/" in Normal mode, uses the '< to '> area.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +00004130 Use "&/" for searching the text in the Visual area?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010041319 Add "v" offset: "/pat/v": search for pattern and start Visual mode on the
4132 matching text.
Bram Moolenaar662db672011-03-22 14:05:35 +010041338 Add a modifier to interpret a space like "\_s\+" to make it much easier to
4134 search for a phrase.
Bram Moolenaar2641f772005-03-25 21:58:17 +000041358 Add a mechanism for recursiveness: "\@(([^()]*\@g[^()]*)\)". \@g stands
4136 for "go recursive here" and \@( \) marks the recursive part.
4137 Perl does it this way:
4138 $paren = qr/ \(( [^()] | (??{ $paren }) )* \) /x;
4139 Here $paren is evaluated when it's encountered. This is like a regexp
4140 inside a regexp. In the above terms it would be:
4141 \@((\([^()]\|\@g\)*)\)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000041428 Show the progress every second. Could use the code that checks for CTRL-C
4143 to find out how much time has passed. Or use SIGALRM. Where to show the
4144 number?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010041458 When using an expression for ":s", set the match position in a v:
4146 variable. So that you can do ":%s/^/\=v:lnum/" to put a line number
4147 before each line.
Bram Moolenaarc998e3c2005-06-14 22:13:23 +000041487 Support for approximate-regexps to find similar words (agrep
4149 http://www.tgries.de/agrep/ tre: http://laurikari.net/tre/index.html).
Bram Moolenaarc0761132005-03-18 20:30:32 +000041508 Add an item for a big character range, so that one can search for a
4151 chinese character: \z[234-1234] or \z[XX-YY] or \z[0x23-0x234].
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000041527 Add an item stack to allow matching (). One side is "push X on
Bram Moolenaar071d4272004-06-13 20:20:40 +00004153 the stack if previous atom matched". Other side is "match with top of
4154 stack, pop it when it matches". Use "\@pX" and "\@m"?
4155 Example: \((\@p).\{-}\@m\)*
41567 Add an option to accept a match at the cursor position. Also for
4157 search(). (Brett)
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000041587 Add a flag to "/pat/" to discard an error. Useful to continue a mapping
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01004159 when a search fails. Could be "/pat/E" (e is already used for end offset).
Bram Moolenaar071d4272004-06-13 20:20:40 +000041607 Add pattern item to use properties of Unicode characters. In Perl it's
4161 "\p{L}" for a letter. See Regular Expression Pocket Reference.
Bram Moolenaar071d4272004-06-13 20:20:40 +000041628 Would it be possible to allow ":23,45/pat/flags" to search for "pat" in
4163 lines 23 to 45? Or does this conflict with Ex range syntax?
41648 Allow identical pairs in 'matchpairs'. Restrict the search to the current
4165 line.
41667 Allow longer pairs in 'matchpairs'. Use ~/vim/macros/matchit.vim as an
4167 example.
41688 Make it possible to define the character that "%" checks for in
4169 #if/#endif. For nmake it's !if/!endif.
4170- For "%" command: set hierarchy for which things include other things that
4171 should be ignored (like "*/" or "#endif" inside /* */).
4172 Also: use "%" to jump from start to end of syntax region and back.
4173 Alternative: use matchit.vim
41748 "/:/e+1" gets stuck on a match at the end of the line. Do we care?
41758 A pattern like "\([^a]\+\)\+" takes an awful long time. Recognize that
4176 the recursive "\+" is meaningless and optimize for it.
4177 This one is also very slow on "/* some comment */": "^\/\*\(.*[^/]\)*$".
41787 Recognize "[a-z]", "[0-9]", etc. and replace them with the faster "\l" and
4179 "\d".
Bram Moolenaarc0197e22004-09-13 20:26:32 +000041807 Add a way to specify characters in <C-M> or <Key> form. Could be
4181 \%<C-M>.
Bram Moolenaar071d4272004-06-13 20:20:40 +000041828 Add an argument after ":s/pat/str/" for a range of matches. For example,
4183 ":s/pat/str/#3-4" to replace only the third and fourth "pat" in a line.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000041848 When 'iskeyword' is changed the matches from 'hlsearch' may change. (Benji
4185 Fisher) redraw if some options are set while 'hlsearch' is set?
Bram Moolenaar071d4272004-06-13 20:20:40 +000041868 Add an option not to use 'hlsearch' highlighting for ":s" and ":g"
4187 commands. (Kahn) It would work like ":noh" is used after that command.
4188 Also: An extra flag to do this once, and a flag to keep the existing
4189 search pattern.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00004190- Make 'hlsearch' a local/global option, so that it can be disabled in some
4191 of the windows.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004192- Add \%h{group-name}; to search for a specific highlight group.
4193 Add \%s{syntax-group}; to search for a specific syntax group.
4194- Support Perl regexp. Use PCRE (Perl Compatible RE) package. (Shade)
4195 Or translate the pattern to a Vim one.
4196 Don't switch on with an option for typed commands/mappings/functions, it's
4197 too confusing. Use "\@@" in the pattern, to avoid incompatibilities.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000041988 Add a way to access the last substitute text, what is used for ":s//~/".
4199 Can't use the ~ register, it's already used for drag & drop.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004200- Remember flags for backreferenced items, so that "*" can be used after it.
4201 Check with "\(\S\)\1\{3}". (Hemmerling)
Bram Moolenaar8c8de832008-06-24 22:58:06 +000042028 Flags that apply to the whole pattern.
4203 This works for all places where a regexp is used.
4204 Add "\q" to not store this pattern as the last search pattern?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004205- Add flags to search command (also for ":s"?):
4206 i ignore case
4207 I use case
4208 p use Perl regexp syntax (or POSIX?)
4209 v use Vi regexp syntax
4210 f forget pattern, don't keep it for "n" command
4211 F remember pattern, keep it for "n" command
4212 Perl uses these too:
4213 e evaluate the right side as an expression (Perl only)
4214 m multiple line expression (we don't need it)
4215 o compile only once (Perl only)
4216 s single line expression (we don't need it)
4217 x extended regexp (we don't need it)
4218 When used after ":g" command, backslash needed to avoid confusion with the
4219 following command.
4220 Add 'searchflags' for default flags (replaces 'gdefault').
4221- Add command to display the last used substitute pattern and last used
4222 pattern. (Margo) Maybe make it accessible through a register (like "/
4223 for search string)?
42247 Use T-search algorithm, to speed up searching for strings without special
4225 characters. See C't article, August 1997.
4226- Add 'fuzzycase' option, so that case doesn't matter, and '-' and '_' are
4227 equivalent (for Unix filenames).
4228- Add 'v' flag to search command: enter Visual mode, with the matching text
4229 as Visual area. (variation on idea from Bertin)
4230- Searching: "/this//that/" should find "that" after "this".
4231- Add global search commands: Instead of wrapping at the end of the buffer,
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004232 they continue in another buffer. Use flag after search pattern:
Bram Moolenaar071d4272004-06-13 20:20:40 +00004233 a for the next file in the argument list
4234 f for file in the buffer list
4235 w for file edited in a window.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004236 e.g. "/pat/f". Then "n" and "N" work through files too. "f" flag also for
4237 ":s/pat/foo/f"??? Then when 'autowrite' and 'hidden' are both not set, ask
Bram Moolenaar071d4272004-06-13 20:20:40 +00004238 before saving files: "Save modified buffer "/path/file"? (Yes/Hide/No
4239 Save-all/hide-All/Quit) ".
4240- ":s/pat/foo/3": find 3rd match of "pat", like sed. (Thomas Koehler)
Bram Moolenaar071d4272004-06-13 20:20:40 +000042417 When searching with 'n' give message when getting back where the search
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004242 first started. Remember start of search in '/ mark.
Bram Moolenaar071d4272004-06-13 20:20:40 +000042437 Add option that scrolls screen to put cursor in middle of screen after
4244 search always/when off-screen/never. And after a ":tag" command. Maybe
4245 specify how many lines below the screen causes a redraw with the cursor in
4246 the middle (default would be half a screen, zero means always).
42476 Support multiple search buffers, so macros can be made without side
4248 effects.
42497 From xvim: Allow a newline in search patterns (also for :s, can delete
4250 newline). Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
4251 [not in xvim:] Add option to switch on matches crossing ONE line boundary.
Bram Moolenaar34cdc3e2005-05-18 22:24:46 +000042527 Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron) (Zellner)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004253 Also ":dselect".
4254
4255
4256Undo:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000042579 After undo/redo, in the message show whether the buffer is modified or
4258 not.
Bram Moolenaard43848c2010-07-14 14:28:26 +020042598 Use timestamps for undo, so that a version a certain time ago can be found
4260 and info before some time/date can be flushed. 'undopersist' gives maximum
4261 time to keep undo: "3h", "1d", "2w", "1y", etc.
42628 Search for pattern in undo tree, showing when it happened and the text
4263 state, so that you can jump to it.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000042648 Undo tree: visually show the tree somehow (Damian Conway)
4265 Show only the leaves, indicating how many changed from the branch and the
4266 timestamp?
4267 Put branch with most recent change on the left, older changes get more
4268 indent?
Bram Moolenaar8c8de832008-06-24 22:58:06 +000042698 See ":e" as a change operation, find the changes and add them to the
4270 undo info. Also be able to undo the "Reload file" choice for when a file
4271 was changed outside of Vim.
4272 Would require doing a diff between the buffer text and the file and
4273 storing the differences.
Bram Moolenaar23c347c2010-07-14 20:57:00 +02004274 Alternative: before reloading a buffer, store it somewhere. Keep a list
4275 of about 10 last reloaded buffers.
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +00004276- Make it possible to undo all the commands from a mapping, including a
4277 trailing unfinished command, e.g. for ":map K iX^[r".
Bram Moolenaar071d4272004-06-13 20:20:40 +00004278- When accidentally hitting "R" instead of Ctrl-R, further Ctrl-R is not
4279 possible, even when typing <Esc> immediately. (Grahn) Also for "i", "a",
4280 etc. Postpone saving for undo until something is really inserted?
42818 When Inserting a lot of text, it can only be undone as a whole. Make undo
4282 sync points at every line or word. Could recognize the start of a new
4283 word (white space and then non-white space) and backspacing.
4284 Can already use CTRL-G u, but that requires remapping a lot of things.
42858 Make undo more memory-efficient: Compare text before and after change,
4286 only remember the lines that really changed.
42877 Add undo for a range of lines. Can change these back to a previous
4288 version without changing the rest of the file. Stop doing this when a
4289 change includes only some of these lines and changes the line count. Need
4290 to store these undo actions as a separate change that can be undone.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004291- For u_save() include the column number. This can be used to set '[ and '].
4292 And in the future the undo can be made more efficient (Webb).
4293- In out-of-memory situations: Free allocated space in undo, and reduce the
4294 number of undo levels (with confirmation).
4295- Instead of [+], give the number of changes since the last write: [+123].
4296 When undoing to before the last write, change this to a negative number:
4297 [-99].
4298- With undo with simple line delete/insert: optimize screen updating.
4299- When executing macro's: Save each line for undo only once.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004300- When doing a global substitute, causing almost all lines to be changed,
4301 undo info becomes very big. Put undo info in swap file??
4302
4303
4304Buffer list:
Bram Moolenaar071d4272004-06-13 20:20:40 +000043057 Command to execute a command in another buffer: ":inbuf {bufname} {cmd}".
4306 Also for other windows: ":inwin {winnr} {cmd}". How to make sure that
4307 this works properly for all commands, and still be able to return to the
4308 current buffer/window? E.g.: ":inbuf xxx only".
43098 Add File.{recent_files} menu entries: Recently edited files.
4310 Ron Aaron has a plugin for this: mru.vim.
43118 Unix: Check all uses of fnamecmp() and fnamencmp() if they should check
4312 inode too.
43137 Add another number for a buffer, which is visible for the user. When
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004314 creating a new buffer, use the lowest number not in use (or the highest
4315 number in use plus one?).
Bram Moolenaar071d4272004-06-13 20:20:40 +000043167 Offer some buffer selection from the command line? Like using ":ls" and
4317 asking for a buffer number. (Zachmann)
4318- When starting to edit a file that is already in the buffer list, use the
4319 file name argument for the new short file name. (Webb)
4320- Add an option to make ":bnext" and ":bprev" wrap around the end of the
4321 buffer list. Also for ":next" and ":prev"?
43227 Add argument to ":ls" which is a pattern for buffers to list.
4323 E.g. ":ls *.c". (Thompson)
43247 Add expansion of buffer names, so that "*.c" is expanded to all buffer
4325 names. Needed for ":bdel *.c", ":bunload *.c", etc.
43268 Support for <afile> where a buffer name is expected.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000043278 Some commands don't use line numbers, but buffer numbers. '$'
Bram Moolenaar071d4272004-06-13 20:20:40 +00004328 should then mean the number of the last buffer. E.g.: "4,$bdel".
43297 Add an option to mostly use slashes in file names. Separately for
4330 internal use and for when executing an external program?
Bram Moolenaar81af9252010-12-10 20:35:50 +010043318 Some file systems are case-sensitive, some are not. Besides
4332 'wildignorecase' there might be more parts inside
4333 CASE_INSENSITIVE_FILENAME that are useful on Unix.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004334
4335
4336Swap (.swp) files:
43378 If writing to the swap file fails, should try to open one in another
4338 directory from 'dir'. Useful in case the file system is full and when
4339 there are short file name problems.
43408 Also use the code to try using a short file name for the backup and swap
4341 file for the Win32 and Dos 32 bit versions.
43428 When a file is edited by root, add $LOGNAME to know who did su.
43438 When the edited file is a symlink, try to put the swap file in the same
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004344 dir as the actual file. Adjust FullName(). Avoids editing the same file
Bram Moolenaar071d4272004-06-13 20:20:40 +00004345 twice (e.g. when using quickfix). Also try to make the name of the backup
4346 file the same as the actual file?
4347 Use the code for resolve()?
Bram Moolenaar071d4272004-06-13 20:20:40 +000043487 When using 64 bit inode numbers, also store the top 32 bits. Add another
4349 field for this, using part of bo_fname[], to keep it compatible.
43507 When editing a file on removable media, should put swap file somewhere
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004351 else. Use something like 'r' flag in 'viminfo'. 'diravoid'?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004352 Also: Be able to specify minimum disk space, skip directory when not
4353 enough room.
43547 Add a configure check for which directory should be used: /tmp, /var/tmp
4355 or /var/preserve.
4356- Add an option to create a swap file only when making the first change to
4357 the buffer. (Liang) Or only when the buffer is not read-only.
4358- Add option to set "umask" for backup files and swap files (Antwerpen).
4359 'backupumask' and 'swapumask'? Or 'umaskback' and 'umaskswap'?
4360- When editing a readonly file, don't use a swap file but read parts from the
4361 original file. Also do this when the file is huge (>'maxmem'). We do
4362 need to load the file once to count the number of lines? Perhaps keep a
4363 cached list of which line is where.
4364
4365
4366Viminfo:
43677 Can probably remove the code that checks for a writable viminfo file,
4368 because we now do the chown() for root, and others can't overwrite someone
4369 else's viminfo file.
Bram Moolenaar994cd122007-05-12 15:19:41 +000043708 When there is no .viminfo file and someone does "su", runs Vim, a
4371 root-owned .viminfo file is created. Is there a good way to avoid this?
4372 Perhaps check the owner of the directory. Only when root?
Bram Moolenaar071d4272004-06-13 20:20:40 +000043738 Add argument to keep the list of buffers when Vim is started with a file
4374 name. (Schild)
43758 Keep the last used directory of the file browser (File/Open menu).
43768 Remember the last used register for "@@".
Bram Moolenaar8c8de832008-06-24 22:58:06 +000043778 Remember the redo buffer, so that "." works after restarting.
Bram Moolenaar071d4272004-06-13 20:20:40 +000043788 Remember a list of last accessed files. To be used in the
4379 "File.Open Recent" menu. Default is to remember 10 files or so.
4380 Also remember which files have been read and written. How to display
4381 this?
43827 Also store the ". register (last inserted text).
43837 Make it possible to store buffer names in viminfo file relative to some
4384 directory, to make them portable over a network. (Aaron)
43856 Store a snapshot of the currently opened windows. So that when quitting
4386 Vim, and then starting again (without a file name argument), you see the
4387 same files in the windows. Use ":mksession" code?
4388- Make marks present in .viminfo usable as file marks: Display a list of
4389 "last visited files" and select one to jump to.
4390
4391
4392Modelines:
43938 Before trying to execute a modeline, check that it looks like one (valid
4394 option names). If it's very wrong, silently ignore it.
4395 Ignore a line that starts with "Subject: ".
Bram Moolenaar8c8de832008-06-24 22:58:06 +00004396- Add an option to whitelist options that are allowed in a modeline. This
4397 would allow careful users to use modelines, e.g., only allowing
4398 'shiftwidth'.
4399- Add an option to let modelines only set local options, not global ones
4400 such as 'encoding'.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004401- When an option value is coming from a modeline, do not carry it over to
4402 another edited file? Would need to remember the value from before the
4403 modeline setting.
4404- Allow setting a variable from a modeline? Only allow using fixed strings,
4405 no function calls, to avoid a security problem.
4406- Allow ":doauto BufRead x.cpp" in modelines, to execute autocommands for
4407 .cpp files.
4408- Support the "abbreviate" command in modelines (Kearns). Careful for
4409 characters after <Esc>, that is a security leak.
4410- Add option setting to ask user if he wants to have the modelines executed
4411 or not. Same for .exrc in local dir.
4412
4413
Bram Moolenaard5bc83f2005-12-07 21:07:59 +00004414Sessions:
44158 DOS/Windows: ":mksession" generates a "cd" command where "aa\#bb" means
4416 directory "#bb" in "aa", but it's used as "aa#bb". (Ronald Hoellwarth)
44177 When there is a "help.txt" window in a session file, restoring that
4418 session will not get the "LOCAL ADDITIONS" back.
Bram Moolenaar071d4272004-06-13 20:20:40 +000044198 With ":mksession" always store the 'sessionoptions' option, even when
4420 "options" isn't in it. (St-Amant)
Bram Moolenaar071d4272004-06-13 20:20:40 +000044218 When using ":mksession", also store a command to reset all options to
4422 their default value, before setting the options that are not at their
4423 default value.
Bram Moolenaar9ba0eb82005-06-13 22:28:56 +000044247 With ":mksession" also store the tag stack and jump history. (Michal
4425 Malecki)
Bram Moolenaard5bc83f2005-12-07 21:07:59 +000044267 Persistent variables: "p:var"; stored in viminfo file and sessions files.
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00004427
Bram Moolenaard5bc83f2005-12-07 21:07:59 +00004428
4429Options:
44307 ":with option=value | command": temporarily set an option value and
4431 restore it after the command has executed.
44327 Setting an option always sets "w_set_curswant", while this is only
4433 required for a few options. Only do it for those options to avoid the
4434 side effect.
Bram Moolenaar071d4272004-06-13 20:20:40 +000044358 Make "old" number options that really give a number of effects into string
4436 options that are a comma separated list. The old number values should
4437 also be supported.
44388 Add commands to save and restore an option, which also preserves the flag
4439 that marks if the option was set. Useful to keep the effect of setting
4440 'compatible' after ":syntax on" has been used.
44417 There is 'titleold', why is there no 'iconold'? (Chazelas)
44427 Make 'scrolloff' a global-local option, so that it can be different in the
4443 quickfix window, for example. (Gary Holloway)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004444
4445
4446External commands:
44478 When filtering text, redirect stderr so that it can't mess up the screen
4448 and Vim doesn't need to redraw it. Also for ":r !cmd".
44494 Set separate shell for ":sh", piping "range!filter", reading text "r !ls"
4450 and writing text "w !wc". (Deutsche) Allow arguments for fast start (e.g.
4451 -f).
44524 Allow direct execution, without using a shell.
44534 Run an external command in the background. But how about I/O in the GUI?
4454 Careful: don't turn Vim into a shell!
44554 Add feature to disable using a shell or external commands.
4456
4457
4458Multiple Windows:
44597 "vim -oO file ..." use both horizontal and vertical splits.
44608 Add CTRL-W T: go to the top window in the column of the current window.
4461 And CTRL-W B: go to bottom window.
44627 Use CTRL-W <Tab>, like alt-tab, to switch between buffers. Repeat <Tab>
4463 to select another buffer (only loaded ones?), <BS> to go back, <Enter> to
4464 select buffer, <Esc> to go back to original buffer.
Bram Moolenaarc236c162008-07-13 17:41:49 +000044657 Make it possible to edit a new buffer in the preview window. A script can
4466 then fill it with something. ":popen"?
Bram Moolenaar97b2ad32006-03-18 21:40:56 +000044677 Add a 'tool' window: behaves like a preview window but there can be
4468 several. Don't count it in only_one_window(). (Alexei Alexandrov)
Bram Moolenaar071d4272004-06-13 20:20:40 +000044696 Add an option to resize the shell when splitting and/or closing a window.
4470 ":vsp" would make the shell wider by as many columns as needed for the new
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004471 window. Specify a maximum size (or use the screen size). ":close" would
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472 shrink the shell by as many columns as come available. (Demirel)
44737 When starting Vim several times, instantiate a Vim server, that allows
4474 communication between the different Vims. Feels like one Vim running with
4475 multiple top-level windows. Esp. useful when Vim is started from an IDE
4476 too. Requires some form of inter process communication.
4477- Support a connection to an external viewer. Could call the viewer
4478 automatically after some seconds of non-activity, or with a command.
4479 Allow some way of reporting scrolling and cursor positioning in the viewer
4480 to Vim, so that the link between the viewed and edited text can be made.
4481
4482
4483Marks:
Bram Moolenaar8c8de832008-06-24 22:58:06 +000044848 Add ten marks for last changed files: ':0, ':1, etc. One mark per file.
Bram Moolenaar071d4272004-06-13 20:20:40 +000044858 When cursor is first moved because of scrolling, set a mark at this
4486 position. (Rimon Barr) Use '-.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000044878 Add a command to jump to a mark and make the motion inclusive. g'm and g`m?
Bram Moolenaar071d4272004-06-13 20:20:40 +000044888 The '" mark is set to the first line, even when doing ":next" a few times.
4489 Only set the '" mark when the cursor was really moved in a file.
44908 Make `` and '', which would position the new cursor position in the middle
4491 of the window, restore the old topline (or relative position) from when
4492 the mark was set.
44937 Make a list of file marks in a separate window. For listing all buffers,
4494 matching tags, errors, etc. Normal commands to move around. Add commands
4495 to jump to the mark (in current window or new window). Start it with
4496 ":browse marks"?
44976 Add a menu that lists the Marks like ":marks". (Amerige)
Bram Moolenaar071d4272004-06-13 20:20:40 +000044987 For ":jumps", ":tags" and ":marks", for not loaded buffers, remember the
4499 text at the mark. Highlight the column with the mark.
45007 Highlight each mark in some way (With "Mark" highlight group).
4501 Or display marks in a separate column, like 'number' does.
45027 Use d"m to delete rectangular area from cursor to mark m (like Vile's \m
4503 command).
45047 Try to keep marks in the same position when:
4505 - replacing with a line break, like in ":s/pat/^M/", move marks after the
4506 line break column to the next line. (Acevedo)
4507 - inserting/deleting characters in a line.
45085 Include marks for start/end of the current word and section. Useful in
4509 mappings.
45106 Add "unnamed mark" feature: Like marks for the ":g" command, but place and
4511 unplace them with commands before doing something with the lines.
4512 Highlight the marked lines somehow.
4513
4514
4515Digraphs:
45167 Make "ga" show the digraph for a character, if it exists.
4517 Also the keymap?
Bram Moolenaard58e9292011-02-09 17:07:58 +01004518 Also show the code of the character after conversion to 'filenecoding'.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004519- Make it possible to enter "r<C-E>" and "r<C-Y>" (get character from line
4520 below/above).
4521- Use digraph table to tell Vim about the collating sequence of special
4522 characters?
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +000045238 Add command to remove one or more (all) digraphs. (Brown)
Bram Moolenaar071d4272004-06-13 20:20:40 +000045247 Support different sets of digraphs (depending on the character set?). At
4525 least Latin1/Unicode, Latin-2, MS-DOS (esp. for Win32).
4526
4527
4528Writing files:
4529- In vim_rename(), should lock "from" file when deleting "to" file for
4530 systems other than Amiga. Avoids problems with unexpected longname to
4531 shortname conversion.
45328 write mch_isdevice() for Amiga, Mac, VMS, etc.
45338 When appending to a file, Vim should also make a backup and a 'patchmode'
4534 file.
45358 'backupskip' doesn't write a backup file at all, a bit dangerous for some
4536 applications. Add 'backupelsewhere' to write a backup file in another
4537 directory? Or add a flag to 'backupdir'?
Bram Moolenaar071d4272004-06-13 20:20:40 +000045386 Add an option to write a new, numbered, backup file each time. Like
4539 'patchmode', e.g., 'backupmode'.
45406 Make it possible to write 'patchmode' files to a different directory.
4541 E.g., ":set patchmode=~/backups/*.orig". (Thomas)
45426 Add an option to prepend something to the backup file name. E.g., "#".
4543 Or maybe allow a function to modify the backup file name?
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000045448 Only make a backup when overwriting a file for the first time. Avoids
Bram Moolenaar071d4272004-06-13 20:20:40 +00004545 losing the original when writing twice. (Slootman)
45467 On non-Unix machines, also overwrite the original file in some situations
4547 (file system full, it's a link on an NFS partition).
45487 When editing a file, check that it has been change outside of Vim more
4549 often, not only when writing over it. E.g., at the time the swap file is
4550 flushed. Or every ten seconds or so (use the time of day, check it before
4551 waiting for a character to be typed).
45528 When a file was changed since editing started, show this in the status
4553 line of the window, like "[time]".
4554 Make it easier to reload all outdated files that don't have changes.
4555 Automatic and/or with a command.
4556
4557
4558Substitute:
Bram Moolenaar3f770472005-06-19 22:56:27 +000045598 Substitute with hex/unicode number "\%xff" and "\%uabcd". Just like
4560 "\%uabcd" in search pattern.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000045618 Make it easier to replace in all files in the argument list. E.g.:
Bram Moolenaar071d4272004-06-13 20:20:40 +00004562 ":argsub/oldword/newword/". Works like ":argdo %s/oldword/newword/g|w".
4563- :s///p prints the line after a substitution.
4564- With :s///c replace \&, ~, etc. when showing the replacement pattern.
45658 With :s///c allow scrolling horizontally when 'nowrap' is effective.
4566 Also allow a count before the scrolling keys.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004567- Add number option to ":s//2": replace second occurrence of string? Or:
Bram Moolenaar071d4272004-06-13 20:20:40 +00004568 :s///N substitutes N times.
4569- Add answers to ":substitute" with 'c' flag, used in a ":global", e.g.:
4570 ":g/pat1/s/pat2/pat3/cg": 'A' do all remaining replacements, 'Q' don't do
4571 any replacements, 'u' undo last substitution.
45727 Substitute in a block of text. Use {line}.{column} notation in an Ex
4573 range, e.g.: ":1.3,$.5s" means to substitute from line 1 column 3 to the
4574 last line column 5.
45755 Add commands to bookmark lines, display bookmarks, remove bookmarks,
4576 operate on lines with bookmarks, etc. Like ":global" but with the
4577 possibility to keep the bookmarks and use them with several commands.
4578 (Stanislav Sitar)
4579
4580
4581Mouse support:
Bram Moolenaar071d4272004-06-13 20:20:40 +000045828 Add 'o' flag to 'mouse'?
45837 Be able to set a 'mouseshape' for the popup menu.
45848 Add 'mouse' flag, which sets a behavior like Visual mode, but automatic
4585 yanking at the button-up event. Or like Select mode, but typing gets you
4586 out of Select mode, instead of replacing the text. (Bhaskar)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004587- Implement mouse support for the Amiga console.
4588- Using right mouse button to extend a blockwise selection should attach to
4589 the nearest corner of the rectangle (four possible corners).
4590- Precede mouse click by a number to simulate double clicks?!?
4591- When mouse click after 'r' command, get character that was pointed to.
4592
4593
Bram Moolenaar071d4272004-06-13 20:20:40 +00004594Argument list:
45956 Add command to put all filenames from the tag files in the argument list.
4596 When given an argument, only use the files where that argument matches
4597 (like `grep -l ident`) and jump to the first match.
45986 Add command to form an args list from all the buffers?
4599
4600
4601Registers:
46028 Don't display empty registers with ":display". (Etienne)
46038 Make the # register writable, so that it can be restored after jumping
4604 around in windows.
46058 Add put command that overwrites existing text. Should also work for
4606 blocks. Useful to move text around in a table. Works like using "R ^R r"
4607 for every line.
46086 When yanking into the unnamed registers several times, somehow make the
4609 previous contents also available (like it's done for deleting). What
4610 register names to use? g"1, g"2, etc.?
4611- When appending to a register, also report the total resulting number of
4612 lines. Or just say "99 more lines yanked", add the "more".
4613- When inserting a register in Insert mode with CTRL-R, don't insert comment
4614 leader when line wraps?
4615- The ":@r" commands should take a range and execute the register for each
4616 line in the range.
4617- Add "P" command to insert contents of unnamed register, move selected text
4618 to position of previous deleted (to swap foo and bar in " + foo")
46198 Should be able to yank and delete into the "/ register.
4620 How to take care of the flags (offset, magic)?
Bram Moolenaared203462004-06-16 11:19:22 +00004621
Bram Moolenaar071d4272004-06-13 20:20:40 +00004622
4623Debug mode:
46247 Add something to enable debugging when a remote message is received.
46258 Add breakpoints for setting an option
Bram Moolenaar69a7cb42004-06-20 12:51:53 +000046268 Add breakpoints for assigning to a variable.
Bram Moolenaar071d4272004-06-13 20:20:40 +000046277 Add a watchpoint in the debug mode: An expression that breaks execution
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +00004628 when evaluating to non-zero. Add the "watchadd expr" command, stop when
4629 the value of the expression changes. ":watchdel" deletes an item,
4630 ":watchlist" lists the items. (Charles Campbell)
Bram Moolenaar071d4272004-06-13 20:20:40 +000046317 Store the history from debug mode in viminfo.
46327 Make the debug mode history available with histget() et al.
4633
4634
4635Various improvements:
Bram Moolenaar166af9b2010-11-16 20:34:40 +010046369 Python: be able to define a Python function that can be called directly
4637 from Vim script. Requires converting the arguments and return value.
Bram Moolenaar8c8de832008-06-24 22:58:06 +000046388 ":sign unplace * file={filename}" should work. Also: ":sign unplace *
4639 buffer={bufnr}". So one can remove all signs for one file/buffer.
Bram Moolenaar1d2ba7f2006-02-14 22:29:30 +000046407 Add plugins for formatting? Should be able to make a choice depending on
4641 the language of a file (English/Korean/Japanese/etc.).
4642 Setting the 'langformat' option to "chinese" would load the
4643 "format/chinese.vim" plugin.
4644 The plugin would set 'formatexpr' and define the function being called.
4645 Edward L. Fox explains how it should be done for most Asian languages.
4646 (2005 Nov 24)
Bram Moolenaar8c8de832008-06-24 22:58:06 +00004647 Alternative: patch for utf-8 line breaking. (Yongwei Wu, 2008 Feb 23)
Bram Moolenaar87b774d2005-07-20 22:04:36 +000046487 [t to move to previous xml/html tag (like "vatov"), ]t to move to next
4649 ("vatv").
Bram Moolenaar342337a2005-07-21 21:11:17 +000046507 [< to move to previous xml/html tag, e.g., previous <li>. ]< to move to
4651 next <li>, ]< to next </li>, [< to previous </li>.
Bram Moolenaar071d4272004-06-13 20:20:40 +000046528 Add ":rename" command: rename the file of the current buffer and rename
4653 the buffer. Buffer may be modified.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000046547 Instead of filtering errors with a shell script it should be possible to
4655 do this with Vim script. A function that filters the raw text that comes
4656 from the 'makeprg'?
Bram Moolenaar2a8a3ec2011-01-08 16:06:37 +010046579 Add %F to 'errorformat': file name without spaces. Useful on Unix to
4658 avoid matching something up to a time 11:22:33.
Bram Moolenaar1ef15e32006-02-01 21:56:25 +00004659- Add %b to 'errorformat': buffer number. (Yegappan Lakshmanan / Suresh
Bram Moolenaar86b68352004-12-27 21:59:20 +00004660 Govindachar)
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000046617 Add a command that goes back to the position from before jumping to the
4662 first quickfix location. ":cbefore"?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010046637 Allow a window not to have a statusline. Makes it possible to use a
4664 window as a buffer-tab selection.
46658 Allow non-active windows to have a different statusline. (Yakov Lerner)
Bram Moolenaar071d4272004-06-13 20:20:40 +000046666 Python interface: add vim.message() function. (Michal Vitecek, 2002 Nov 5)
46677 Support using ":vert" with User commands. Add expandable items <vert>.
4668 Do the same for ":browse" and ":confirm"?
4669 For ":silent" and ":debug" apply to the whole user command.
Bram Moolenaar8c8de832008-06-24 22:58:06 +00004670 More general: need a way to access command modifiers in a user command.
4671 Assign them to a v: variable?
Bram Moolenaar071d4272004-06-13 20:20:40 +000046727 Add an invisible buffer which can be edited. For use in scripts that want
4673 to manipulate text without changing the window layout.
46748 Add a command to revert to the saved version of file; undo or redo until
4675 all changes are gone.
Bram Moolenaar071d4272004-06-13 20:20:40 +000046766 "vim -q -" should read the list of errors from stdin. (Gautam Mudunuri)
Bram Moolenaar071d4272004-06-13 20:20:40 +000046778 Add "--remote-fail": When contacting the server fails, exit Vim.
4678 Add "--remote-self": When contacting the server fails, do it in this Vim.
4679 Overrules the default of "--remote-send" to fail and "--remote" to do it
4680 in this Vim.
46818 When Vim was started without a server, make it possible to start one, as
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004682 if the "--servername" argument was given. ":startserver <name>"?
Bram Moolenaar071d4272004-06-13 20:20:40 +000046838 No address range can be used before the command modifiers. This makes
4684 them difficult to use in a menu for Visual mode. Accept the range and
4685 have it apply to the following command.
46868 Add the possibility to set 'fileformats' to force a format and strip other
4687 CR characters. For example, for "dos" files remove CR characters at the
4688 end of the line, so that a file with mixed line endings is cleaned up.
4689 To just not display the CR characters: Add a flag to 'display'?
Bram Moolenaar071d4272004-06-13 20:20:40 +000046907 Some compilers give error messages in which the file name does not have a
4691 path. Be able to specify that 'path' is used for these files.
Bram Moolenaar071d4272004-06-13 20:20:40 +000046927 Xterm sends <Esc>O3F for <M-End>. Similarly for other <M-Home>, <M-Left>,
4693 etc. Combinations of Alt, Ctrl and Shift are also possible. Recognize
4694 these to avoid inserting the raw byte sequence, handle like the key
4695 without modifier (unless mapped).
Bram Moolenaar071d4272004-06-13 20:20:40 +000046966 Add "gG": like what "gj" is to "j": go to the N'th window line.
46978 Add command like ":normal" that accepts <Key> notation like ":map".
46989 Support ACLs on more systems.
46997 Add ModeMsgVisual, ModeMsgInsert, etc. so that each mode message can be
4700 highlighted differently.
Bram Moolenaar071d4272004-06-13 20:20:40 +000047017 Add a message area for the user. Set some option to reserve space (above
4702 the command line?). Use an ":echouser" command to display the message
4703 (truncated to fit in the space).
47047 Add %s to 'keywordprg': replace with word under the cursor. (Zellner)
47058 Support printing on Unix. Can use "lpansi.c" as an example. (Bookout)
47068 Add put command that replaces the text under it. Esp. for blockwise
4707 Visual mode.
Bram Moolenaared203462004-06-16 11:19:22 +000047087 Enhance termresponse stuff: Add t_CV(?): pattern of term response, use
Bram Moolenaar071d4272004-06-13 20:20:40 +00004709 regexp: "\e\[[>?][0-9;]*c", but only check just after sending t_RV.
47107 Add "g|" command: move to N'th column from the left margin (after wrapping
4711 and applying 'leftcol'). Works as "|" like what "g0" is to "0".
Bram Moolenaar071d4272004-06-13 20:20:40 +000047127 Support setting 'equalprg' to a user function name.
Bram Moolenaar071d4272004-06-13 20:20:40 +000047137 Highlight the characters after the end-of-line differently.
47147 When 'whichwrap' contains "l", "$dl" should join lines?
Bram Moolenaar071d4272004-06-13 20:20:40 +000047158 Add an argument to configure to use $CFLAGS and not modify it? (Mooney)
47168 Enabling features is a mix of configure arguments and defines in
4717 feature.h. How to make this consistent? Feature.h is required for
4718 non-unix systems. Perhaps let configure define CONF_XXX, and use #ifdef
4719 CONF_XXX in feature.h? Then what should min-features and max-features do?
47208 Add "g^E" and "g^Y", to scroll a screen-full line up and down.
47216 Add ":timer" command, to set a command to be executed at a certain
4722 interval, or once after some time has elapsed. (Aaron)
Bram Moolenaarebefac62005-12-28 22:39:57 +00004723 Perhaps an autocommand event like CursorHold is better?
Bram Moolenaar071d4272004-06-13 20:20:40 +000047248 Add ":confirm" handling in open_exfile(), for when file already exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000047258 When quitting with changed files, make the dialog list the changed file
4726 and allow "write all", "discard all", "write some". The last one would
4727 then ask "write" or "discard" for each changed file. Patch in HierAssist
4728 does something like this. (Shah)
47297 Use growarray for replace stack.
47307 Have a look at viH (Hellenic or Greek version of Vim). But a solution
4731 outside of Vim might be satisfactory (Haritsis).
47323 Make "2d%" work like "d%d%" instead of "d2%"?
Bram Moolenaar071d4272004-06-13 20:20:40 +000047337 "g CTRL-O" jumps back to last used buffer. Skip CTRL-O jumps in the same
4734 buffer. Make jumplist remember the last ten accessed buffers?
Bram Moolenaar81af9252010-12-10 20:35:50 +010047357 Make it possible to set the size of the jumplist (also to a smaller number
4736 than the default). (Nikolai Weibull)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004737- Add code to disable the CAPS key when going from Insert to Normal mode.
4738- Set date/protection/etc. of the patchfile the same as the original file.
4739- Use growarray for termcodes[] in term.c
4740- Add <window-99>, like <cword> but use filename of 99'th window.
47417 Add a way to change an operator to always work characterwise-inclusive
4742 (like "v" makes the operator characterwise-exclusive). "x" could be used.
4743- Make a set of operations on list of names: expand wildcards, replace home
4744 dir, append a string, delete a string, etc.
Bram Moolenaar00659062010-09-21 22:34:02 +02004745- Remove using mktemp() and use tmpname() only? Ctags does this.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004746- When replacing environment variables, and there is one that is not set,
4747 turn it into an empty string? Only when expanding options? (Hiebert)
4748- Option to set command to be executed instead of producing a beep (e.g. to
4749 call "play newbeep.au").
4750- Add option to show the current function name in the status line. More or
4751 less what you find with "[[k", like how 'cindent' recognizes a function.
4752 (Bhatt).
4753- "[r" and "]r": like "p" and "P", but replace instead of insert (esp. for
4754 blockwise registers).
4755- Add 'timecheck' option, on by default. Makes it possible to switch off the
4756 timestamp warning and question. (Dodt).
4757- Add an option to set the time after which Vim should check the timestamps
4758 of the files. Only check when an event occurs (e.g., character typed,
4759 mouse moved). Useful for non-GUI versions where keyboard focus isn't
4760 noticeable.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004761- Make 'smartcase' work even though 'ic' isn't set (Webb).
Bram Moolenaar071d4272004-06-13 20:20:40 +000047627 When formatting text, allow to break the line at a number of characters.
4763 Use an option for this: 'breakchars'? Useful for formatting Fortran code.
4764- Add flag to 'formatoptions' to be able to format book-style paragraphs
4765 (first line of paragraph has larger indent, no empty lines between
4766 paragraphs). Complements the '2' flag. Use '>' flag when larger indent
4767 starts a new paragraph, use '<' flag when smaller indent starts a new
4768 paragraph. Both start a new paragraph on any indent change.
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000047698 The 'a' flag in 'formatoptions' is too dangerous. In some way only do
4770 auto-formatting in specific regions, e.g. defined by syntax highlighting.
Bram Moolenaar071d4272004-06-13 20:20:40 +000047718 Allow using a trailing space to signal a paragraph that continues on the
4772 next line (MIME text/plain; format=flowed, RFC 2646). Can be used for
4773 continuous formatting. Could use 'autoformat' option, which specifies a
4774 regexp which triggers auto-formatting (for one line).
4775 ":set autoformat=\\s$".
4776- Be able to redefine where a sentence stops. Use a regexp pattern?
Bram Moolenaar5313dcb2005-02-22 08:56:13 +00004777- Support multi-byte characters for sentences. Example from Ben Peterson.
Bram Moolenaar071d4272004-06-13 20:20:40 +000047787 Add command "g)" to go to the end of a sentence, "g(" to go back to the
4779 end of a sentence. (Servatius Brandt)
4780- Be able to redefine where a paragraph starts. For "[[" where the '{' is
4781 not in column 1.
47826 Add ":cdprev": go back to the previous directory. Need to remember a
4783 stack of previous directories. We also need ":cdnext".
47847 Should ":cd" for MS-DOS go to $HOME, when it's defined?
4785- Make "gq<CR>" work on the last line in the file. Maybe for every operator?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004786- Add more redirecting of Ex commands:
Bram Moolenaarce5e58e2005-01-19 22:24:34 +00004787 :redir #> bufname
4788 :redir #>> bufname (append)
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +00004789- Give error message when starting :redir: twice or using END when no
4790 redirection was active.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004791- Setting of options, specifically for a buffer or window, with
4792 ":set window.option" or ":set buffer.option=val". Or use ":buffer.set".
4793 Also: "buffer.map <F1> quit".
47946 Would it be possible to change the color of the cursor in the Win32
4795 console? (Klaus Hast)
4796- Add :delcr command:
4797 *:delcr*
4798 :[range]delcr[!] Check [range] lines (default: whole buffer) for lines
4799 ending in <CR>. If all lines end in <CR>, or [!] is
4800 used, remove the <CR> at the end of lines in [range].
4801 A CTRL-Z at the end of the file is removed. If
4802 [range] is omitted, or it is the whole file, and all
4803 lines end in <CR> 'textmode' is set. {not in Vi}
4804- Should integrate addstar() and file_pat_to_reg_pat().
4805- When working over a serial line with 7 bit characters, remove meta
4806 characters from 'isprint'.
4807- Use fchdir() in init_homedir(), like in FullName().
4808- In win_update(), when the GUI is active, always use the scrolling area.
4809 Avoid that the last status line is deleted and needs to be redrawn.
4810- That "cTx" fails when the cursor is just after 'x' is Vi compatible, but
4811 may not be what you expect. Add a flag in 'cpoptions' for this? More
4812 general: Add an option to allow "c" to work with a null motion.
4813- Give better error messages by using errno (strerror()).
4814- Give "Usage:" error message when command used with wrong arguments (like
4815 Nvi).
4816- Make 'restorescreen' option also work for xterm (and others), replaces the
4817 SAVE_XTERM_SCREEN define.
48187 Support for ":winpos" In xterm: report the current window position.
4819- Give warning message when using ":set t_xx=asdf" for a termcap code that
4820 Vim doesn't know about. Add flag in 'shortmess'?
48216 Add ":che <file>", list all the include paths which lead to this file.
4822- For a commandline that has several commands (:s, :d, etc.) summarize the
4823 changes all together instead of for each command (e.g. for the rot13
4824 macro).
4825- Add command like "[I" that also shows the tree of included files.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004826- ":set sm^L" results in ":set s", because short names of options are also
4827 expanded. Is there a better way to do this?
4828- Add ":@!" command, to ":@" like what ":source!" is to ":source".
48298 Add ":@:!": repeat last command with forceit set.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004830- Add 't_normal': Used whenever t_me, t_se, t_ue or t_Zr is empty.
4831- ":cab map test ^V| je", ":cunab map" doesn't work. This is vi compatible!
4832- CTRL-W CTRL-E and CTRL-W CTRL-Y should move the current window up or down
4833 if it is not the first or last window.
4834- Include-file-search commands should look in the loaded buffer of a file (if
4835 there is one) instead of the file itself.
48367 Change 'nrformats' to include the leader for each format. Example:
4837 nrformats=hex:$,binary:b,octal:0
4838 Add setting of 'nrformats' to syntax files.
4839- 'path' can become very long, don't use NameBuff for expansion.
4840- When unhiding a hidden buffer, put the same line at top of the window as
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004841 the one before hiding it. Or: keep the same relative cursor position (so
Bram Moolenaar071d4272004-06-13 20:20:40 +00004842 many percent down the windows).
4843- Make it possible for the 'showbreak' to be displayed at the end of the
4844 line. Use a comma to separate the part at the end and the start of the
4845 line? Highlight the linebreak characters, add flag in 'highlight'.
4846- Some string options should be expanded if they have wildcards, e.g.
4847 'dictionary' when it is "*.h".
4848- Use a specific type for number and boolean options, making it possible to
4849 change it for specific machines (e.g. when a long is 64 bit).
4850- Add option for <Insert> in replace mode going to normal mode. (Nugent)
4851- Add a next/previous possibility to "[^I" and friends.
4852- Add possibility to change the HOME directory. Use the directory from the
4853 passwd file? (Antwerpen)
Bram Moolenaar071d4272004-06-13 20:20:40 +000048548 Add commands to push and pop all or individual options. ":setpush tw",
4855 ":setpop tw", ":setpush all". Maybe pushing/popping all options is
4856 sufficient. ":setflush" resets the option stack?
4857 How to handle an aborted mapping? Remember position in tag stack when
4858 mapping starts, restore it when an error aborts the mapping?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004859- Change ":fixdel" into option 'fixdel', t_del will be adjusted each time
4860 t_bs is set? (Webb)
4861- "gc": goto character, move absolute character positions forward, also
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004862 counting newlines. "gC" goes backwards (Weigert).
4863- When doing CTRL-^, redraw buffer with the same topline. (Demirel) Store
Bram Moolenaar071d4272004-06-13 20:20:40 +00004864 cursor row and window height to redraw cursor at same percentage of window
4865 (Webb).
4866- Besides remembering the last used line number of a file, also remember the
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004867 column. Use it with CTRL-^ et. al.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004868- Check for non-digits when setting a number option (careful when entering
4869 hex codes like 0xff).
4870- Add option to make "." redo the "@r" command, instead of the last command
4871 executed by it. Also to make "." redo the whole mapping. Basically: redo
4872 the last TYPED command.
4873- Support URL links for ^X^F in Insert mode, like for "gf".
4874- Support %name% expansion for "gf" on Windows.
4875- Make "gf" work on "file://c:/path/name". "file:/c:/" and "file:///c:/"
4876 should also work?
4877- Add 'urlpath', used like 'path' for when "gf" used on an URL?
48788 When using "gf" on an absolute file name, while editing a remote file
4879 (starts with scp:// or http://) should prepend the method and machine
4880 name.
4881- When finding an URL or file name, and it doesn't exist, try removing a
4882 trailing '.'.
4883- Add ":path" command modifier. Should work for every command that takes a
4884 file name argument, to search for the file name in 'path'. Use
4885 find_file_in_path().
4886- Highlight control characters on the screen: Shows the difference between
4887 CTRL-X and "^" followed by "X" (Colon).
4888- Integrate parsing of cmdline command and parsing for expansion.
4889- Create a program that can translate a .swp file from any machine into a
4890 form usable by Vim on the current machine.
4891- Add ":noro" command: Reset 'ro' flag for all buffers, except ones that have
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004892 a readonly file. ":noro!" will reset all 'ro' flags.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004893- Add a variant of CTRL-V that stops interpretation of more than one
4894 character. For entering mappings on the command line where a key contains
4895 several special characters, e.g. a trailing newline.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004896- Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
Bram Moolenaar071d4272004-06-13 20:20:40 +00004897 the two into a regex for searching. (Ned Konz)
4898- Make '2' option in 'formatoptions' also work inside comments.
4899- Add 's' flag to 'formatoptions': Do not break when inside a string. (Dodt)
4900- When window size changed (with the mouse) and made too small, set it back
4901 to the minimal size.
4902- Add "]>" and "[<", shift comment at end of line (command; /* comment */).
4903- Should not call cursorcmd() for each vgetc() in getcmdline().
4904- ":split file1 file2" adds two more windows (Webb).
4905- Don't give message "Incomplete last line" when editing binary file.
4906- Add ":a", ":i" for preloading of named buffers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004907- When entering text, keep other windows on same buffer updated (when a line
4908 entered)?
4909- Check out how screen does output optimizing. Apparently this is possible
4910 as an output filter.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004911- In dosub() regexec is called twice for the same line. Try to avoid this.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004912- Window updating from memline.c: insert/delete/replace line.
4913- Optimize ml_append() for speed, esp. for reading a file.
4914- V..c should keep indent when 'ai' is set, just like [count]cc.
4915- Updatescript() can be done faster with a string instead of a char.
4916- Screen updating is inefficient with CTRL-F and CTRL-B when there are long
4917 lines.
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01004918- Uppercase characters in Ex commands can be made lowercase?
Bram Moolenaar071d4272004-06-13 20:20:40 +000049198 Add option to show characters in text not as "|A" but as decimal ("^129"),
4920 hex ("\x81") or octal ("\201") or meta (M-x). Nvi has the 'octal' option
4921 to switch from hex to octal. Vile can show unprintable characters in hex
4922 or in octal.
49237 Tighter integration with xxd to edit binary files. Make it more
4924 easy/obvious to use. Command line argument?
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004925- How does vi detect whether a filter has messed up the screen? Check source.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004926 After ":w !command" a wait_return?
4927- Improve screen updating code for doput() (use s_ins()).
4928- With 'p' command on last line: scroll screen up (also for terminals without
4929 insert line command).
4930- Use insert/delete char when terminal supports it.
4931- Optimize screen redraw for slow terminals.
4932- Optimize "dw" for long row of spaces (say, 30000).
4933- Add "-d null" for editing from a script file without displaying.
4934- In Insert mode: Remember the characters that were removed with backspace
4935 and re-insert them one at a time with <key1>, all together with <key2>.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004936- Amiga: Add possibility to set a keymap. The code in amiga.c does not work
Bram Moolenaar071d4272004-06-13 20:20:40 +00004937 yet.
4938- Implement 'redraw' option.
4939- Add special code to 'sections' option to define something else but '{' or
4940 '}' as the start of a section (e.g. one shiftwidth to the right).
Bram Moolenaar071d4272004-06-13 20:20:40 +000049417 Allow using Vim in a pipe: "ls | vim -u xxx.vim - | yyy". Only needs
4942 implementing ":w" to stdout in the buffer that was read from stdin.
Bram Moolenaar2641f772005-03-25 21:58:17 +00004943 Perhaps writing to stdout will work, since stderr is used for the terminal
4944 I/O.
Bram Moolenaar071d4272004-06-13 20:20:40 +000049458 Allow opening an unnamed buffer with ":e !cmd" and ":sp !cmd". Vile can
4946 do it.
4947- Add commands like ]] and [[ that do not include the line jumped to.
4948- When :unab without matching "from" part and several matching "to" parts,
4949 delete the entry that was used last, instead of the first in the list.
4950- Add text justification option.
4951- Set boolean options on/off with ":set paste=off", ":set paste=on".
4952- After "inv"ing an option show the value: ":set invpaste" gives "paste is
4953 off".
4954- Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
4955- When a file cannot be opened but does exist, give error message.
4956- Amiga: When 'r' protection bit is not set, file can still be opened but
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004957 gives read errors. Check protection before opening.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004958- When writing check for file exists but no permission, "Permission denied".
Bram Moolenaar06b5d512010-05-22 15:37:44 +02004959- If file does not exist, check if directory exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004960- MSDOS: although t_cv and t_ci are not set, do invert char under cursor.
4961- Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex
4962 commands.
4963- ":set -w all": list one option per line.
4964- Amiga: test for 'w' flag when reading a file.
4965- :table command (Webb)
4966- Add new operator: clear, make area white (replace with spaces): "g ".
Bram Moolenaar071d4272004-06-13 20:20:40 +00004967- Add command to ":read" a file at a certain column (blockwise read?).
4968- Add sort of replace mode where case is taken from the old text (Goldfarb).
4969- Allow multiple arguments for ":read", read all the files.
4970- Support for tabs in specific columns: ":set tabcol=8,20,34,56" (Demirel).
4971- Add 'searchdir' option: Directories to search for file name being edited
4972 (Demirel).
4973- Modifier for the put command: Change to linewise, charwise, blockwise, etc.
4974- Add commands for saving and restoring options ":set save" "set restore",
4975 for use in macro's and the like.
4976- Keep output from listings in a window, so you can have a look at it while
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004977 working in another window. Put cmdline in a separate window?
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01004978- Add possibility to put output of Ex commands in a buffer or file, e.g. for
Bram Moolenaar071d4272004-06-13 20:20:40 +00004979 ":set all". ":r :set all"?
Bram Moolenaar071d4272004-06-13 20:20:40 +00004980- When the 'equalalways' option is set, creating a new window should not
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004981 result in windows to become bigger. Deleting a window should not result in
Bram Moolenaar071d4272004-06-13 20:20:40 +00004982 a window to become smaller (Webb).
4983- When resizing the whole Vim window, the windows inside should be resized
4984 proportionally (Webb).
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004985- Include options directly in option table, no indirect pointers. Use
Bram Moolenaar071d4272004-06-13 20:20:40 +00004986 mkopttab to make option table?
4987- When doing ":w dir", where "dir" is a directory name, write the current
4988 file into that directory, with the current file name (without the path)?
4989- Support for 'dictionary's that are sorted, makes access a lot faster
4990 (Haritsis).
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00004991- Add "^Vrx" on the command line, replace with contents of register x. Used
Bram Moolenaar071d4272004-06-13 20:20:40 +00004992 instead of CTRL-R to make repeating possible. (Marinichev)
4993- Add "^Vb" on the command line, replace with word before or under the
4994 cursor?
4995- Option to make a .swp file only when a change is made (Templeton).
4996- Support mapping for replace mode and "r" command (Vi doesn't do this)?
49975 Add 'ignorefilecase' option: Ignore case when expanding file names.
4998 ":e ma<Tab>" would also find "Makefile" on Unix.
Bram Moolenaar69a7cb42004-06-20 12:51:53 +000049998 Sorting of filenames for completion is wrong on systems that ignore
5000 case of filenames. Add 'ignorefncase' option. When set, case in
5001 filenames is ignored for sorting them. Patch by Mike Williams:
5002 ~/vim/patches/ignorefncase. Also change what matches? Or use another
5003 option name.
Bram Moolenaar071d4272004-06-13 20:20:40 +000050048 Should be able to compile Vim in another directory, with $(srcdir) set to
5005 where the sources are. Add $(srcdir) in the Makefile in a lot of places.
5006 (Netherton)
50076 Make it configurable when "J" inserts a space or not. Should not add a
5008 space after "(", for example.
50095 When inserting spaces after the end-of-line for 'virtualedit', use tabs
5010 when the user wants this (e.g., add a "tab" field to 'virtualedit').
5011 (Servatius Brandt)
5012
5013
5014From Elvis:
5015- Use "instman.sh" to install manpages?
5016- Add ":alias" command.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005017- Search patterns:
5018 \@ match word under cursor.
5019 but do:
5020 \@w match the word under the cursor?
5021 \@W match the WORD under the cursor?
50228 ":window" command:
5023 :win + next window (up)
5024 :win ++ idem, wrapping
5025 :win - previous window (down)
5026 :win -- idem, wrapping
5027 :win nr to window number "nr"
5028 :win name to window editing buffer "name"
50297 ":cc" compiles a single file (default: current one). 'ccprg' option is
5030 program to use with ":cc". Use ":compile" instead of ":cc"?
5031
5032
Bram Moolenaar071d4272004-06-13 20:20:40 +00005033From xvi:
5034- CTRL-_ : swap 8th bit of character.
5035- Add egrep-like regex type, like xvi (Ned Konz) or Perl (Emmanuel Mogenet)
5036
5037
5038From vile:
5039- When horizontal scrolling, use '>' for lines continuing right of a window.
5040- Support putting .swp files in /tmp: Command in rc.local to move .swp files
5041 from /tmp to some directory before deleting files.
5042
5043
5044Far future and "big" extensions:
Bram Moolenaar07d4d732005-10-03 22:04:08 +00005045- Instead of using a Makefile and autoconf, use a simple shell script to
5046 find the C compiler and do everything with C code. Translate something
5047 like an Aap recipe and configure.in to C. Avoids depending on Python,
5048 thus will work everywhere. With batch file to find the C compiler it
5049 would also work on MS-Windows.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005050- Make it easy to setup Vim for groups of users: novice vi users, novice
5051 Vim users, C programmers, xterm users, GUI users,...
5052- Change layout of blocks in swap file: Text at the start, with '\n' in
5053 between lines (just load the file without changes, except for Mac).
5054 Indexes for lines are from the end of the block backwards. It's the
5055 current layout mirrored.
5056- Make it possible to edit a register, in a window, like a buffer.
5057- Add stuff to syntax highlighting to change the text (upper-case keywords,
5058 set indent, define other highlighting, etc.).
5059- Mode to keep C-code formatted all the time (sort of on-line indent).
5060- Several top-level windows in one Vim session. Be able to use a different
5061 font in each top-level window.
5062- Allow editing above start and below end of buffer (flag in 'virtualedit').
5063- Smart cut/paste: recognize words and adjust spaces before/after them.
5064- Add open mode, use it when terminal has no cursor positioning.
5065- Special "drawing mode": a line is drawn where the cursor is moved to.
5066 Backspace deletes along the line (from jvim).
5067- Implement ":Bset", set option in all buffers. Also ":Wset", set in all
5068 windows, ":Aset, set in all arguments and ":Tset", set in all files
5069 mentioned in the tags file.
5070 Add buffer/arg range, like in ":2,5B%s/..." (do we really need this???)
5071 Add search string: "B/*.c/%s/.."? Or ":F/*.c/%s/.."?
5072- Support for underlining (underscore-BS-char), bold (char-BS-char) and other
5073 standout modes switched on/off with , 'overstrike' option (Reiter).
5074- Add vertical mode (Paul Jury, Demirel): "5vdw" deletes a word in five
5075 lines, "3vitextESC" will insert "text" in three lines, etc..
50764 Recognize l, #, p as 'flags' to EX commands:
5077 :g/RE/#l shall print lines with line numbers and in list format.
5078 :g/RE/dp shall print lines that are deleted.
5079 POSIX: Commands where flags shall apply to all lines written: list,
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00005080 number, open, print, substitute, visual, &, z. For other commands, flags
Bram Moolenaar071d4272004-06-13 20:20:40 +00005081 shall apply to the current line after the command completes. Examples:
5082 :7,10j #l Join the lines 7-10 and print the result in list
5083- Allow two or more users to edit the same file at the same time. Changes
5084 are reflected in each Vim immediately. Could work with local files but
5085 also over the internet. See http://www.codingmonkeys.de/subethaedit/.
5086
Bram Moolenaar280f1262006-01-30 00:14:18 +00005087When using "do" or ":diffget" in a buffer with changes in every line an extra
5088empty line would appear.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005089
5090vim:tw=78:sw=4:sts=4:ts=8:ft=help:norl:
5091vim: set fo+=n :