From 2643062d7a689363e01e9d136628e10bf0254800 Mon Sep 17 00:00:00 2001 From: Hizenberg469 Date: Wed, 20 Aug 2025 19:35:32 +0300 Subject: [PATCH] Search, Find and Replace - Part One -> Done --- vim-commands | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) 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 .