Vim - How to Do Find and Replace

preview_player
Показать описание
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:

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).
Рекомендации по теме
Комментарии
Автор

Straight to the point... Thank you man!!!

jprestesrs