Home Page

Category: vim

Bexec v0.8: Execute a vim buffer and capture output in split window

I released v0.8 of my Bexec vim plugin. The Bexec plugin allows the user to execute the current buffer if it contains a script with a shebang (#!/path/to/interpreter) on the first line or if the default interpreter for the script's type is known by Bexec. The output of the script will be grabbed and displayed in […]

bexec v0.6 released: Execute Vim buffers and show output in new buffer.

I've just released version 0.6 of my Vim bexec plugin.  Bexec is a Vim plugin that allows the user to execute the current buffer if it contains a script with a shebang (#!/path/to/interpreter) on the first line or if the default interpreter for the script's type is known by Bexec. The output of the script […]

Persistent undo history in Vim

Once you quit Vim, the undo history for that file is gone. This sometimes gives me problems if I accidentally made a change in a file without knowing it. This usually happens due to a bad Vim command which, for instance, capitalized a single letter. There's an option which allows you to make the undo […]

Conque: Terminal emulators in Vim buffers

For the longest time, I've searched for a way to run terminal emulators in Vim buffers. As a kind of work-around, I created Bexec, which allows you to run the current contents of a buffer through an external program. It then captures the output and inserts/appends it to another buffer. Although Bexec works reasonable, and […]

Vim and PHP: tips

I've been using Vim for years now, but there's still new stuff to learn. Check out this page for the PDF version of the slides of a talk given by Andrei Zmievski on editing PHP with Vim. His configuration files are also available. Here's my favourite list of tips: Add the following text to your […]

Vim tip: Recognise syntax for other extensions

If you want Vim to recognise files with other extensions as a certain syntax, this tip is for you. For instance, many people name their include files in PHP .inc (Coincidentally, not a very smart thing to do, but anyway). But Vim won't recognise files with the .inc extension as PHP. Here's how to deal […]

Ctags and Object Oriented PHP5

About CTags Ctags is a great utility. It creates a file with a list of 'tags' that are found in various program sources that it finds in the directory where you run it. These tags can then be read by editors so that they know where in the source to find, for instance, the definitions […]

Windows Vim settings

Geez, the default settings for the windows version of vim suck! It's got all these crooked little 'shift-arrowkeys for selecting text' options and whatnot. I don't want that crap! Autoindenting was completely fubar too. So much so that I couldn't even normally insert text without each line violently shaking the left and right. So I […]

Windows GVim FTP

I've spent an eternity trying to find out how to get gvim under Windows to open files transparantely over FTP. According to the manual, it's supposed to work like this: :e ftp://[user]@[hostname]/file But that didn't work for me. I thought I tried everything, but it just wouldn't work. Some red-coloured errors flashed by everytime I […]

Linux IDE's

Lately I've been hearing all kinds of people say "Linux doesn't have a decent IDE". For those that don't know: an IDE is an Integrated Development Evironment, which means that you get a tool that includes all kinds of other tools with which you can easily develop programs. It's kind of like a mix between […]