[slim-vim] Indentation fun (was Re: slim-vim Digest, Vol 1, Issue 4)

Peter Wright pete at flooble.net
Thu Mar 23 08:03:38 CST 2006


On 23/03 07:52:56, Larry Clapp wrote:
> On Thu, Mar 23, 2006 at 09:23:07AM +0800, Peter Wright wrote:
> > ...if you add
> > 
> >   nth,with-http-response,with-http-body,publish
> > 
> > to the 'lispwords' variable (in Vim7) and re-indent, you'll find it's
> > a lot closer to the "correct" indentation, though still not the same:
> 
> lispwords is in Vim6 too, and probably earlier.  I've use Vim since v4
> (at least), but didn't do any Lisp back then.  :)

Oh yeah, I know (re: it being in Vim6 too) - I think I just got the
impression that this mailing list is thinking in Vim7 now, so we can't
be Luddites hooked on the primitive Vim6 past!

...Er, yeah. :)

> -- L

Interestingly, there is a $VIMRUNTIME/indent/lisp.vim for Vim7, but
there isn't for Vim6. Mind you, the lisp.vim for Vim7 is pretty
minimal:

-----------------------------------------------------------------
" Vim indent file
" Language:     Lisp
" Maintainer:    Sergey Khorev <sergey.khorev at gmail.com>
" URL:           http://iamphet.nm.ru/vim
" Last Change:  2005 May 19

" Only load this indent file when no other was loaded.
if exists("b:did_indent")
   finish
endif
let b:did_indent = 1

setlocal ai nosi

let b:undo_indent = "setl ai< si<"
-----------------------------------------------------------------

...so I'm not entirely sure why it's needed now and (apparently)
wasn't before.


Pete.
-- 
http://flooble.net/blog
Being a mime means never having to say you're sorry.


More information about the slim-vim mailing list