diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-16 15:23:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-16 15:23:36 +0100 |
commit | 2286304cdbba53ceb52b3ba2ba4a521b0a2f8d0f (patch) | |
tree | 05a0b3be618b14dc1dd6e9ee6d6389c4923dfa50 /runtime/doc/pattern.txt | |
parent | 28b6a3bef6d25d36c049bb731ced496155f7f9c0 (diff) | |
download | vim-git-2286304cdbba53ceb52b3ba2ba4a521b0a2f8d0f.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r-- | runtime/doc/pattern.txt | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index c52708e45..8f6d77e41 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -932,7 +932,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on): \%.l Matches at the cursor line. \%<.l Matches above the cursor line. \%>.l Matches below the cursor line. - These three can be used to match specific lines in a buffer. The "23" + These six can be used to match specific lines in a buffer. The "23" can be any line number. The first line is 1. WARNING: When inserting or deleting lines Vim does not automatically update the matches. This means Syntax highlighting quickly becomes @@ -953,16 +953,15 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on): \%.c Matches at the cursor column. \%<.c Matches before the cursor column. \%>.c Matches after the cursor column. - These three can be used to match specific columns in a buffer or - string. The "23" can be any column number. The first column is 1. - Actually, the column is the byte number (thus it's not exactly right - for multibyte characters). + These six can be used to match specific columns in a buffer or string. + The "23" can be any column number. The first column is 1. Actually, + the column is the byte number (thus it's not exactly right for + multibyte characters). WARNING: When inserting or deleting text Vim does not automatically update the matches. This means Syntax highlighting quickly becomes wrong. Also when referring to the cursor position (".") and the cursor moves the display isn't updated for this change. An update is done when using the |CTRL-L| command (the whole screen is updated). - Example, to highlight the column where the cursor currently is: > :exe '/\%' . col(".") . 'c' < Alternatively use: > @@ -980,8 +979,8 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on): \%.v Matches at the current virtual column. \%<.v Matches before the current virtual column. \%>.v Matches after the current virtual column. - These three can be used to match specific virtual columns in a buffer - or string. When not matching with a buffer in a window, the option + These six can be used to match specific virtual columns in a buffer or + string. When not matching with a buffer in a window, the option values of the current window are used (e.g., 'tabstop'). The "23" can be any column number. The first column is 1. Note that some virtual column positions will never match, because they @@ -1012,7 +1011,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on): /.*\%17v < Column 17 is highlighted by 'hlsearch' because there is another match where ".*" matches zero characters. -< + Character classes: \i identifier character (see 'isident' option) */\i* |