forked from aniani/vim
Update runtime files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 8.2. Last change: 2020 Aug 15
|
||||
*windows.txt* For Vim version 8.2. Last change: 2020 Sep 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -955,12 +955,12 @@ 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'. The "nested"
|
||||
@@ -973,7 +973,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
|
||||
|
||||
Reference in New Issue
Block a user