More

    Modeline

    What if you wanted to specify that a certain file should always use pure tabs and no spaces while editing. Can we enforce that within the file itself?

    Yes. Just put within the first two lines or last two lines of your file.

    An example:

    This line we are adding is called a “modeline.”

    Portable Vim

    If you keep switching between different computers, isn’t it a pain to maintain your Vim setup exactly the same on each machine? Wouldn’t it useful if you could just carry Vim around in your own USB disk? This is exactly what is.

    Just unzip into a directory on the portable disk, then run GVimPortable.exe. You can even store your own and other related files on the disk and use it anywhere you have a Microsoft Windows computer.

    Any sufficiently advanced Vim user would be using a bunch of plugins and scripts added to their ~/.vim or directory. What if we wanted to update them all to the latest versions? You could visit the script page for each of them, download and install them, but there’s a better way: just run :GLVS (which stands for ‘G’et ‘L’atest ‘V’im ‘S’cripts).

    There are scripts to even twitter from Vim!

    Dr.Chip’s plugins

    “Dr. Chip” has written some over many years.

    One of my favorites is drawit.vim, which helps you to draw text-based drawings such as those fancy ASCII diagrams you have seen before.

    Another is , which helps you to align consecutive lines together. For example, say you have the following piece of program code:

    Just visually select these three lines and press \t=, and voila, it becomes like this:

    This is much easier to read than before and makes your code look more professional. Explore Dr. Chip’s page to find out about many more interesting plugins.

    Blog from Vim

    Using the Vimpress plugin, you can blog to your Wordpress blog right within Vim.

    Bram’s talk on the seven habits

    Bram Moolenaar, the creator of Vim, had written an article long ago titled that explained how you should use a good editor (such as Vim).

    Bram recently gave a talk titled “Seven habits for effective text editing, 2.0” where he goes on to describe the newer features of Vim as well as how to effectively use Vim. This talk is a good listen for any regular Vim user.

    Contribute to Vim

    You can contribute to Vim in various ways, such as working on , writing plugins and color schemes, , and helping with the documentation.

    If you want to help in the development of Vim itself, see :help development.

    Many Vim users hang out at the where questions and doubts are asked and answered. The best way to learn more about Vim and to help other beginners learn Vim is to frequently read (and reply) to emails in this mailing list.

    Find more articles and discussions at Google+ and .

    Summary

    We’ve seen some wide range of Vim-related stuff and how it can be beneficial to us. Feel free to explore these and many more Vim scripts to help you ease your editing and make it even more convenient.