Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/books/admin_guide/05-vi.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,11 @@ To switch to *Ex* mode, from *command* mode, type <kbd>:</kbd>.

`?string`

* Go to the next occurrence found:
* Find the next matching string:

<kbd>n</kbd>

* Go to the previous occurrence found:
* Find the previous matching string:

<kbd>N</kbd>

Expand All @@ -395,29 +395,29 @@ There are wildcards to facilitate the search in VI.

Example:

`/[Ww]ord` : search _word_ and _Word_
`/[Ww]ord` : search _word_ or _Word_

`/[1-9]word` : search _1word_, _2word_ … _`x`word_ where `x` is a number

* `^` : Search for a string starting the line.
* `^` : Search for lines that begin with a characters.

Example:

`/^Word`

* `$` : Search for a string ending the line.
* `$` : Search for lines that end with characters.

Example:

`/Word$`

* `.` : Search for a word with an unknown letter.
* `.` : Search for any single character except newline characters.

Example:

`/W.rd` : search _Word_, _Ward_ …

* `*` : Search for one or more characters, whatever they are.
* `*` : The number of times the previous character matches, 0 times, or any number of times.

Example:

Expand Down