Search and search-and-replace in Vim
The Basics and Beyond
We show you how to build on the basic functionality of Vim by introducing some useful search commands.
As a descendant of vi, a text editor written in 1976, Vim could be the oldest application on any Linux system. Most distributions include it by default, and few users have never been exposed to it. However, very few learn more than the basics of functioning within Vim. To most, intricacies like the different ways to search remain forever mysteries.
Staying at this level of knowledge is in some ways understandable. With its dozens of commands and plugins, Vim can feel less like a text editor than a choice of lifestyle (even if you don’t get involved in the traditional rivalry with Emacs). However, confining yourself to searching by eye and arrow keys is need-lessly limited. You can easily choose your level of knowledge by learning a handful of additional search commands, by using Vim’s internal version of grep, or even by adding a few plugins to enhance the control you have. Many of the commands are organized so that you can remember their variations easily.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Find SysAdmin Jobs
News
-
SparkyLinux 6.6 Now Available for Installation
The Debian-based SparkyLinux has a new point release that retools the live USB desktop creator and other changes that give it shiny new-ness.
-
SparkyLinux 6.6 Now Available for Installation
The Debian-based SparkyLinux has a new point release that retools the live USB desktop creator and other changes that give it shiny new-ness.
-
Escuelas Linux 8.0 Now Available
Just in time for its 25th anniversary, the developers of Escuelas Linux have released the latest version.
-
LibreOffice 7.5 Loaded with New Features and Improvements
The favorite office suite of the Linux community has a new release that includes some visual refreshing and new features across all modules.
-
The Next Major Release of Elementary OS Has Arrived
It's been over a year since the developers of elementary OS released version 6.1 (Jólnir) but they've finally made their latest release (Horus) available with a renewed focus on the user.
-
KDE Plasma 5.27 Beta Is Ready for Testing
The latest beta iteration of the KDE Plasma desktop is now available and includes some important additions and fixes.
-
Netrunner OS 23 Is Now Available
The latest version of this Linux distribution is now based on Debian Bullseye and is ready for installation and finally hits the KDE 5.20 branch of the desktop.
-
New Linux Distribution Built for Gamers
With a Gnome desktop that offers different layouts and a custom kernel, PikaOS is a great option for gamers of all types.
-
System76 Beefs Up Popular Pangolin Laptop
The darling of open-source-powered laptops and desktops will soon drop a new AMD Ryzen 7-powered version of their popular Pangolin laptop.
-
Nobara Project Is a Modified Version of Fedora with User-Friendly Fixes
If you're looking for a version of Fedora that includes third-party and proprietary packages, look no further than the Nobara Project.