Lines Matching refs:pattern
624 :[range]s[ubstitute]/{pattern}/{string}/[flags] [count]
625 For each line in [range] replace a match of {pattern}
627 For the {pattern} see |pattern|.
640 |pattern-delimiter|.
644 Repeat last :substitute with same search pattern and
648 used, it's recognized as a pattern separator.
657 but with last used search pattern. This is like
668 last search pattern on all lines with the same flags).
670 `:s/pattern/repl/flags` and then `/search` for
702 search pattern.
705 [e] When the search pattern fails, do not issue an error message and, in
720 pattern. If the 'gdefault' option is on, this flag is on by default
724 [i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
728 [I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
746 works the same way as `:~`: When the search pattern is empty, use the
747 previously used search pattern instead of the search pattern from the
750 command was a search command such as "/", use the pattern from that
762 Note that there is no flag to change the "magicness" of the pattern. A
764 reason is that the flags can only be found by skipping the pattern, and in
765 order to skip the pattern the "magicness" must be known. Catch 22!
767 If the {pattern} for the substitute command is empty, the command uses the
768 pattern from the last substitute or `:global` command. If there is none, but
769 there is a previous search pattern, that one is used. With the [r] flag, the
770 command uses the pattern from the last substitute, `:global`, or search
774 matched pattern is deleted. The separator after {pattern} can also be left
782 *pattern-delimiter* *E146*
783 Instead of the '/' which surrounds the pattern and replacement string, you can
785 '/' in the search pattern or replacement string. Example: >
792 For the definition of a pattern, see |pattern|. In Visual block mode, use
793 |/\%V| in the pattern to have the substitute work in the block only.
807 & \& replaced with the whole matched pattern *s/\&*
809 \0 replaced with the whole matched pattern *\0* *s/\0*
810 \1 replaced with the matched pattern in the first
812 \2 replaced with the matched pattern in the second
815 \9 replaced with the matched pattern in the ninth
870 the pattern (going left to right). When a parentheses group matches several
876 either the first or second pattern in parentheses did not match, so either
1221 10. Last search pattern register "/
1351 10. Last search pattern register "/ *quote_/* *quote/*
1352 Contains the most recent search-pattern. This is used for "n" and 'hlsearch'.
1852 :[range]sor[t][!] [b][f][i][l][n][o][r][u][x] [/{pattern}/]
1873 in the line (after or inside a {pattern} match).
1878 the text (after or inside a {pattern} match) to
1883 number in the line (after or inside a {pattern}
1888 the line (after or inside a {pattern} match).
1891 the line (after or inside a {pattern} match).
1900 When /{pattern}/ is specified and there is no [r] flag
1901 the text matched with {pattern} is skipped, so that
1903 'ignorecase' applies to the pattern, but 'smartcase'
1917 With [r] sorting is done on the matching {pattern}
1923 < If a {pattern} is used, any lines which don't have a
1924 match for {pattern} are kept in their current order,
1925 but separate from the lines which do match {pattern}.
1931 If {pattern} is empty (e.g. // is specified), the
1932 last search pattern is used. This allows trying out
1933 a pattern first.