1 Jul 2004 03:01
FW: would like to submit indent/ftplugin/syntax files
Dave Silvia <dsilvia <at> mchsi.com>
2004-07-01 01:01:00 GMT
2004-07-01 01:01:00 GMT
You folks in the 'To' list are being contacted as the maintainers of note of
the indent/*.vim files in the current (version 6.3) Vim distribution.
I authored some indent/ftplugin/syntax scripts and submitted them to Bram
for inclusion in Vim distribution. These files make use of auxiliary files
which have generic functions in them. One of these files is
'GenericIndent.vim' and Bram thought, perhaps, it might be of interest to
you. Put simply, this is a data driven function that decides on the amount
of indent/dedent based on data sets you can define.
If set thoughtfully, the data allows GenericIndent() to properly identify
indentation and de-indentation ('dedentation') when called by Vim.
I have attached the file to this email for your consideration. As I see it,
there are the following advantages:
1) For the maintainer, it reduces the maintenance task to managing the
data sets.
2) For the user:
o makes individual indent/*.vim scripts easier to read/understand
o provides for ease of modification to suit personal tastes
o encourages new indent/*.vim scripts for other file types
3) Although the reduction in code size would be minimal, it would still be
non-zero
Note that there is a debugging feature that can be turned on by 'let
b:DEBUGGING=1' and turned off by either 'unlet b:DEBUGGING' or 'let
b:DEBUGGING=0'
(Continue reading)
that dint work either
RSS Feed