Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

Category: vim

Bexec: Execute script in buffer and display output in buffer. Version 0.10 released.

After almost a year of no releases, I’ve made a new release of Bexec today. It’s a minor feature release that brings a new setting to Bexec: bexec_splitsize. This settings controls the default size of the output window. You can set it in your .vimrc as follows: let g:bexec_splitsize=20 This will always make the output […]

mdpreview, a Markdown previewer to be used with an external editor

There are many Markdown previewers out there, from the simplest commandline tool + webbrowser to full-fledged Markdown IDE’s. I’ve tried quite a few, and I like none of them. I write my Markdown in an external editor (Vim), something very few Markdown previewers take in account. The ones that do are buggy. So I wrote mdpreview, […]

Bexec v0.9 has been released

Bexec is a vim plugin that allows the user to execute the current buffer. Version 0.9 has just been released. This version changes Bexec so it’s autoloaded on demand, rather than always. This reduces Vim startup times if you’re not going to use Bexec. Many thanks to Lucas Hoffmann for this change. The new version […]

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 […]

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.