Odpowiedzi:
Zanim przejdziesz do Google, wypróbuj dokument:
Od :h \%
\%(\) A pattern enclosed by escaped parentheses.
Just like \(\), but without counting it as a sub-expression. This
allows using more groups and it's a little bit faster.
{not in Vi}
I :h \@<!
\@<! Matches with zero width if the preceding atom does NOT match just
before what follows. Thus this matches if there is no position in the
current or previous line where the atom matches such that it ends just
before what follows.
Like "(?<!pattern)" in Perl, but Vim allows non-fixed-width patterns.
The match with the preceding atom is made to end just before the match
with what follows, thus an atom that ends in ".*" will work.
Warning: This can be slow (because many positions need to be checked
for a match). Use a limit if you can, see below.
Example matches ~
\(foo\)\@<!bar any "bar" that's not in "foobar"
\(\/\/.*\)\@<!in "in" which is not after "//"
pattern.txt
plik ma tematy dotyczące tych elementów w ten sposób mają znacznik pomoc związana ( /\%(\)
lub /\%(
lub E53
na pierwszym i /\@<!
na drugim) i te znaczniki mogą być używane jako argumenty :h
. Jeśli chodzi o ich imię, powiedziałbym, że nazywane są atomami tak jak ^
lub .
, ale nie jestem w 100% pewien.
:helpgrep
jest. :)
:help
można zaakceptować wzór jako argument. To bardzo cenna informacja. Nawiasem mówiąc, nie ma nazwy, prawda?