Back to Browse

Vim - How to Do Find and Replace

700 views
Nov 4, 2022
3:21

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: https://youtube.com/playlist?list=PLKG1KqUbhITKmdFC4lp4e6nnE_UWYay14 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).

Download

0 formats

No download links available.

Vim - How to Do Find and Replace | NatokHD