Vi Commands

Vi and Vim Editor: 12 Powerful Find and Replace Examples

by SathiyaMoorthy on April 27, 2009

Vim Editor Search and Replace Syntax
Photo Courtesy: B Zedan

This article is part of the on-going Vi / Vim Tips and Tricks series. Vim is commonly mentioned as text editor, not text creator. Why ? Because we spend lot of time editing an existing text than creating new text.  In the text editing, text/pattern substitutions becomes a vital part.

In this article, let us review how to perform both basic and advanced text and pattern substitution features in Vi and Vim Editor. These features are explained using 12 very practical and powerful text substitution examples.
(more…)

{ 80 comments }

How To Add Bookmarks Inside Vim Editor

by Ramesh Natarajan on February 9, 2009

Building with Bookmarks
Photo courtesy of secretlondon123

This is a guest post written by SathiyaMoorthy

This article is part of the ongoing Vi / Vim Tips and Tricks series. Mark is a bookmarking feature inside Vim editor, where you can bookmark a particular line and later return to it quickly.  If you are using Vim editor regularly, this simple technique of using bookmarks will sky-rocket your productivity.

There are two types of bookmarks in Vim — local and global.
(more…)

{ 10 comments }