December 2015
Beginner
306 pages
5h 2m
English
For learning pattern matching, we will ensure that the pattern that we will search should be highlighted when the searched pattern is found.
The configuration file for vi is /etc/vimrc.
In the vi editor, give the following command to highlight search:
|
Sr. |
Commands |
Description |
|---|---|---|
|
1 |
|
This highlights search pattern |
|
2 |
|
Show when you are in insert mode |
|
3 |
|
Ignore case when searching |
|
4 |
|
Shows case sensitive search |
The mentioned user should open the file in vi, press the Esc button so that it goes into command mode and then enter colon followed by these commands.
The following are commands for pattern search and replace:
|
Sr. |
Commands |
Description |
|---|---|---|
|
1 |
|