summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2011-10-20 21:58:34 +0200
committerBram Moolenaar <bram@vim.org>2011-10-20 21:58:34 +0200
commit4c11753b6eecd3bb14e7d5ba7adc311a0449d375 (patch)
tree6a9b9aaa4e562313ed3f177f51726c3412b6bd9e /runtime
parente144454509ca323ae79f32ca8764372de3344738 (diff)
downloadvim-4c11753b6eecd3bb14e7d5ba7adc311a0449d375.tar.gz
updated for version 7.3.346v7.3.346v7-3-346
Problem: It's hard to test netbeans commands. Solution: Process netbeans commands after :sleep. (Xavier de Gaye)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/netbeans.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/runtime/doc/netbeans.txt b/runtime/doc/netbeans.txt
index 6b186b34..8798ee13 100644
--- a/runtime/doc/netbeans.txt
+++ b/runtime/doc/netbeans.txt
@@ -263,6 +263,12 @@ The messages are currently sent over a socket. Since the messages are in
plain UTF-8 text this protocol could also be used with any other communication
mechanism.
+Netbeans messages are processed when Vim is idle, waiting for user input.
+When Vim is run in non-interactive mode, for example when running an automated
+test case that sources a Vim script, the idle loop may not be called often
+enough. In that case, insert |sleep| commands in the Vim script. The |sleep|
+command does invoke Netbeans messages processing.
+
6.1 Kinds of messages |nb-messages|
6.2 Terms |nb-terms|
6.3 Commands |nb-commands|
@@ -833,11 +839,16 @@ These errors occur when a message violates the protocol:
signs.
*:nbkey*
-:nb[key] {key} Pass the {key} to the Vim Controller for processing
-
-When a hot-key has been installed with the specialKeys command, this command
-can be used to generate a hotkey messages to the Vim Controller. The events
-newDotAndMark, keyCommand and keyAtPos are generated (in this order).
+:nb[key] {key} Pass the {key} to the Vim Controller for processing.
+ When a hot-key has been installed with the specialKeys
+ command, this command can be used to generate a hotkey
+ message to the Vim Controller.
+ This command can also be used to pass any text to the
+ Vim Controller. It is used by Pyclewn, for example,
+ to build the complete set of gdb commands as Vim user
+ commands.
+ The events newDotAndMark, keyCommand and keyAtPos are
+ generated (in this order).
==============================================================================