Hello, John Beckett <[EMAIL PROTECTED]> wrote:
> Sebastian Menge wrote: > >Am Thu, 02 Aug 2007 10:22:39 +1000 schrieb John Beckett: > >> hermitte wrote: > >>> Want do you think about a Category:VimL (child of LanguageSpecific) > >>> dedicated to how to help us scripting in VimL? > >> > >> While an attractive idea, wouldn't we then have the issue > >> we've been discussing on C and C++? > > > > Not exactly, C and C++ are both languages, while Folding is not. > > Huh?? Hermitte's proposal (IIUC) has nothing to do with folding. Indeed. > The proposal is to have categories: > > Category:VimL (child of LanguageSpecific) > for scripting in VimL (VimL abbreviations, VimL mappings, > syntax enhancements, folding, test unit?, ...) > > Category:Scripting > for scripting "theory" (how to write a plugin, how to write a > function, how to write a mapping, test unit?, ...) > > I know very little about Vim scripting - what benefit do we get from the > above two categories? The distinction between VimL and Scripting seems a bit > subtle to me. Think of VimL as a language like any other (C++, TeX, ...). Two kind of tips can be related to that language. The second kind is about the language itself, how it work, what are the good practices, etc. No need to say, such a category for C++ has nothing to do on vim.wikia. Regarding VimL, well it makes perfect sense as Vim in our main concern, and it would be the Category;:Scripting. The first kind is about using Vim to write program (/script) in that language. (Using Vim to write programs in whatever language makes perfect sense on vim.wikia). In the particular case of VimL, it would be the Category:VimL As of today, Category:Scripting contains (very good and insightful) tutorials from Dr Chip. Category:VimL would contains tips that will simplify our life when writing in VimL. Of course, some tips could be put in both categories. It would be the case of a syntax highlighting that emphasizes an invalid variable name (like "r:foo"), or a template expander that loads the code-snippet of a for-loop (there are only while-loops in VimL), ... > This issue would be cleared up if we had a couple of examples: > - some tips suitable for VimL only Think about anything that could be implemented in a vim-ftplugin. It about using vim to write vim-scripts. > - some tips suitable for Scripting only Check Dr Chip's tutorials: it's about the language itself -- we could even use notepad to develop vim scripts. PS: The holidays have started (at last), I may not post very often in the next 10 days. -- Luc Hermitte _______________________________________________ Vim-l mailing list [email protected] http://lists.wikia.com/mailman/listinfo/vim-l
