On 2008-12-23, pansz wrote:
> Oliver Zheng ??????:
> > I thought this would have been something Vim users would have
> > complained about. Emacs has a fix for it (with a few line of
> > configuration scripting), but it sounds like Vim's plugins cannot
> > extend into the editor for language-specific support. Is this correct
> > that this behavior cannot be reproduced in Vim with plugins?
> > 
> > Regards,
> > Oliver
> > 
> 
> Vim indent behavior for any specific language is scriptable of course, 
> only c-style-indent is built-in since it is widely used. You can just 
> disable the built-in c-style-indent and make your own indent script in 
> ~/.vim/indent/c.vim
> 
> So, I've just proved that vim is *capable* of doing what you want with 
> some script work. The reason that you cannot do it now may have two reasons:
> 1. there is one script in vim.sf.net, but you cannot find it.
> 2. or nobody has written a script yet.

I may be missing something, but for the reasons I gave before, I 
really don't see how a script can be used to get the requested 
behavior unless the script intercepts every keystroke and 
re-implements vim's internal formatting and indenting code.  How are 
you thinking this could be done?

Regards,
Gary


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to