Skip to content

Tag Archives: vim

How to make Vim and Perforce work together in three easy steps

(Vim logo from http://www.vim.org/) Step 1: Make sure that the perforce client is in your path. Can you open a shell (or command prompt) and type ‘p4′? Do you get a help message from Perforce? Step 2: Open the .vimrc file (on Windows, look for a _vimrc file) in your home directory. If you don’t [...]

Spellcheck as you type with Vim

I use Vim on my little Asus eeepc to do my writing on the train. As I only write text or html, it’s been fine. But little luxuries like highlighting miss-spelled words are nice. I just found out that Vim supports this. Here’s the lines to add to your .vimrc: setlocal spell spelllang=en_gbset mousemodel=popupset spellfile=~/spellfile.add [...]

How to set the filetype in Vim when the extension doesn’t match

Apparently there’s a Vi gang sign (image taken from Kandinsky’s photostream) Over 10 years ago, I had a choice to make: Emacs or Vi. I started with Emacs in my first week as a systems administrator. It made Olof, the lead developer very happy. But it wasn’t to be. Emacs was only installed on some [...]