diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-11 12:46:08 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-11 12:46:08 -0500 |
commit | b1e06c6d60f4947794851982eb73db6ef3b64fbf (patch) | |
tree | 22feb7e133de02452e2dc437d9152b34a13376c8 /runtime | |
parent | b027e1ed0c92ed49961ecbd24228967d916c2bbd (diff) | |
parent | bffea01c89bfe2c93169f65b50653d63dcb8e035 (diff) | |
download | rneovim-b1e06c6d60f4947794851982eb73db6ef3b64fbf.tar.gz rneovim-b1e06c6d60f4947794851982eb73db6ef3b64fbf.tar.bz2 rneovim-b1e06c6d60f4947794851982eb73db6ef3b64fbf.zip |
Merge pull request #1282 from splinterofchaos/cmd-undef
vim-patch:7.4.414 + vim-patch:7.4.415
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 451e60514c..55bd508109 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -278,6 +278,7 @@ Name triggered by ~ |ShellCmdPost| after executing a shell command |ShellFilterPost| after filtering with a shell command +|CmdUndefined| a user command is used but it isn't defined |FuncUndefined| a user function is used but it isn't defined |SpellFileMissing| a spell file is used but it can't be found |SourcePre| before sourcing a Vim script @@ -466,6 +467,16 @@ BufWriteCmd Before writing the whole buffer to a file. *BufWritePost* BufWritePost After writing the whole buffer to a file (should undo the commands for BufWritePre). + *CmdUndefined* +CmdUndefined When a user command is used but it isn't + defined. Useful for defining a command only + when it's used. The pattern is matched + against the command name. Both <amatch> and + <afile> are set to the name of the command. + NOTE: Autocompletion won't work until the + command is defined. An alternative is to + always define the user command and have it + invoke an autoloaded function. See |autoload|. *CmdwinEnter* CmdwinEnter After entering the command-line window. Useful for setting options specifically for @@ -671,6 +682,8 @@ FuncUndefined When a user function is used but it isn't when it's used. The pattern is matched against the function name. Both <amatch> and <afile> are set to the name of the function. + NOTE: When writing Vim scripts a better + alternative is to use an autoloaded function. See |autoload-functions|. *GUIEnter* GUIEnter After starting the GUI successfully, and after |