diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2015-05-02 09:19:19 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-05-24 17:05:12 -0400 |
commit | d9f97e3026983863d70cbae670bf8277143c8434 (patch) | |
tree | 3634f90a5fc71d0376b6687cdb027aa458fe287a /runtime/doc | |
parent | 8ef5a61dd6bcaa24d26e450041bcba821fa3dbc7 (diff) | |
download | rneovim-d9f97e3026983863d70cbae670bf8277143c8434.tar.gz rneovim-d9f97e3026983863d70cbae670bf8277143c8434.tar.bz2 rneovim-d9f97e3026983863d70cbae670bf8277143c8434.zip |
completion: Add v:completed_item feature #2563
Reviewed-by: Michael Reed <m.reed@mykolab.com>
Reviewed-by: Luke Andrew <luke.github@la.id.au>
Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
Reviewed-by: Florian Walch <florian@fwalch.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/autocmd.txt | 2 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 9224151cee..af9676272f 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -506,6 +506,8 @@ ColorScheme After loading a color scheme. |:colorscheme| CompleteDone After Insert mode completion is done. Either when something was completed or abandoning completion. |ins-completion| + The |v:completed_item| variable contains the + completed item. *CursorHold* CursorHold When the user doesn't press a key for the time diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index d83d4c0666..81a965d0c6 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1326,6 +1326,12 @@ v:cmdbang Set like v:cmdarg for a file read/write command. When a "!" can only be used in autocommands. For user commands |<bang>| can be used. + *v:completed_item* *completed_item-variable* +v:completed_item + Dictionary containing the most recent |complete-items| after + |CompleteDone|. Empty if the completion failed, or after + leaving and re-entering insert mode. + *v:count* *count-variable* v:count The count given for the last Normal mode command. Can be used to get the count before a mapping. Read-only. Example: > |