Blog posts tagged with vim

Getting a class and method overview in vim with the TagList plugin

TagList plugin for vim allows you to view list of classes, methods, variables, constants and other tags from index file generated by exuberant ctags. TagList shows tags in a context of files you edit and groups them by type. You can jump to a chosen tag, open it in a new tab or window and do many other useful things.

The best vim cheat sheet ever!

Here's an unique graphical cheat sheet I found on ViEmu website. They also have a tutorial based on it. Really useful stuff. Not only for a vim newbie!

Jumping to a class, function and variable definitions in vim with exuberant ctags

Exuberant ctags make it possible to jump to the definition of a class, method, variable and any other language object in vim. Tool is able to generate an index file (a.k.a tag file) for one of 41 supported programming languages. Index can be used by editors like vim to quickly find related keyword.

Exploring files and directories in vim with the NERD tree plugin

Exploring, opening, switching, renaming, moving files and directories are common tasks performed during coding. In IDEs it is usually achieved with some kind of filesystem explorer. In vim I preffer to use the NERD tree plugin.

Textile in vim - edit your text files with wiki markup

Textile is a simple markup language. It's used in CMS and wiki implementations (i.e. Redmine). I also like to use it while making notes in plain text files. Textile plugin for vim adds support for syntax highlighting, preview and html conversion of Textile documents.

Viewing svn diff result in vim

Some time ago I explained how to use colordiff to display svn diff's result in colors. You can do pretty the same with vim. It is specially useful when you have big amount of code to commit and it needs to be reviewed first. Vim makes navigating through it easier.

How to use TextMate like snippets in vim?

Snippet is a piece of text which can be pasted into the document. Parts of it can be parametrized or calculated while pasting. Snippets can increase your productivity by letting you to write common parts of code faster and without mistakes. One of the most famous snippet implementations is included in TextMate editor. In vim we have some of TextMate's snippet features bundled in snipMate script.

How to record a macro in vim?

Macro is a sequence of instructions performed as a one step. In programming it helps automating the repeatable tasks which makes them less boring and less error-prone. Instead of performing the same actions over and over again, it's better to record them as a macro. Once macro is saved it can be run as many times as needed. Vim as a one of most powerful editors has macro support built in.