Friday, February 18, 2011

Re: Vim Scripting Mode/Plugin

Hello,

"Nathan Neff" wrote:

> I know there's some C, Java, Perl and Bash vim plugins.
>
> Are there any plugins that help with writing Vim scripts?

Over the years, I have developed a few things in that area:

- some smart-snippets (that won't expand within comments/string) and other surrounding stuff:
http://code.google.com/p/lh-vim/source/browse/misc/trunk/ftplugin/vim_set.vim
This requires lh-map-tools: http://code.google.com/p/lh-vim/wiki/lhBrackets
which in turn requires lh-vim-lib: http://code.google.com/p/lh-vim/wiki/lhVimLib (like most my other plugins)

- template-files for muTemplate that expand into what I've come to consider to be good practices for plain-plugins, ft-plugins, directories-local-plugins, and autoload-plugins (the kind of script is automatically detected) (nothing specific is done for indent/syntax/folding/... files)
http://code.google.com/p/lh-vim/wiki/muTemplate#Vim (which also requires lh-map-tools and lh-vim-lib)
A few other snippets for vim are shipped with mu-template

- http://code.google.com/p/lh-vim/source/browse/misc/trunk/ftplugin/vim/vim_maintain.vim
that defines :Reload that knows how to source (ft)plugins protected by the anti-reinclusion guards automatically generated by mu-template template-files.
and that overrides n_K and v_K to call :h with the right vim function-name (scoped#function#names are a bit tricky if &isk is not properly set)

- http://code.google.com/p/lh-vim/source/browse/misc/trunk/ftplugin/vim/vim_refactor.vim
is an experimental plugin that will eventually move functions to autoload-plugins, with their dependent functions detected.
(I don't remember whether the version committed already requires lh-vim-dev (various kind-of-polymorphic functions related to the analysis of source-code, and its transformation) nor lh-tags)

- A framework to Unit Test vim functions:
http://code.google.com/p/lh-vim/wiki/UT

- A generic refactoring plugin that also handles viml:
http://code.google.com/p/lh-vim/wiki/lhRefactor


HTH,

--
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment