# HG changeset patch # User vimboss # Date 1134336812 0 # Node ID de152391f6f9c86135f8bc7b4ba4063b1f8b318c # Parent bc49ed25543d65e2f852d75381f18ddd0061c91f updated for version 7.0167 diff --git a/Filelist b/Filelist --- a/Filelist +++ b/Filelist @@ -444,6 +444,7 @@ RT_ALL = \ runtime/gvimrc_example.vim \ runtime/macros/README.txt \ runtime/macros/dvorak \ + runtime/macros/editexisting.vim \ runtime/macros/hanoi/click.me \ runtime/macros/hanoi/hanoi.vim \ runtime/macros/hanoi/poster \ diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 7.0aa. Last change: 2005 Dec 07 +*autocmd.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -18,6 +18,7 @@ 7. Buffer-local autocommands |autocmd-b 8. Groups |autocmd-groups| 9. Executing autocommands |autocmd-execute| 10. Using autocommands |autocmd-use| +11. Disabling autocommands |autocmd-disable| {Vi does not have any of these commands} {only when the |+autocmd| feature has not been disabled at compile time} @@ -655,10 +656,12 @@ SwapExists Detected an existing swap f select a way to handle the situation, when Vim would ask the user what to do. The |v:swapname| variable holds the name of - the swap file found. - The |v:swapchoice| variable should be set to - a string with one character to tell what Vim - should do next: + the swap file found, the file being + edited. |v:swapcommand| may contain a command + to be executed in the opened file. + The commands should set the |v:swapchoice| + variable to a string with one character to + tell Vim what should be done next: 'o' open read-only 'e' edit the file anyway 'r' recover @@ -1052,10 +1055,8 @@ It's possible to use the ":au" command i self-modifying command! This can be useful for an autocommand that should execute only once. -There is currently no way to disable the autocommands. If you want to write a -file without executing the autocommands for that type of file, write it under -another name and rename it with a shell command. In some situations you can -use the 'eventignore' option. +If you want to skip autocommands for one command, use the |:noautocmd| command +modifier or the 'eventignore' option. Note: When reading a file (with ":read file" or with a filter command) and the last line in the file does not have an , Vim remembers this. At the next @@ -1172,5 +1173,22 @@ The |v:cmdbang| variable is one when "!" See the $VIMRUNTIME/plugin/netrw.vim for examples. +============================================================================== +11. Disabling autocommands *autocmd-disable* + +To disable autocommands for some time use the 'eventignore' option. Note that +this may cause unexpected behavior, make sure you restore 'eventignore' +afterwards, using a |:try| block with |:finally|. + + *:noautocmd* *:noa* +To disable autocommands for just one command use the ":noautocmd" command +modifier. This will set 'eventignore' to "all" for the duration of the +following command. Example: > + + :noautocmd w fname.gz + +This will write the file without triggering the autocommands defined by the +gzip plugin. + vim:tw=78:ts=8:ft=help:norl: diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2005 Dec 07 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1418,6 +1418,12 @@ v:swapchoice |SwapExists| autocommands c results in the user being asked, as would happen when there is no SwapExists autocommand. The default is empty. + *v:swapcommand* *swapcommand-variable* +v:swapcommand Normal mode ommand to be executed after a file has been + opened. Can be used for a |SwapExists| autocommand to have + another Vim open the file and jump to the right place. For + example, when jumping to a tag the value is ":tag tagname\r". + *v:termresponse* *termresponse-variable* v:termresponse The escape sequence returned by the terminal for the |t_RV| termcap entry. It is set when Vim receives an escape sequence diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 7.0aa. Last change: 2005 Nov 30 +*options.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1819,7 +1819,7 @@ A jump table for the options with a shor F When included, a ":write" command with a file name argument will set the file name for the current buffer, if the current buffer doesn't have a file name - yet. + yet. Also see |cpo-P|. *cpo-g* g Goto line 1 when using ":edit" without argument. *cpo-H* @@ -1888,6 +1888,11 @@ A jump table for the options with a shor *cpo-p* p Vi compatible Lisp indenting. When not present, a slightly better algorithm is used. + *cpo-P* + P When included, a ":write" command that appends to a + file will set the file name for the current buffer, if + the current buffer doesn't have a file name yet and + the 'F' flag is also included |cpo-F|. *cpo-q* q When joining multiple lines leave the cursor at the position where it would be when joining two lines. diff --git a/runtime/doc/tags b/runtime/doc/tags --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -2143,6 +2143,7 @@ 90.5 usr_90.txt /*90.5* :map-