mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
Searching -> under progress
This commit is contained in:
Binary file not shown.
58
vim-commands
58
vim-commands
@@ -309,3 +309,61 @@ Line mode:
|
||||
|
||||
Do the same thing as "J" command. Only difference is that it doesn't
|
||||
add any space between joining lines.
|
||||
|
||||
|
||||
-> Searching commands:
|
||||
|
||||
|
||||
@ Command :- f + <character>
|
||||
|
||||
What does it do?
|
||||
|
||||
Searches for the next occurence of the character passed as an argument
|
||||
from current cursor position on the same line.
|
||||
NOTE THE WORD, SAME LINE.
|
||||
|
||||
@ Command :- F + <character>
|
||||
|
||||
What does it do?
|
||||
|
||||
Do the same thing as previous command, but in opposite direction.
|
||||
|
||||
@ Command :- ;
|
||||
|
||||
What does it do?
|
||||
|
||||
It repeat the command from the above two, whichever was executed
|
||||
first. For example, if F + <character> is executed, it will repeat
|
||||
the same command.
|
||||
|
||||
@ Command :- ,
|
||||
|
||||
What does it do?
|
||||
|
||||
It do the opposite of what ";" command does. For example, if
|
||||
F + <character> is executed, it will execute f + <character>
|
||||
action, repeatedly. It will do the opposite of whichever
|
||||
above mentioned command was executed first.
|
||||
|
||||
@ Command :- t + <character>
|
||||
|
||||
|
||||
What does it do?
|
||||
|
||||
It search for the <character> and place the cursor just one
|
||||
position before the current cursor. Note that, using the same
|
||||
command again will not move the cursor to next position w.r.t
|
||||
same <character> that was mentioned earlier.
|
||||
|
||||
We can use ";" and "," command to repeat the mentioned command
|
||||
even if the cursor is present just before the searched <character>,
|
||||
it pass through the current <character> position.
|
||||
|
||||
Note that the searching is done from left to right.
|
||||
|
||||
@ Command :- T + <character>
|
||||
|
||||
What does it do?
|
||||
|
||||
It perform operation and behave in similar manner as done by t +
|
||||
<character> command. But, the searching is done in reverse order.
|
||||
|
||||
Reference in New Issue
Block a user