[slim-vim] The "right" way of doing file specific things in vim

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


On 05/08/06, Daniel Trstenjak <Daniel.Trstenjak at online.de> wrote:
>
> Hi Brad,
>
> I looked in the implementation of ecl-slime.vim and saw
> the autocommands for loading a lisp file.
>
> I don't know if you are aware of the vim filetype plugins ?
>
> The filetype plugins in vim are used to do specific
> stuff when loading files of a specific type.
>
> What is done when loading a lisp file can be
> seen in "vim-runtime-path/ftplugin/lisp.vim".
>
> When you want to do more than in the vim standard
> filetype plugin you can put an own filetype plugin
> in "$HOME/after/ftplugin/lisp.vim". This one
> will be loaded after the standard one.
>
> To activate filetype plugins you have to put
> "filetype plugin on" in your vimrc.
>
> The same is also available for indentation:
> "vim-runtime-path/indent/lisp.vim"
>
> To activate the indentation:
> add "filetype indent on" in your vimrc
>
>
> Regards,
> Daniel

Hi Daniel, thanks for the feedback.  To be honest, I am no expert an
Vim script - Larry made the changes to enable the autocommands.  I
really don't understand it that well at all.  If you and Larry can
agree on a better way to do any of that stuff, I'll be happy for it to
go in.
At the moment my pet peeve is that if I start Vim by editing a lisp
file and then source ecl-slime.vim, they keymappings aren't active for
the already open file until I issue the :e! command.

Basically, because I'm not that well versed in the Vim script stuff,
I'll be pretty easy to convince that a change is needed.

Cheers
Brad


More information about the slim-vim mailing list