diff --git a/vim-commands b/vim-commands index 765a317..cbaec9a 100644 --- a/vim-commands +++ b/vim-commands @@ -426,4 +426,42 @@ Line mode: the cursor to the next string and pressing the command "." will repeat the changes that we did for first string i.e. repeat the process that we performed above. - + + @ Command: "? + + + What does it do? + + It search for the string matching the pattern in reverse direction of the current + cursor postion. + + Here, "n" search for next pattern match in reverse direction. "N" does the reverse + of what "n" command does. + + + @ Command: "*" + + What does it do? + + It search for the next occurances of the exact string(not string-pattern) which is near or where + the current cursor is positioned. + + + @ Commmand: "#" + + What does it do? + + It seah for the next occurances of the exact string(not string-pattern) which is near or where + the current cursor is positioned. + + %% TIPS %% + + We can use editing commands like deleting(d), yanking(y), etc. with these searching command. + + For ex: + + Pressing "d" command and then using "/" will leads to deleting of characters + from the current cursor position to the next occurance of the . + + Pressing " with "y" command and then using "/" will leads to + yanking(copying) from the current cursor position to the next occurance of the .