≡ Menu

Vim

Tutorial: Make Vim as Your C/C++ IDE Using c.vim Plugin

This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a programmer, you may do lot of repetitive tasks while coding such as: Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting a code block to comment, and vice versa [...]

{ 20 comments }

Vi and Vim Macro Tutorial: How To Record and Play

Using Vim Macro feature you can record and play a sequence of actions inside the editor. This article explains how to perform record and play inside Vi and Vim editor using two detailed examples. High Level Steps to Record and Play inside Vim Start recording by pressing q, followed by a lower case character to [...]

{ 51 comments }

Photo courtesy of Dominik Gwarek This is a guest post written by SathiyaMoorthy You can perform automatic word completion in Vim using Ctrl-x in insert or append mode. By typing the first few characters of a word you can get the whole word either from a dictionary, or a thesaurus, or even the words that [...]

{ 16 comments }

Make Vim as Your Perl IDE Using perl-support.vim Plugin

This is a guest post written by SathiyaMoorthy. This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a programmer, you may do lot of repetitive tasks while coding such as: Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting [...]

{ 10 comments }

This is a guest post written by Lakshmanan G. This article is part of the ongoing Vi / Vim Tips & Tricks series. Using autocommand feature in Vi / Vim, you can specify some Vim commands to be executed automatically while reading or writing a file, or while entering/leaving a buffer/window, or while exiting Vim. [...]

{ 6 comments }

Vi and Vim Editor: 3 Steps To Enable Thesaurus Option

Photo courtesy of dantesz This is a guest post written by SathiyaMoorthy. Enabling thesaurus option for vi / vim will help you to choose alternate words from thesaurus. For example, while typing “important”, you may prefer to use a different word than “important”.  Wouldn’t be nice if vi can give you few alternative words such [...]

{ 13 comments }