~/.vimrc

Vi and Vim Editor MRU List for Unix and LinuxAlmost all applications have the ability to display Most Recently Used (MRU) documents.

Vim editor by default does not have this feature. But using MRU.vim plugin, you can use the most recently used (opened and edited) files inside Vim editor as explained below.

This article is part of the on-going Vi / Vim Tips and Tricks series.

This article explains how to install the MRU.vim plugin in 2 easy steps. This also explains about 7 powerful feature of the Most Recently Used Plugin. This will definitely change the way how you use Vim editor.

(more…)

Code C Program using Vim Editor
Photo Courtesy: mint imperial

This article is part of the on-going Vi / Vim Tips and Tricks series. As a programmer or system administrator, you will be constantly browsing source codes and shell scripts.

Following are some typical activities that you may perform while browsing a source code file:

  1. Navigating to the function definition by specifying the function name.
  2. Navigating to the function definition from ‘function call’.
  3. Returning back again to function call from the definition.
  4. Viewing the prototype/signature of functions or variables.
  5. Viewing the number of functions in a file, etc.,

(more…)

Vim Editor: How to Correct Spelling Mistakes Automatically

by Ramesh Natarajan on March 12, 2009

Vim Automatic Typo Correction
Photo courtesy of shandrew

This article is written by SathiyaMoorthy.

This article is part of the ongoing Vi / Vim Tips and Tricks Series. I tend to make simple spelling mistakes while writing, as English is not my first language. Wouldn’t be nice if Vim editor can do the spelling correction automatically as you make a typo?

Note: I wish someone from Nayv Navy football team read this article. Oh well, that would’ve still not fixed their problem.

In this article, let us review how to correct spelling mistakes automatically inside Vim editor.

(more…)

Make Vim as Your Bash-IDE Using bash-support Plugin

by Ramesh Natarajan on February 19, 2009

Vim Bash IDE PluginThis post is written by SathiyaMoorthy.

This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a Linux sysadmin or programmer, you may do following repetitive tasks while coding bash shell script:

  • 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


The bash-Support Vim plugin offers easiest way to do all of the above, saving lot of time and keystrokes.
(more…)

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

by SathiyaMoorthy on January 28, 2009

Vim as C/C++ IDE
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


The C-Support Vim Plugin offers easiest way to do all of the above, saving lot of time and keystrokes for C and C++ programmers.

(more…)

Vi and Vim Macro Tutorial: How To Record and Play

by SathiyaMoorthy on January 16, 2009

Vim Macros - 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.
(more…)

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

by Ramesh Natarajan on January 5, 2009

Perl Vim LogoThis 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 a code block to comment, and vice versa

The Perl-Support Vim Plugin – Perl-IDE offers easiest way to do all of the above, saving lot of time and keystrokes.

The plugin was written by Fritz Mehner, who explains the purpose of the plugin as: “Write and run Perl-scripts using menus and hot keys”.

This article explains how to install the plugin in 3 easy steps and 7 powerful features of the plugin.
(more…)

Vim Editor LogoThis 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.

In this article, using 3 simple steps, let us review how to use this powerful autocmd feature of Vim to create a header section inside a file (for example, header in a C programming code) with file name, creation date, last modified date/time automatically populated when you open a file in vi.
(more…)