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).
In questa pagina del sito puoi guardare il video online Vim - How to Do Find and Replace della durata di ore minuti seconda in buona qualità , che l'utente ha caricato C. Cansler 04 novembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 707 volte e gli è piaciuto 23 spettatori. Buona visione!