In this video, we take a look (or I take a took) at the substitute command in Vim, which is basically a find and replace.
Couple of minor points of correction:
g - this means replace in the entire line. Omitting it would only replace the first occurrence per line
%s - the % tells the substitute command to search the entire file. In the video, I stated that "g" did this, which is incorrect.
Vim Playlist:
• Quick Tips for Getting Better at Using the...
Vim is a weird little editor, but some people swear by it. I can definitely see its utility if you ssh into a server and can't use your mouse, but some daring individuals use it as their main editor. I'm not quite there yet, but I am giving Vim some serious consideration. I can absolutely see some real value in using Vim key bindings in a modern editor like Visual Studio Code, WebStorm, and the like. As I learn new and neat-o commands along the way, I will be sharing them here on my YouTube channel. In these videos, I am using Vim in Ubuntu within WSL, or the Windows Subsystem for Linux (Microsoft actually did something awesome for once).
Auf dieser Seite können Sie das Online-Video Vim - How to Do Find and Replace mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer C. Cansler 04 November 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 707 Mal angesehen und es wurde von 23 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!