Vim The Editor 5

Jul7

VimVim is one of the greatest editors of all time. Here you can find my Vim config and other files that I have come across over the years. One of the greatest strengths of Vim is how customizable it is and this page is dedicated to all the tweaks and scripts that make Vim better. I use Vim on Mac OS X, Windows and Linux for those interested be sure to check out the MacVim page.

Configuration files

Here are my current configuration files for those interested. vimrc, gvimrc It is just the raw files, you should not use them as they containt very specific settings for macros and plugins I have installed. But they are useful and nice to see what other people are using (that’s how I’ve found some killer tips).

Favorite Plugins

These are some of the plugins I use on a day to day basis.

  • Align – Charles E. Campbell, Jr. Ph.D. – Align text by white space, commas, etc.. very handy
  • NERD Tree – Martin Grenfell – provides a nice file tree explorer
  • Lusty-Explorer – Stephen Bach – Dynamic file system and buffer explorer
  • ZoomWin – Charles Campbell – ability to zoom in and out of windows
  • MatchIt – Benji Fisher Ph.D. – makes % work better specially with html tags
  • Mini Buffer Explorer – Bindu Wavell – very good way to see your loaded buffers and navigate them
  • LustyJuggler – Stephen Bach – excellent buffer browser/switcher
  • MRU – Gergely Kontra – Most Recently Used files
  • RCSVers – Roger Pilkey / Juan Frias – Automaticaly creates a new version of your file whenever you save
  • TagList – Yegappan Lakshmanan – Generate a tag list naviator window
  • VisIncr – Charles E. Campbell, Jr. Ph.D. – Quickly generate list of numbers or dates using visual blocks

Eclipse Color Scheme

I created this color scheme based on the default colors of the eclipse development environment. Bellow are some screen shots of what it looks like with Vim script, Java and C++. Eclipse.vim

Vim Script Java C++
Vim Java C++

Ocean Black 256 XTerm Color Scheme

This color scheme based on Chris Vertonghen’s Ocean Black color scheme. It is basically a conversion using a quick and dirty conversion using dither.pl a Perl script I wrote to convert schemes to 256 xterm. Bellow are some screen shots of what it looks like with Vim script, Java and C++. When sending questions or comments please keep in mind that this theme will not work on 8/16 color terminals and I have not tested it in 88 color terminals. Also I am not in any way a unix/linux expert and had to endure many headaches recompiling Vim and messing with TERMCap settings trying to get the 256 term to work (since I use Putty on a XP machine and SSH to a Mac OS X box) so I wish you luck. OceanBlack256.vim

Vim Script Java C++
Vim Java C++

Symfony Color Scheme

I created this color scheme based on the Documenation of Symfony PHP Framework. This color scheme supports a 256 color terminal too, but it hasn’t been heavily tested. Bellow are some screen shots of what it looks like with Vim script, Java and PHP. Symfony.vim

Vim Script Java PHP
Vim Java PHP

CompView – Compressed Search View

CompView.vim is a handy little script that I use all the time. After a search term is entered it generates a list of matches and displays a window with all the matching lines. As you move around this window to different matched lines the original window is automatically updated to show you where in the file the match is found. It is like an interactive ‘cw’ command.
CompView

TaskList – Simple Eclipse Like Task List

TaskList.vim I got a request from a developer that he used the CompView script (see above) all the time, but wanted something that resembled the eclipse task list. So here it is, this script will search the file for FIXME, TODO, and XXX (or a custom list) and put them in a handy list for you to browse which at the same time will update the location in the document so you can see exactly where the tag is located. Something like an interactive ‘cw’

TaskList

SearchFold – Search by folding non matching lines

SearchFold.vim is a good script to have around. You give it a search string to find and folds everything except for the lines where the string matches. By default is keeps some non-matching lines around you you can get an idea of where you are in the file and gives you the ability to expand “the view” for a particular match to get more context. After you are done looking around you can “quit” the script and keep the fold or go back to the file as it was (restoring any previous folds).
SearchFold

Miscellaneous Commands Beta

I have a few version control commands that I use quite often, I have not tested them or polished them for general distribution so they are very beta. If you feel adventurous here they are RCSDiff, CVSDiff and SVNDiff. Just drop them into your plugins directory, then when you are in a file with version control use the command :RCSDiff to start a diff session. You can also specify the revision you want to compare to as well such as :CVSDiff 1.5 And the best part is that I can do a quick diff from the command line $ vim +SVNDiff main.c

If you are a GIT user Bart Trojanowski has GITDiff script.

subscribe to comments RSS

There are 5 comments for this post

  1. [...] Enlace | Documentacion de vim Enlace | Vim Tango color scheme Enlace | Vim Eclipse color scheme [...]

  2. Anon says:

    Thanks, nice list! Since you seem to be using gvim on OS X, you should definitely check out MacVim: http://code.google/com/p/macvim/

  3. pete says:

    Thanks for nice and simple colorschemes!!!
    Almost all colorshcemes use to much colors, so finally I found my favourite ones :)

  4. Alessandro says:

    Hi,

    I just want to inform you that a add one global variable to your script “TaskList” and made a change on the “map” option. Of course, in my copy of your plugin. I used t for something else and I added a global variable to be able to change the key mapping in a setting flag.

  5. [...] au soleil (saloperie brillante va) :P roton (screenshot)Pyte (screenshot)Warm Grey (screenshot)Eclipse pour ceux qui en serait restés là. Simple et efficace.À noter qu'un peu tout ce que fait ce [...]

Please, feel free to post your own comment

* these are required fields

Subscribe to comments on this post

JDany’s World is powered by WordPress and FREEmium Theme.