aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-02-06 13:21:53 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-02-12 23:21:09 -0500
commit2d22e1f035ee5ae165f636ad7550fbd83013af71 (patch)
tree35e4331e36b447a266ffd5bab2fd92d0efdf7334 /runtime
parent5483cb4e62b066adb2c482c338fb7eba672bdcc2 (diff)
downloadrneovim-2d22e1f035ee5ae165f636ad7550fbd83013af71.tar.gz
rneovim-2d22e1f035ee5ae165f636ad7550fbd83013af71.tar.bz2
rneovim-2d22e1f035ee5ae165f636ad7550fbd83013af71.zip
vim-patch:7.4.601 #1950
Problem: It is not possible to have feedkeys() insert characters. Solution: Add the 'i' flag. https://code.google.com/p/vim/source/detail?r=v7-4-601
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 456cd5dff6..c4d84c36c3 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2959,9 +2959,12 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*
feedkeys({string} [, {mode}]) *feedkeys()*
Characters in {string} are queued for processing as if they
- come from a mapping or were typed by the user. They are added
- to the end of the typeahead buffer, thus if a mapping is still
- being executed these characters come after them.
+ come from a mapping or were typed by the user.
+ By default the string is added to the end of the typeahead
+ buffer, thus if a mapping is still being executed the
+ characters come after them. Use the 'i' flag to insert before
+ other characters, they will be executed next, before any
+ characters from a mapping.
The function does not wait for processing of keys contained in
{string}.
To include special keys into {string}, use double-quotes
@@ -2975,6 +2978,7 @@ feedkeys({string} [, {mode}]) *feedkeys()*
't' Handle keys as if typed; otherwise they are handled as
if coming from a mapping. This matters for undo,
opening folds, etc.
+ 'i' Insert the string instead of appending (see above).
Return value is always 0.
filereadable({file}) *filereadable()*