:best of Vim

Showcasing the top Vim plugins, tips and tricks.

What is Vim?

Vim is a text editor for programmers, power users & command-line junkies.

What is :best of Vim?

:best of Vim showcases the best plugins, extensions & tips for making the most of Vim.

It was built for NoVIMber 2011.

Learn more...

Follow

Abolish

Abolish's killer feature is that it handles the fight between logical names & the English language. Imagine you want to replace 'note' with 'entry'. To properly handle case-changes and plurals, you might end up running:

:%s/NOTES/ENTRIES/g
:%s/NOTE/ENTRY/g
:%s/Notes/Entries/g
:%s/Note/Entry/g
:%s/notes/entries/g
:%s/note/entry/g

Abolish makes it as simple as:

:%S/note{,s}/entr{y,ies}/g

It's also incredibly useful for swapping identifiers. For example, to swap h2 tags to h3 and vice versa, run:

:%S/h{2,3}/h{3,2}/g

Download

Comments...

Written by