Neovim/vim macro
hardyweb

hardyweb @hardyweb

About: Highly motivated and self-directed IT professional with a strong foundation in web development (particularly Laravel) and a passion for continuous learning.

Location:
Terengganu, Malaysia
Joined:
Jun 20, 2022

Neovim/vim macro

Publish Date: Jun 11
0 1

aku mahu delete perkatan Download this file dan delete semua dalam kurungan/parenthesis

Download this file (Lorem ipsum dolor sit amet, consectetur adipiscing elit)Lorem ipsum dolor sit amet, consectetur adipiscing elit
Download this file (Suspendisse eget fringilla turpis. Praesent consequat lectus felis, a pulvinar mi ultrices sed)Suspendisse eget fringilla turpis. Praesent consequat lectus felis, a pulvinar mi ultrices sed
Download this file (Morbi ultrices nisi sit amet nulla mattis tempus)Morbi ultrices nisi sit amet nulla mattis tempu
Enter fullscreen mode Exit fullscreen mode

buka neovim

  • Untuk buang perkataan "Download this file", guna arahan
:%s/Download this file //g 
Enter fullscreen mode Exit fullscreen mode
  • Untuk delete perkatan dalam kurungan /parenthesis , guna macro

  • ke line pertama , dalam mode visual, taip qa untuk rekodkan huruf a

  • taip da( untuk delete perkatan dalam kurungan serta kurungan tersebut

  • tekan q untuk keluar

  • kemudian untuk dua baris lagi , tekan 2@a untuk hapuskan perkataan dalam kurungan /parenthesis

Comments 1 total

  • Richard
    RichardJun 11, 2025

    Hey blockchain user! unlock your free $30 reward in DuckyBSC airdrop tokens right now! — Join now! Connect your wallet to get the bonus. 👉 duckybsc.xyz

Add comment