aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/windows.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-03-13 22:13:25 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-03-14 01:30:11 +0100
commit3259e45f926bcde4052e8b989e039f6047c2b205 (patch)
tree7ff274da56059a0312f03338a5dd0bcbb7864997 /runtime/doc/windows.txt
parentcbe4377fde315123fea9928371bd2a62f32d90e4 (diff)
downloadrneovim-3259e45f926bcde4052e8b989e039f6047c2b205.tar.gz
rneovim-3259e45f926bcde4052e8b989e039f6047c2b205.tar.bz2
rneovim-3259e45f926bcde4052e8b989e039f6047c2b205.zip
autocmd: rename: "++nested", "++once"
Based on feedback from upstream: https://github.com/vim/vim/pull/4100
Diffstat (limited to 'runtime/doc/windows.txt')
-rw-r--r--runtime/doc/windows.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index 65ce72d62c..63ffd91bfc 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -880,15 +880,15 @@ CTRL-W g } *CTRL-W_g}*
cursor. This is less clever than using |:ptag|, but you don't
need a tags file and it will also find matches in system
include files. Example: >
- :au! CursorHold *.[ch] -nested exe "silent! psearch " . expand("<cword>")
+ :au! CursorHold *.[ch] ++nested exe "silent! psearch " . expand("<cword>")
< Warning: This can be slow.
Example *CursorHold-example* >
- :au! CursorHold *.[ch] -nested exe "silent! ptag " . expand("<cword>")
+ :au! CursorHold *.[ch] ++nested exe "silent! ptag " . expand("<cword>")
This will cause a ":ptag" to be executed for the keyword under the cursor,
-when the cursor hasn't moved for the time set with 'updatetime'. "-nested"
+when the cursor hasn't moved for the time set with 'updatetime'. "++nested"
makes other autocommands be executed, so that syntax highlighting works in the
preview window. The "silent!" avoids an error message when the tag could not
be found. Also see |CursorHold|. To disable this again: >
@@ -898,7 +898,7 @@ be found. Also see |CursorHold|. To disable this again: >
A nice addition is to highlight the found tag, avoid the ":ptag" when there
is no word under the cursor, and a few other things: >
- :au! CursorHold *.[ch] -nested call PreviewWord()
+ :au! CursorHold *.[ch] ++nested call PreviewWord()
:func PreviewWord()
: if &previewwindow " don't do this in the preview window
: return