[slim-vim] Slim-Vim is hitting 0.7-unstable

Brad Beveridge brad.beveridge at gmail.com
Sat Aug 26 10:10:30 CDT 2006


On 26/08/06, Daniel Trstenjak <Daniel.Trstenjak at online.de> wrote:
>
> Hi Brad,
>
> On Fri, Aug 25, 2006 at 08:17:16AM -0700, Brad Beveridge wrote:
> > There was a patch sent to this list a while ago by Tomas Zellerin.  I
> > haven't looked at it yet, but it is in my "Pending" folder.  I think
> > it adds file type support.
> >
> > But, yes - I am really not very good at the Vim script side of things
> > - any help in that area is very welcome.
>
> It's really not a lot of work.
>
> When using the vim filetype mechanism it would look like this:
>
> We have the script "$HOME/.vim/after/ftplugin/lisp.vim". This script
> contains all the lisp specific stuff you have currently set in your
> vimrc. This way you don't have to mess your vimrc with language
> specific stuff, which is extremly bothering if you are programming
> in several languages.
> Additionally the script contains ecl-slime.vim or sources it.
>
> ecl-slime.vim has to be a little restructured to seperate
> the things which are done for each buffer and only once.
> Script global variables are useful for executing stuff
> only once per script (":help s:var").
>
> To get the script executed every time a lisp file is read/opened
> we only have to put "filetype plugin on" in our vimrc.
> To see which file extensions are recongnized as lisp files,
> have a look at "$VIMRUNTIME/filetype.vim". If someone wants to
> extend the extensions, this can be done by "$HOME/.vim/filetype.vim".
>
> So theres no need for "autocmd BufNewfile,BufRead *.lisp ..." in
> ecl-slime.vim. At the moment I don't know where's the right place
> to put "autocmd VimLeave * ecl (slime::disconnect)", so just leave
> it for the moment in ecl-slime.vim.
>
>
> Regards,
> Daniel

Thanks for the detais Daniel.  I'll look into doing what you suggest,
but it might not be for a week or so.  If you submit a patch though,
I'll try hard to get it rolled in quickly :)

Cheers
Brad


More information about the slim-vim mailing list