by Ramesh Natarajan on January 9, 2009
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 are already present on the file that you are editing.
This article explains how to perform following operations with examples and screen shots:
- Word / pattern completion
- Line completion
- Dictionary word completion
- File name completion
- Filling up words with similar meaning (Thesaurus word completion).
(more…)
by Ramesh Natarajan on January 5, 2009
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 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…)
by Ramesh Natarajan on December 25, 2008
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.
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…)
by Ramesh Natarajan on December 16, 2008
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 as: “valuable” or “substantial” or “significant”?
This article explains how to use vi / vim effectively by enabling thesaurus option in three steps.
(more…)
Make Vim as Your Perl IDE Using perl-support.vim Plugin
by Ramesh Natarajan on January 5, 2009
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:
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…)
{ 6 comments }