From 8b517d4d5014d72a1a6f115824e65ce1d202e617 Mon Sep 17 00:00:00 2001 From: Hizenberg469 Date: Mon, 18 Aug 2025 20:03:01 +0300 Subject: [PATCH] Replace command update --- .searching.txt.swp | Bin 0 -> 12288 bytes vim-commands | 60 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .searching.txt.swp diff --git a/.searching.txt.swp b/.searching.txt.swp new file mode 100644 index 0000000000000000000000000000000000000000..84aade526b062b5721f77a57c5f56f012fe68c31 GIT binary patch literal 12288 zcmeHNOOG5i5Oxp<7Fa;xz!5{xB4D>C5Rk$lhsiszd9W{(Tq1XOO}BU4c4NC|wu2Dj z00$08z#rgox#O3j&)tlGG8y8QF zX3CF3>zo-iN*l3y^~`wn<}ki~Zf)z_+9?)i+D7tLnT&Q+(;CVw#Xa4#SD}67)L|M6 z$K*y$@~|OUIvBR_<(OP`g)*{mcA~4!tEip*Cl~KQH&&eGKR`b zys3=A?#z{8?K$qXYSYVktqsY!vn6@nzj;lbB+YY>+eZy`1SCvMWZz zHC|*!JA*Tuwt$_@MtLZ9R!6LX20nLzAZc~d9R@qotxrigLD)AFf5Xdg5l`; zASceF6ES05HP8<bUo;1QCFTD#Sy=pb7e)?&_Eoi>AEbmHz8(}AyIYWhrEQ=NfYt1CkhDXwgR2wShKN{5;? zt{M%3pyTF7x-PD?+~hiEnU0ybsJ!nnk*{6LTA@S8+uF4>>5z7rxIjMou4FeW?bT#LvT}KjEJlkh z&5=R9Ms$@2dvIo1R!DWWkMWYLpzv<(opdOVN9QFYj3>}Cwan^MeCYG)OW+ah_E$1hv zT&bF6S;F#^EtJ|vE;6K@99S48Wa5m9H9Jxuj>4!p!bVZzY{F(Q4^$7KA}1W;I!&>L za=zzmT|)69`SP$VB12#fcOj8*n@ij literal 0 HcmV?d00001 diff --git a/vim-commands b/vim-commands index bc2cce2..765a317 100644 --- a/vim-commands +++ b/vim-commands @@ -367,3 +367,63 @@ Line mode: It perform operation and behave in similar manner as done by t + command. But, the searching is done in reverse order. + + **Note** + + All these are motion-commands. That means, we can use it with Editing + commands like d (delete), c (changing), y (yanking), etc. + + + @ Command :- / + + What does it do? + + It searches for the . + + Using "n" command will search for next occurance in current + opened file. + + Using "N" command does the same thing. But, in opposite direction. + + **Note** + + For "/" command for searching the incsearch option should be set. + + If it is not, we can use following line command: + + :set is + + To check if the configuration is set use command: + + :set is? + + For highlighting the searches, check for: + + Check :set hls? + + Output: nohlsearch + + Do: :set hls + + Note that hlsearch is enabled will highlight the s' until + new search is done which in turn highlight the new . + To turn off the highlight, use: + + :nohls. + + It will turn-off the highlights not disable it permanently. + + + %% Trick %% + + > Using "/" command to find a string or string containing the pattern specified + and pressing enter will take to the first such matching string. + + > If we now use "c + w" command the cursor which is present at the first letter + of the word will delete that word and we type certain word. + + > After getting out of the insert mode, pressing "n" command will move the cursor + 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. + +