Mercurial > vim
diff runtime/doc/windows.txt @ 22171:d4c7b3e9cd17
Update runtime files.
Commit: https://github.com/vim/vim/commit/1c6737b20a5cf71751b180461cea22fc76d8870c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 7 22:18:52 2020 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Sep 2020 22:30:04 +0200 |
parents | 0db0640e16e0 |
children | 7c1e2e3f2d8d |
line wrap: on
line diff
--- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -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 di 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