updated for version 7.0024
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 7.0aa. Last change: 2004 Dec 16
|
||||
*autocmd.txt* For Vim version 7.0aa. Last change: 2004 Dec 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -14,9 +14,10 @@ For a basic explanation, see section |40.3| in the user manual.
|
||||
4. Listing autocommands |autocmd-list|
|
||||
5. Events |autocmd-events|
|
||||
6. Patterns |autocmd-patterns|
|
||||
7. Groups |autocmd-groups|
|
||||
8. Executing autocommands |autocmd-execute|
|
||||
9. Using autocommands |autocmd-use|
|
||||
7. Buffer-local autocommands |autocmd-buflocal|
|
||||
8. Groups |autocmd-groups|
|
||||
9. Executing autocommands |autocmd-execute|
|
||||
10. Using autocommands |autocmd-use|
|
||||
|
||||
{Vi does not have any of these commands}
|
||||
{only when the |+autocmd| feature has not been disabled at compile time}
|
||||
@ -62,6 +63,9 @@ Note: The ":autocmd" command cannot be followed by another command, since any
|
||||
order in which they were given. See |autocmd-nested|
|
||||
for [nested].
|
||||
|
||||
The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand.
|
||||
See |autocmd-buflocal|.
|
||||
|
||||
Note that special characters (e.g., "%", "<cword>") in the ":autocmd"
|
||||
arguments are not expanded when the autocommand is defined. These will be
|
||||
expanded when the Event is recognized, and the {cmd} is executed. The only
|
||||
@ -148,6 +152,9 @@ If you provide the [group] argument, Vim lists only the autocommands for
|
||||
[group]; otherwise, Vim lists the autocommands for ALL groups. Note that this
|
||||
argument behavior differs from that for defining and removing autocommands.
|
||||
|
||||
In order to list buffer-local autocommands, use a pattern in the form <buffer>
|
||||
or <buffer=N>. See |autocmd-buflocal|.
|
||||
|
||||
==============================================================================
|
||||
5. Events *autocmd-events* *E215* *E216*
|
||||
|
||||
@ -553,6 +560,10 @@ two ways:
|
||||
both short file name (as you typed it) and the full file name (after
|
||||
expanding it to a full path and resolving symbolic links).
|
||||
|
||||
The special pattern <buffer> or <buffer=N> is used for buffer-local
|
||||
autocommands |autocmd-buflocal|. This pattern is not matched against the name
|
||||
of a buffer.
|
||||
|
||||
Examples: >
|
||||
:autocmd BufRead *.txt set et
|
||||
Set the 'et' option for all text files. >
|
||||
@ -608,7 +619,7 @@ Note that for all systems the '/' character is used for path separator (even
|
||||
MS-DOS and OS/2). This was done because the backslash is difficult to use
|
||||
in a pattern and to make the autocommands portable across different systems.
|
||||
|
||||
|
||||
*autocmd-changes*
|
||||
Matching with the pattern is done when an event is triggered. Changing the
|
||||
buffer name in one of the autocommands, or even deleting the buffer, does not
|
||||
change which autocommands will be executed. Example: >
|
||||
@ -621,8 +632,62 @@ the current buffer instead. Vim doesn't take into account that "*.foo"
|
||||
doesn't match with that buffer name. It matches "*.foo" with the name of the
|
||||
buffer at the moment the event was triggered.
|
||||
|
||||
However, buffer-local autocommands will not be executed for a buffer that has
|
||||
been wiped out with |:bwipe|. After deleting the buffer with |:bdel| the
|
||||
buffer actually still exists (it becomes unlisted), thus the autocommands are
|
||||
still executed.
|
||||
|
||||
==============================================================================
|
||||
7. Groups *autocmd-groups*
|
||||
7. Buffer-local autocommands *autocmd-buflocal* *autocmd-buffer-local*
|
||||
*<buffer=N>* *<buffer=abuf>* *E680*
|
||||
|
||||
Buffer-local autocommands are attached to a specific buffer. They are useful
|
||||
if the buffer does not have a name and when the name does not match a specific
|
||||
pattern. But it also means they must be explicitly added to each buffer.
|
||||
|
||||
Instead of a pattern buffer-local autocommands use one of these forms:
|
||||
<buffer> current buffer
|
||||
<buffer=99> buffer number 99
|
||||
<buffer=abuf> using <abuf> (only when executing autocommands)
|
||||
|<abuf>|
|
||||
|
||||
Examples: >
|
||||
:au CursorHold <buffer> echo 'hold'
|
||||
:au CursorHold <buffer=33> echo 'hold'
|
||||
:au CursorHold <buffer=abuf> echo 'hold'
|
||||
|
||||
All the commands for autocommands also work with buffer-local autocommands,
|
||||
simply use the special string instead of the pattern. Examples: >
|
||||
:au! * <buffer> " remove buffer-local autotommands for
|
||||
" current buffer
|
||||
:au! * <buffer=33> " remove buffer-local autotommands for
|
||||
" buffer #33
|
||||
:dobuf :au! CursorHold <buffer> " remove autocmd for given event for all
|
||||
" buffers
|
||||
:au * <buffer> " list buffer-local autocommands for
|
||||
" current buffer
|
||||
|
||||
Note that when an autocommand is defined for the current buffer, it is stored
|
||||
with the buffer number. Thus it uses the form "<buffer=12>", where 12 is the
|
||||
number of the current buffer. You will see this when listing autocommands,
|
||||
for example.
|
||||
|
||||
To test for presence of buffer-local autocommands use the |exists()| function
|
||||
as follows: >
|
||||
:if exists("#CursorHold#<buffer=12>") | ... | endif
|
||||
:if exists("#CursorHold#<buffer>") | ... | endif " for current buffer
|
||||
|
||||
When a buffer is wiped out its buffer-local autocommands are also gone, of
|
||||
course. Note that when deleting a buffer, e.g., with ":bdel", it is only
|
||||
unlisted, the autocommands are still present. In order to see the removal of
|
||||
buffer-local autocommands: >
|
||||
:set verbose=6
|
||||
|
||||
It is not possible to define buffer-local autocommands for a non-existent
|
||||
buffer.
|
||||
|
||||
==============================================================================
|
||||
8. Groups *autocmd-groups*
|
||||
|
||||
Autocommands can be put together in a group. This is useful for removing or
|
||||
executing a group of autocommands. For example, all the autocommands for
|
||||
@ -670,7 +735,7 @@ This prevents having the autocommands defined twice (e.g., after sourcing the
|
||||
.vimrc file again).
|
||||
|
||||
==============================================================================
|
||||
8. Executing autocommands *autocmd-execute*
|
||||
9. Executing autocommands *autocmd-execute*
|
||||
|
||||
Vim can also execute Autocommands non-automatically. This is useful if you
|
||||
have changed autocommands, or when Vim has executed the wrong autocommands
|
||||
@ -713,7 +778,7 @@ option will not cause any commands to be executed.
|
||||
options, change highlighting, and things like that.
|
||||
|
||||
==============================================================================
|
||||
9. Using autocommands *autocmd-use*
|
||||
10. Using autocommands *autocmd-use*
|
||||
|
||||
For WRITING FILES there are four possible sets of events. Vim uses only one
|
||||
of these sets for a write command:
|
||||
@ -926,4 +991,5 @@ The |v:cmdbang| variable is one when "!" was used, zero otherwise.
|
||||
|
||||
See the $VIMRUNTIME/plugin/netrw.vim for examples.
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 7.0aa. Last change: 2004 Jul 14
|
||||
*cmdline.txt* For Vim version 7.0aa. Last change: 2004 Dec 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -355,6 +355,8 @@ CTRL-D List names that match the pattern in front of the cursor.
|
||||
When showing file names, directories are highlighted (see
|
||||
'highlight' option). Names where 'suffixes' matches are moved
|
||||
to the end.
|
||||
The 'wildoptions' option can be set to "tagfile" to list the
|
||||
file of matching tags.
|
||||
*c_CTRL-I* *c_wildchar* *c_<Tab>*
|
||||
'wildchar' option
|
||||
A match is done on the pattern in front of the cursor. The
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 7.0aa. Last change: 2004 Nov 30
|
||||
*index.txt* For Vim version 7.0aa. Last change: 2004 Dec 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1141,6 +1141,7 @@ The commands are sorted on the non-optional part of their name.
|
||||
|:ex| :ex same as ":edit"
|
||||
|:execute| :exe[cute] execute result of expressions
|
||||
|:exit| :exi[t] same as ":xit"
|
||||
|:exusage| :exu[sage] overview of Ex commands
|
||||
|:file| :f[ile] show or set the current file name
|
||||
|:files| :files list all files in the buffer list
|
||||
|:filetype| :filet[ype] switch file type detection on/off
|
||||
@ -1399,6 +1400,7 @@ The commands are sorted on the non-optional part of their name.
|
||||
|:verbose| :verb[ose] execute command with 'verbose' set
|
||||
|:vertical| :vert[ical] make following command split vertically
|
||||
|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
|
||||
|:viusage| :viu[sage] overview of Normal mode commands
|
||||
|:view| :vie[w] edit a file read-only
|
||||
|:vmap| :vm[ap] like ":map" but for Visual mode
|
||||
|:vmapclear| :vmapc[lear] remove all mappings for Visual mode
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 7.0aa. Last change: 2004 Nov 18
|
||||
*insert.txt* For Vim version 7.0aa. Last change: 2004 Dec 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.0aa. Last change: 2004 Dec 19
|
||||
*options.txt* For Vim version 7.0aa. Last change: 2004 Dec 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -291,10 +291,11 @@ For buffer-local and window-local options:
|
||||
|
||||
Global options with a local value *global-local*
|
||||
|
||||
Options are global when you mostly use one value for all buffers. For some
|
||||
global options it's useful to sometimes have a different local value. You can
|
||||
set the local value with ":setlocal". That buffer will then use the local
|
||||
value, while other buffers continue using the global value.
|
||||
Options are global when you mostly use one value for all buffers and windows.
|
||||
For some global options it's useful to sometimes have a different local value.
|
||||
You can set the local value with ":setlocal". That buffer or window will then
|
||||
use the local value, while other buffers and windows continue using the global
|
||||
value.
|
||||
|
||||
For example, you have two windows, both on C source code. They use the global
|
||||
'makeprg' option. If you do this in one of the two windows: >
|
||||
@ -5486,7 +5487,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
*'statusline'* *'stl'* *E540* *E541* *E542*
|
||||
'statusline' 'stl' string (default empty)
|
||||
global
|
||||
global or local to window |global-local|
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+statusline|
|
||||
feature}
|
||||
@ -6670,6 +6671,21 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
:set wildmode=longest,list
|
||||
< Complete longest common string, then list alternatives.
|
||||
|
||||
*'wildoptions'* *'wop'*
|
||||
'wildoptions' 'wop' string (default "")
|
||||
global
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+wildignore|
|
||||
feature}
|
||||
A list of words that change how command line completion is done.
|
||||
Currently only one word is allowed:
|
||||
tagfile When using CTRL-D to list matching tags, the kind of
|
||||
tag and the file of the tag is listed. Only one match
|
||||
is displayed per line. Often used tag kinds are:
|
||||
d #define
|
||||
f function
|
||||
Also see |cmdline-completion|.
|
||||
|
||||
*'winaltkeys'* *'wak'*
|
||||
'winaltkeys' 'wak' string (default "menu")
|
||||
global
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*russian.txt* For Vim version 7.0aa. Last change: 2004 Jun 09
|
||||
*russian.txt* For Vim version 7.0aa. Last change: 2004 Dec 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Vassily Ragosin
|
||||
@ -70,14 +70,5 @@ In order to use the Russian documentation, make sure you have set the
|
||||
is related to a bug in GNU gettext library and may be fixed in the future
|
||||
releases of gettext.
|
||||
|
||||
-- When using the Win32 console version of Vim you may experience a problem
|
||||
with many Cyrillic glyphs being replaced by whitespaces for some unknown
|
||||
reason. Sergey Khorev suggested a registry hack to avoid this:
|
||||
|
||||
REGEDIT4
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
|
||||
"1252"="c_1251.nls"
|
||||
|
||||
===============================================================================
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
@ -948,6 +948,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
'wildignore' options.txt /*'wildignore'*
|
||||
'wildmenu' options.txt /*'wildmenu'*
|
||||
'wildmode' options.txt /*'wildmode'*
|
||||
'wildoptions' options.txt /*'wildoptions'*
|
||||
'wim' options.txt /*'wim'*
|
||||
'winaltkeys' options.txt /*'winaltkeys'*
|
||||
'window' vi_diff.txt /*'window'*
|
||||
@ -962,6 +963,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
'wmh' options.txt /*'wmh'*
|
||||
'wmnu' options.txt /*'wmnu'*
|
||||
'wmw' options.txt /*'wmw'*
|
||||
'wop' options.txt /*'wop'*
|
||||
'wrap' options.txt /*'wrap'*
|
||||
'wrapmargin' options.txt /*'wrapmargin'*
|
||||
'wrapscan' options.txt /*'wrapscan'*
|
||||
@ -1892,6 +1894,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:execute eval.txt /*:execute*
|
||||
:exi editing.txt /*:exi*
|
||||
:exit editing.txt /*:exit*
|
||||
:exu various.txt /*:exu*
|
||||
:exusage various.txt /*:exusage*
|
||||
:f editing.txt /*:f*
|
||||
:fi editing.txt /*:fi*
|
||||
:file editing.txt /*:file*
|
||||
@ -2514,6 +2518,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:view editing.txt /*:view*
|
||||
:visual editing.txt /*:visual*
|
||||
:visual_example visual.txt /*:visual_example*
|
||||
:viu various.txt /*:viu*
|
||||
:viusage various.txt /*:viusage*
|
||||
:vm map.txt /*:vm*
|
||||
:vmap map.txt /*:vmap*
|
||||
:vmap_l map.txt /*:vmap_l*
|
||||
@ -2698,6 +2704,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
<amatch> cmdline.txt /*<amatch>*
|
||||
<args> map.txt /*<args>*
|
||||
<bang> map.txt /*<bang>*
|
||||
<buffer=N> autocmd.txt /*<buffer=N>*
|
||||
<buffer=abuf> autocmd.txt /*<buffer=abuf>*
|
||||
<cfile> cmdline.txt /*<cfile>*
|
||||
<character> intro.txt /*<character>*
|
||||
<count> map.txt /*<count>*
|
||||
@ -3550,6 +3558,7 @@ E677 eval.txt /*E677*
|
||||
E678 pattern.txt /*E678*
|
||||
E679 syntax.txt /*E679*
|
||||
E68 pattern.txt /*E68*
|
||||
E680 autocmd.txt /*E680*
|
||||
E69 pattern.txt /*E69*
|
||||
E70 pattern.txt /*E70*
|
||||
E71 pattern.txt /*E71*
|
||||
@ -3995,6 +4004,9 @@ auto-format change.txt /*auto-format*
|
||||
auto-setting options.txt /*auto-setting*
|
||||
auto-shortname editing.txt /*auto-shortname*
|
||||
autocmd-<> tips.txt /*autocmd-<>*
|
||||
autocmd-buffer-local autocmd.txt /*autocmd-buffer-local*
|
||||
autocmd-buflocal autocmd.txt /*autocmd-buflocal*
|
||||
autocmd-changes autocmd.txt /*autocmd-changes*
|
||||
autocmd-define autocmd.txt /*autocmd-define*
|
||||
autocmd-events autocmd.txt /*autocmd-events*
|
||||
autocmd-execute autocmd.txt /*autocmd-execute*
|
||||
@ -4269,6 +4281,7 @@ cp-default version5.txt /*cp-default*
|
||||
cpo-! options.txt /*cpo-!*
|
||||
cpo-$ options.txt /*cpo-$*
|
||||
cpo-% options.txt /*cpo-%*
|
||||
cpo-+ options.txt /*cpo-+*
|
||||
cpo-< options.txt /*cpo-<*
|
||||
cpo-A options.txt /*cpo-A*
|
||||
cpo-B options.txt /*cpo-B*
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Dec 19
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Dec 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -30,10 +30,7 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Win32: Cannot edit a file starting with # with --remote. (Giuseppe Bilotta,
|
||||
Oct 6 2004)
|
||||
|
||||
Add Makefile code to install *-it.1 manual pages in .../man/it/man1/*.1
|
||||
Patch for mch_FullName() also in Vim 6.3? os_mswin.c
|
||||
|
||||
Win32: "gvim -V100" should use dialog with scrollbar. Using
|
||||
gui_mch_dialog() would be good, but need to move display_errors() to after
|
||||
@ -51,134 +48,18 @@ Included NetBeans patches (Gordon Prieur, Oct 20)
|
||||
Asked Gordon to send the differences again, some parts apparently are
|
||||
missing.
|
||||
|
||||
For version 7.0:
|
||||
PLANNED FOR VERSION 7.0:
|
||||
|
||||
- Include many PATCHES:
|
||||
- Patch for 'breakindent' option: repeat indent for wrapped line. (Vaclav
|
||||
Smilauer, 2004 Sep 13, fix Oct 31)
|
||||
7 Add 'taglistfiles' option, show file name and type when listing matching
|
||||
tags name with CTRL-D completion. Patch from Yegappan Lakshmanan.
|
||||
2004 Jul 11
|
||||
7 For Visual mode: Command to do a search for the string in the marked
|
||||
area. Only when fewer than two lines. Use "g/" and "gb". Patch from
|
||||
Yegappan Lakshmanan. 2004 Jul 11
|
||||
When more than two lines: perform a search in the Visual area only.
|
||||
8 Make 'statusline' local, so that each window can have a different
|
||||
value. But should it also be local to a buffer? (Yegappan Lakshmanan
|
||||
has a patch, 2004 Jul 11)
|
||||
8 Add buffer-local autocommands? Reduces overhead for autocommands that
|
||||
trigger often (inserting a character, switching mode).
|
||||
:au Event <buffer> do-something
|
||||
E.g.:
|
||||
:au BufEnter <buffer> menu enable ...
|
||||
:au BufLeave <buffer> menu disable ...
|
||||
Patch from Yakov Lerner, including test (2004 Jan 7).
|
||||
VimResized - When the Vim window has been resized (SIGWINCH)
|
||||
- VimResized - When the Vim window has been resized (SIGWINCH)
|
||||
patch from Yakov Lerner, 2003 July 24.
|
||||
Patch for specifying an expression for numbered lists. (Hugo Haas,
|
||||
- Patch for specifying an expression for numbered lists. (Hugo Haas,
|
||||
2004 Aug 7)
|
||||
--- awaiting updated patch ---
|
||||
7 Add patch from Wall for this one ( ~/Mail/oldmail/wall/in.00019 ):
|
||||
'flipcase' variable: upper/lowercase pairs.
|
||||
Insert comma's between pairs and allow a range, make it look like
|
||||
'isfname'. E.g. ":set flipcase=a-zA-Z,xX,23-33:143-153". The colon to
|
||||
separate the from and to part is optional.
|
||||
Resp: no time now.
|
||||
8 Add GTK 2.3 file dialog support. Patch by Grahame Bowland, 2004 Mar 15,
|
||||
but it doesn't use "initdir" or "dflt". (will update patch)
|
||||
8 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
|
||||
Aric Blumer has a patch for this.
|
||||
He will update the patch for 6.3.
|
||||
Autocommands:
|
||||
7 Completion of network shares, patch by Yasuhiro Matsumoto.
|
||||
Update 2004 Sep 6.
|
||||
How does this work? Missing comments.
|
||||
gettext() Translate a message. (Patch from Yasuhiro Matsumoto)
|
||||
Update 2004 Sep 10
|
||||
More docs. Search in 'runtimepath'?
|
||||
How to get the messages into the .po files?
|
||||
--- did not respond (yet) --
|
||||
7 Make "5dd" on last-but-one-line not delete anything (Vi compatible).
|
||||
Add flag in 'cpoptions' for this. When not present, "2dd" in the last
|
||||
line should delete the last line. Patch from greenx 2002 Apr 11.
|
||||
8 Accelerators don't work in a dialog. Include patch from Martin Dalecki
|
||||
(Jan 3, tested by David Harrison). Should work with Alt-o then.
|
||||
7 Use accelerators for the Motif file selection dialog. Patch from
|
||||
Martin Dalecki 2002 Jan 11.
|
||||
8 Add a few more command names to the menus. Patch from Jiri Brezina
|
||||
(28 feb 2002).
|
||||
7 ATTENTION dialog choices are more logical when "Delete it' appears
|
||||
before "Quit". Patch by Robert Webb, 2004 May 3.
|
||||
- Include flipcase patch: ~/vim/patches/wall.flipcase2 ? Make it work
|
||||
for multi-byte characters.
|
||||
- Win32: add options to print dialog. Patch from Vipin Aravind.
|
||||
- Patch to add highlighting for whitespace. (Tom Schumm, 2003 Jul 5)
|
||||
use the patch that keeps using HLF_8 if HLF_WS has not
|
||||
been given values.
|
||||
Add section in help files for these highlight groups?
|
||||
8 "fg" and "bg" don't work in an xterm. Get default colors from xterm
|
||||
with an ESC sequence. Ideas in: ~/vim/patches/vikas.xtermcolors .
|
||||
7 Add "DefaultFG" and "DefaultBG" for the colors of the menu. (Martin
|
||||
Dalecki has a patch for Motif)
|
||||
- Add possibility to highlight specific columns (for Fortran). Or put a
|
||||
line in between columns (e.g. for 'textwidth').
|
||||
Patch to add 'hlcolumn' from Vit Stradal, 2004 May 20.
|
||||
8 Add functions:
|
||||
confirm() add "flags" argument, with 'v' for vertical
|
||||
layout and 'c' for console dialog. (Haegg)
|
||||
Flemming Madsen has a patch for the 'c' flag
|
||||
(2003 May 13)
|
||||
system({cmd}, {expr}) Filter {expr} through the shell command
|
||||
{cmd} and return the result.
|
||||
(Patch from Yegappan Lakshmanan)
|
||||
raisewin() raise gvim window (see HierAssist patch for
|
||||
Tcl implementation ~/vim/HierAssist/ )
|
||||
7 Add patch from Benoit Cerrina to integrate Vim and Perl functions
|
||||
better. Now also works for Ruby (2001 Nov 10)
|
||||
- Patch from Herculano de Lima Einloft Neto for better formatting of the
|
||||
quickfix window (2004 dec 2)
|
||||
7 Motif: use the menu font consistently. Patch from Martin Dalecki 2002
|
||||
Jan 11.
|
||||
- Motif: add 3D shading for the menu entries? Patch from Martin Dalecki.
|
||||
7 When 'rightleft' is set, the search pattern should be displayed right
|
||||
to left as well? See patch of Dec 26. (Nadim Shaikli)
|
||||
8 Lock all used memory so that it doesn't get swapped to disk (uncrypted).
|
||||
Patch by Jason Holt, 2003 May 23.
|
||||
7 Support a stronger encryption. Jason Holt implemented AES (May 6 2003).
|
||||
7 Add ! register, for shell commands. (patch from Grenie)
|
||||
8 In the gzip plugin, also recognize *.gz.orig, *.gz.bak, etc. Like it's
|
||||
done for filetype detection. Patch from Walter Briscoe, 2003 Jul 1.
|
||||
7 Add a "-@ filelist" argument: read file names from a file. (David
|
||||
Kotchan has a patch for it)
|
||||
8 Add term entries for function keys on xterm with alt and ctrl (new in
|
||||
pl 94). E.g., Control adds ";5" in "<Esc>[20;5~". Find a generic way
|
||||
to prepend a modifier in console mode, to avoid having to specify each
|
||||
individual modified key.
|
||||
Steve Wall has a patch (2002 Mar 12) for adding function keys up to 37,
|
||||
with modifiers.
|
||||
8 Include a connection to an external program through a pipe? See
|
||||
patches from Felbinger for a mathematica interface.
|
||||
Or use emacs server kind of thing?
|
||||
7 Add ":justify" command. Patch from Vit Stradal 2002 Nov 25.
|
||||
- findmatch() should be adjusted for Lisp. See remark at
|
||||
get_lisp_indent(). Esp. \( and \) should be skipped. (Dorai Sitaram,
|
||||
incomplete patch Mar 18)
|
||||
- Set user variables to the names of the actually used user vimrc file,
|
||||
the first directory looked for user plugins/syntax files.
|
||||
$MYVIMRC for .vimrc, $MYGVIMRC for .gvimrc, $MYRUNTIME/plugin for
|
||||
runtime files?
|
||||
Also: when the environment variable exists, use it. If it doesn't
|
||||
exist, set it. Requires good names: $VIM_USER_VIMRC $VIM_USER_DIR
|
||||
- Add the ":cbuffer" command: read list of errors from a buffer instead
|
||||
of from a file. (Yegappan Lakshmanan, Oct 31, but avoid the temp file)
|
||||
Perhaps ":cexpr" could read from a list?
|
||||
Add %b to 'errorformat': buffer number. (Yegappan Lakshmanan / Suresh
|
||||
Govindachar)
|
||||
- The Replace dialog takes "\r" literal, unless "replace all" is used.
|
||||
Need to escape backslashes.
|
||||
Win32: the text to replace with isn't remembered.
|
||||
- For GUI Find/Replace dialog support using a regexp. Patch for Motif
|
||||
and GTK by degreneir (nov 10 and nov 18).
|
||||
- Use a builtin grep command for ":grep"? Makes it possible to add the
|
||||
column number. Can use the code of ":helpgrep".
|
||||
Patch from Yegappan Lakshmanan, Nov 4. Or use ":grep" and set 'grepprg'
|
||||
@ -324,6 +205,8 @@ After including patches:
|
||||
- Add Lua interface? (Wolfgang Oertl)
|
||||
- "onemore" flag in 'virtualedit': move cursor past end of line. Patch by
|
||||
Mattias Flodin (2004 Jul 30)
|
||||
- In a :s command multi-byte characters should also be upper/lower cased
|
||||
with \u, \U, etc.
|
||||
|
||||
Support ":set syntax=cpp.doxygen"? Suggested patch by Michael Geddes (9 Aug
|
||||
2004). Should also work for 'filetype'.
|
||||
@ -353,6 +236,107 @@ profiling for Vim script?
|
||||
Mac: problem with Xcode, Vim doesn't continue until the next click.
|
||||
Apparently hangs in handle_drop(). A PostEvent() avoids it. (Da Woon Jung)
|
||||
|
||||
Awaiting updated patches:
|
||||
--- awaiting updated patch ---
|
||||
7 Add patch from Wall for this one ( ~/Mail/oldmail/wall/in.00019 ):
|
||||
'flipcase' variable: upper/lowercase pairs.
|
||||
Insert comma's between pairs and allow a range, make it look like
|
||||
'isfname'. E.g. ":set flipcase=a-zA-Z,xX,23-33:143-153". The colon to
|
||||
separate the from and to part is optional.
|
||||
Resp: no time now.
|
||||
8 Add GTK 2.3 file dialog support. Patch by Grahame Bowland, 2004 Mar
|
||||
15, but it doesn't use "initdir" or "dflt". (will update patch)
|
||||
8 Add ":n" to fnamemodify(): normalize path, remove "../" when possible.
|
||||
Aric Blumer has a patch for this.
|
||||
He will update the patch for 6.3.
|
||||
Autocommands:
|
||||
7 Completion of network shares, patch by Yasuhiro Matsumoto.
|
||||
Update 2004 Sep 6.
|
||||
How does this work? Missing comments.
|
||||
gettext() Translate a message. (Patch from Yasuhiro Matsumoto)
|
||||
Update 2004 Sep 10
|
||||
More docs. Search in 'runtimepath'?
|
||||
How to get the messages into the .po files?
|
||||
--- did not respond (yet) --
|
||||
- Patch for 'breakindent' option: repeat indent for wrapped line. (Vaclav
|
||||
Smilauer, 2004 Sep 13, fix Oct 31)
|
||||
Asked for improvements 2004 Dec 20.
|
||||
7 Make "5dd" on last-but-one-line not delete anything (Vi compatible).
|
||||
Add flag in 'cpoptions' for this. When not present, "2dd" in the last
|
||||
line should delete the last line. Patch from greenx 2002 Apr 11.
|
||||
8 Accelerators don't work in a dialog. Include patch from Martin Dalecki
|
||||
(Jan 3, tested by David Harrison). Should work with Alt-o then.
|
||||
7 Use accelerators for the Motif file selection dialog. Patch from
|
||||
Martin Dalecki 2002 Jan 11.
|
||||
8 Add a few more command names to the menus. Patch from Jiri Brezina
|
||||
(28 feb 2002).
|
||||
7 ATTENTION dialog choices are more logical when "Delete it' appears
|
||||
before "Quit". Patch by Robert Webb, 2004 May 3.
|
||||
- Include flipcase patch: ~/vim/patches/wall.flipcase2 ? Make it work
|
||||
for multi-byte characters.
|
||||
- Win32: add options to print dialog. Patch from Vipin Aravind.
|
||||
- Patch to add highlighting for whitespace. (Tom Schumm, 2003 Jul 5)
|
||||
use the patch that keeps using HLF_8 if HLF_WS has not
|
||||
been given values.
|
||||
Add section in help files for these highlight groups?
|
||||
8 "fg" and "bg" don't work in an xterm. Get default colors from xterm
|
||||
with an ESC sequence. Ideas in: ~/vim/patches/vikas.xtermcolors .
|
||||
7 Add "DefaultFG" and "DefaultBG" for the colors of the menu. (Martin
|
||||
Dalecki has a patch for Motif)
|
||||
- Add possibility to highlight specific columns (for Fortran). Or put a
|
||||
line in between columns (e.g. for 'textwidth').
|
||||
Patch to add 'hlcolumn' from Vit Stradal, 2004 May 20.
|
||||
8 Add functions:
|
||||
confirm() add "flags" argument, with 'v' for vertical
|
||||
layout and 'c' for console dialog. (Haegg)
|
||||
Flemming Madsen has a patch for the 'c' flag
|
||||
(2003 May 13)
|
||||
system({cmd}, {expr}) Filter {expr} through the shell command
|
||||
{cmd} and return the result.
|
||||
(Patch from Yegappan Lakshmanan)
|
||||
raisewin() raise gvim window (see HierAssist patch for
|
||||
Tcl implementation ~/vim/HierAssist/ )
|
||||
7 Add patch from Benoit Cerrina to integrate Vim and Perl functions
|
||||
better. Now also works for Ruby (2001 Nov 10)
|
||||
- Patch from Herculano de Lima Einloft Neto for better formatting of the
|
||||
quickfix window (2004 dec 2)
|
||||
7 Motif: use the menu font consistently. Patch from Martin Dalecki 2002
|
||||
Jan 11.
|
||||
- Motif: add 3D shading for the menu entries? Patch from Martin Dalecki.
|
||||
7 When 'rightleft' is set, the search pattern should be displayed right
|
||||
to left as well? See patch of Dec 26. (Nadim Shaikli)
|
||||
8 Lock all used memory so that it doesn't get swapped to disk (uncrypted).
|
||||
Patch by Jason Holt, 2003 May 23.
|
||||
7 Support a stronger encryption. Jason Holt implemented AES (May 6 2003).
|
||||
7 Add ! register, for shell commands. (patch from Grenie)
|
||||
8 In the gzip plugin, also recognize *.gz.orig, *.gz.bak, etc. Like it's
|
||||
done for filetype detection. Patch from Walter Briscoe, 2003 Jul 1.
|
||||
7 Add a "-@ filelist" argument: read file names from a file. (David
|
||||
Kotchan has a patch for it)
|
||||
8 Add term entries for function keys on xterm with alt and ctrl (new in
|
||||
pl 94). E.g., Control adds ";5" in "<Esc>[20;5~". Find a generic way
|
||||
to prepend a modifier in console mode, to avoid having to specify each
|
||||
individual modified key.
|
||||
Steve Wall has a patch (2002 Mar 12) for adding function keys up to 37,
|
||||
with modifiers.
|
||||
8 Include a connection to an external program through a pipe? See
|
||||
patches from Felbinger for a mathematica interface.
|
||||
Or use emacs server kind of thing?
|
||||
7 Add ":justify" command. Patch from Vit Stradal 2002 Nov 25.
|
||||
- findmatch() should be adjusted for Lisp. See remark at
|
||||
get_lisp_indent(). Esp. \( and \) should be skipped. (Dorai Sitaram,
|
||||
incomplete patch Mar 18)
|
||||
- Set user variables to the names of the actually used user vimrc file,
|
||||
the first directory looked for user plugins/syntax files.
|
||||
$MYVIMRC for .vimrc, $MYGVIMRC for .gvimrc, $MYRUNTIME/plugin for
|
||||
runtime files?
|
||||
Also: when the environment variable exists, use it. If it doesn't
|
||||
exist, set it. Requires good names: $VIM_USER_VIMRC $VIM_USER_DIR
|
||||
- The Replace dialog takes "\r" literal, unless "replace all" is used.
|
||||
Need to escape backslashes.
|
||||
Win32: the text to replace with isn't remembered.
|
||||
- For GUI Find/Replace dialog support using a regexp. Patch for Motif
|
||||
and GTK by degreneir (nov 10 and nov 18).
|
||||
|
||||
Vi incompatibility:
|
||||
9 In Ex mode, "u" undoes all changes, not just the last one. (John Cowan)
|
||||
@ -1267,6 +1251,7 @@ Diff mode:
|
||||
Folding:
|
||||
(commands still available: zg zG zI zJ zK zp zP zq zQ zV zw zW zy zY;
|
||||
secondary: zB zS zT zZ)
|
||||
8 Add "z/" and "z?" for searching in not folded text only.
|
||||
8 Add different highlighting for a fold line depending on the fold level.
|
||||
(Noel Henson)
|
||||
8 When a closed fold is displayed open because of 'foldminlines', the
|
||||
@ -2053,9 +2038,10 @@ VMS:
|
||||
|
||||
|
||||
Autocommands:
|
||||
9 Make sure that side effects of autocommands are handled correctly. Don't
|
||||
execute autocommands when a buffer or window is halfway some changes.
|
||||
Move all apply_autocmds() calls to a higher level where needed.
|
||||
7 For autocommand events that trigger multiple times per buffer (e.g.,
|
||||
CursorHold), go through the list once and cache the result for a specific
|
||||
buffer. Invalidate the cache when adding/deleting autocommands or
|
||||
changing the buffer name.
|
||||
8 Add ScriptReadCmd event: used to load remote Vim scripts, e.g.
|
||||
"vim -u http://mach/path/vimrc".
|
||||
8 Use another option than 'updatetime' for the CursorHold event. The two
|
||||
@ -2626,6 +2612,8 @@ Incsearch:
|
||||
|
||||
|
||||
Searching:
|
||||
7 Add "g/" and "gb" to search for a pattern in the Visually selected text?
|
||||
"g?" is already used for rot13.
|
||||
8 Add a mechanism for recursiveness: "\(([^()]*\@@[^()]*)\)\@r". \@@ stands
|
||||
for "go recursive here" and \@r marks the recursive atom.
|
||||
7 Add an item stack to allow matching (). One side is "push X on
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
||||
*various.txt* For Vim version 7.0aa. Last change: 2004 Dec 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -595,6 +595,13 @@ g CTRL-A Only when Vim was compiled with MEM_PROFILING defined
|
||||
compresses the help files).
|
||||
{not in Vi}
|
||||
|
||||
*:exu* *:exusage*
|
||||
:exu[sage] Show help on Ex commands. Added to simulate the Nvi
|
||||
command. {not in Vi}
|
||||
|
||||
*:viu* *:viusage*
|
||||
:viu[sage] Show help on Normal mode commands. Added to simulate
|
||||
the Nvi command. {not in Vi}
|
||||
|
||||
When no argument is given to |:help| the file given with the 'helpfile' option
|
||||
will be opened. Otherwise the specified tag is searched for in all "doc/tags"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Dec 19
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Dec 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -130,6 +130,8 @@ Translated manual pages *new-manpage-trans*
|
||||
The manual page of Vim and associated programs is now also available in
|
||||
Italian (translated by Antonio Colombo). More languages will follow.
|
||||
|
||||
The Unix Makefile installs the Italian manual pages in .../man/it/man1/.
|
||||
|
||||
|
||||
Various new items *new-items-7*
|
||||
-----------------
|
||||
@ -153,7 +155,9 @@ Options: ~
|
||||
'printmbfont' font names to be used for CJK output of :hardcopy
|
||||
'fsync' Whether fsync() is called after writing a file.
|
||||
(Ciaran McCreesh)
|
||||
|
||||
'wildoptions' "tagfile" value enables listing the file name of
|
||||
matching tags for CTRL-D command line completion.
|
||||
(based on an idea from Yegappan Lakshmanan)
|
||||
|
||||
Ex commands: ~
|
||||
|
||||
@ -172,6 +176,10 @@ Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
||||
|
||||
|:sandbox| Command modifier: execute the argument in the sandbox.
|
||||
|
||||
|:exusage| Help for Ex commands (Nvi command).
|
||||
|
||||
|:viusage| Help for Vi commands (Nvi command).
|
||||
|
||||
|
||||
New functions: ~
|
||||
|
||||
@ -259,6 +267,10 @@ Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
|
||||
To be used to set the cursor shape to a bar or a block. No default values,
|
||||
they are not supported by termcap/terminfo.
|
||||
|
||||
Autocommands can be defined local to a buffer. This means they will also work
|
||||
when the buffer does not have a name or no specific name. See
|
||||
|autocmd-buflocal|. (Yakov Lerner)
|
||||
|
||||
==============================================================================
|
||||
IMPROVEMENTS *improvements-7*
|
||||
|
||||
@ -310,6 +322,9 @@ upper case. Add color support to the builtin vt320 terminal codes.
|
||||
For the '%' item in 'viminfo', allow a number to set a maximum for the number
|
||||
of buffers.
|
||||
|
||||
The 'statusline' option can be local to the window, so that each window can
|
||||
have a different value. (partly by Yegappan Lakshmanan)
|
||||
|
||||
When a file looks like a shell script, check for an "exec" command that starts
|
||||
the tcl interpreter. (suggested by Alexios Zavras)
|
||||
|
||||
@ -564,4 +579,7 @@ the values when recovering.
|
||||
":bufdo g/something/p" overwrites each last printed text line with the file
|
||||
message for the next buffer. Temporarily clear 'shortmess' to avoid that.
|
||||
|
||||
Win32: Cannot edit a file starting with # with --remote. Do escape % and #
|
||||
when building the ":drop" command.
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 7.0aa. Last change: 2004 Apr 29
|
||||
*windows.txt* For Vim version 7.0aa. Last change: 2004 Dec 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -101,6 +101,8 @@ when the last window also has a status line:
|
||||
'laststatus' = 2 always a status line
|
||||
|
||||
You can change the contents of the status line with the 'statusline' option.
|
||||
This option can be local to the window, so that you can have a different
|
||||
status line in each window.
|
||||
|
||||
Normally, inversion is used to display the status line. This can be changed
|
||||
with the 's' character in the 'highlight' option. For example, "sb" sets it to
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
" These commands create the option window.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2004 Dec 09
|
||||
" Last Change: 2004 Dec 20
|
||||
|
||||
" If there already is an option window, jump to that one.
|
||||
if bufwinnr("option-window") > 0
|
||||
@ -925,6 +925,10 @@ call append("$", "wildcharm\tlike 'wildchar' but can also be used in a mapping")
|
||||
call append("$", " \tset wcm=" . &wcm)
|
||||
call append("$", "wildmode\tspecifies how command line completion works")
|
||||
call <SID>OptionG("wim", &wim)
|
||||
if has("wildoptions")
|
||||
call append("$", "wildoptions\tempty or \"tagfile\" to list file name of matching tags")
|
||||
call <SID>OptionG("wop", &wop)
|
||||
endif
|
||||
call append("$", "suffixes\tlist of file name extensions that have a lower priority")
|
||||
call <SID>OptionG("su", &su)
|
||||
if has("file_in_path")
|
||||
|
||||
Reference in New Issue
Block a user