I have been using Vim as my primary text editor and web development IDE for a couple of months now, and my experience so far has been excellent. I would classify myself as an "intermediate" Vim user right now, since I'm still learning some of the more advanced commands (that make my life easier), but I am making huge progress.
Here is a tip for Linux users that I just discovered yesterday. It assumes that you have Vim as well as GVim installed.
On the command line, type
$ gvimdiff firstfile secondfile
Notes: The "$" symbol above is the prompt (it could be "#" for a root user). "firstfile" and "secondfile" are the locations of two files you wish to compare.
GVim will open in a two paned window, illustrating colored diffs between the two files (assuming your ~/.gvimrc allows for the color). I highly recommend using the Desert colorscheme to compare the files; the diffs really stand out as a result.
This works for comparing more than two files as well. Just tack the additional locations on the end:
$ gvimdiff firstfile secondfile thirdfile ... ... ...
I hope this is helpful!
08 January 2008
Oh, Wonderful Vim
~ Patrick at 12:17 PM 1 comments
Subscribe to:
Posts (Atom)