expanding `body>php` would leave the cursor in the 2nd column inside the php tag instead of at the end of the line. using `_` for the cursor position and periods for trailing spaces, the expansion looked like: ``` <body> <?php _...... ?> </body> ``` ensure that `s:SparkupNext` correctly returns the matching subpattern for an empty line.
…up python file
vim/ftplugin/html/sparkup.vim: - pass `--xml`, if 'xml' is used in &filetype (might be several) - build args to sparkup on every call: its input is dynamic, especially the new &expandtab - use "python" workaround only for Windows (it is executable for Linux/Unix), and its shebang should be used Fixes #69, #83.
* new options '--xml' and '--html' (default) added * XmlDialect added without shortcuts, fill attributes and so on * Vim: ftplugin 'xml' added as symlink * Vim: call sparkup.py with the filetype as argument * so my XML can have <area> tags without attribute filling * yet my HTML still can
- move discovery and execution of sparkup exectuable to a function. - exit early if the sparkup functions have already been defined. - only enable the sparkup mappings for html buffers - add settings allowing the user to change the default mappings