Blog posts tagged with vim

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.