In autocmd.txt, TextChanged and TextChangedI are not listed in :h autocommand-events. In eval.txt, there are some inconsistent notation ([expr] -> [{expr}]).
Please check the attached patch. -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
diff -r 486655e0c5a2 runtime/doc/autocmd.txt --- a/runtime/doc/autocmd.txt Thu Nov 28 19:27:30 2013 +0100 +++ b/runtime/doc/autocmd.txt Mon Dec 02 20:24:36 2013 +0900 @@ -316,6 +316,9 @@ |MenuPopup| just before showing the popup menu |CompleteDone| after Insert mode completion is done +|TextChanged| after a change was made to text +|TextChangedI| after a change was made to text in Insert mode + |User| to be used in combination with ":doautocmd" diff -r 486655e0c5a2 runtime/doc/eval.txt --- a/runtime/doc/eval.txt Thu Nov 28 19:27:30 2013 +0100 +++ b/runtime/doc/eval.txt Mon Dec 02 20:24:36 2013 +0900 @@ -1788,7 +1788,7 @@ List lines {lnum} to {end} of buffer {expr} getbufvar( {expr}, {varname} [, {def}]) any variable {varname} in buffer {expr} -getchar( [expr]) Number get one character from the user +getchar( [{expr}]) Number get one character from the user getcharmod( ) Number modifiers for the last typed character getcmdline() String return the current command-line getcmdpos() Number return cursor position in command-line @@ -1882,7 +1882,7 @@ min( {list}) Number minimum value of items in {list} mkdir( {name} [, {path} [, {prot}]]) Number create directory {name} -mode( [expr]) String current editing mode +mode( [{expr}]) String current editing mode mzeval( {expr}) any evaluate |MzScheme| expression nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} nr2char( {expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr} @@ -2006,7 +2006,7 @@ undotree() List undo file tree values( {dict}) List values in {dict} virtcol( {expr}) Number screen column of cursor or mark -visualmode( [expr]) String last visual mode used +visualmode( [{expr}]) String last visual mode used wildmenumode() Number whether 'wildmenu' mode is active winbufnr( {nr}) Number buffer number of window {nr} wincol() Number window column of the cursor @@ -3192,12 +3192,12 @@ :let bufmodified = getbufvar(1, "&mod") :echo "todo myvar = " . getbufvar("todo", "myvar") < -getchar([expr]) *getchar()* +getchar([{expr}]) *getchar()* Get a single character from the user or input stream. - If [expr] is omitted, wait until a character is available. - If [expr] is 0, only get a character when one is available. + If {expr} is omitted, wait until a character is available. + If {expr} is 0, only get a character when one is available. Return zero otherwise. - If [expr] is 1, only check if a character is available, it is + If {expr} is 1, only check if a character is available, it is not consumed. Return zero if no character available. Without {expr} and when {expr} is 0 a whole character or @@ -4361,8 +4361,8 @@ :if exists("*mkdir") < *mode()* -mode([expr]) Return a string that indicates the current mode. - If [expr] is supplied and it evaluates to a non-zero Number or +mode([{expr}]) Return a string that indicates the current mode. + If {expr} is supplied and it evaluates to a non-zero Number or a non-empty String (|non-zero-arg|), then the full mode is returned, otherwise only the first letter is returned. Note that " " and "0" are also non-empty strings. @@ -6195,7 +6195,7 @@ echo max(map(range(1, line('$')), "virtcol([v:val, '$'])")) -visualmode([expr]) *visualmode()* +visualmode([{expr}]) *visualmode()* The result is a String, which describes the last Visual mode used in the current buffer. Initially it returns an empty string, but once Visual mode has been used, it returns "v", @@ -6210,7 +6210,7 @@ If Visual mode is active, use |mode()| to get the Visual mode (e.g., in a |:vmap|). *non-zero-arg* - If [expr] is supplied and it evaluates to a non-zero Number or + If {expr} is supplied and it evaluates to a non-zero Number or a non-empty String, then the Visual mode will be cleared and the old value is returned. Note that " " and "0" are also non-empty strings, thus cause the mode to be cleared. A List,