diff --git a/.inserting.txt.swo b/.searching.txt.swp similarity index 82% rename from .inserting.txt.swo rename to .searching.txt.swp index 4dc4b8e..adf9077 100644 Binary files a/.inserting.txt.swo and b/.searching.txt.swp differ diff --git a/vim-commands b/vim-commands index 3eb9bbd..bc2cce2 100644 --- a/vim-commands +++ b/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 + + + 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 + + + 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 + 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 + is executed, it will execute f + + action, repeatedly. It will do the opposite of whichever + above mentioned command was executed first. + + @ Command :- t + + + + What does it do? + + It search for the 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 that was mentioned earlier. + + We can use ";" and "," command to repeat the mentioned command + even if the cursor is present just before the searched , + it pass through the current position. + + Note that the searching is done from left to right. + + @ Command :- T + + + What does it do? + + It perform operation and behave in similar manner as done by t + + command. But, the searching is done in reverse order.