[slim-vim] A better edit mode for Lisp

Brad Beveridge brad.beveridge at gmail.com
Wed May 10 09:54:13 CDT 2006


I was thinking last night about efficient code editing with Vim, and I
had a thought that may or may not be good.  It ought to be
particularly good for Lisp code, but probably for other code also.
What got me thinking about this is that Lisp code really lives in an
image, with little regard for locality to where in a file that code
comes from.
My idea is that you have a working buffer that you edit in.  To edit a
function you change to the file where the function is and execute a
command to pull the function over to your edit buffer.  As you edit
functions in the edit buffer, it is automatically updated in the file
it lives in.  So you can edit code blocks in the Edit buffer from
multiple files.  You could also edit code blocks from the same file
and use the Edit buffer to just improve locality, so you don't need to
move very far with the cursor to edit different chunks of code.

Any thoughts about how we can do this in Vim?  Would a script be up to the task?

Cheers
Brad


More information about the slim-vim mailing list