Mercurial > vim
view runtime/plugin/tohtml.vim @ 2075:903fcd726d90 v7.2.359
updated for version 7.2.359
Problem: Crash when using the Netbeans join command.
Solution: Make sure the ml_flush_line() function is not used recursively.
(Xavier de Gaye)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Thu, 11 Feb 2010 18:54:43 +0100 |
parents | 3fc0f57ecb91 |
children | a59e6ac5ed28 |
line wrap: on
line source
" Vim plugin for converting a syntax highlighted file to HTML. " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2003 Apr 06 " Don't do this when: " - when 'compatible' is set " - this plugin was already loaded " - user commands are not available. if !&cp && !exists(":TOhtml") && has("user_commands") command -range=% TOhtml :call Convert2HTML(<line1>, <line2>) func Convert2HTML(line1, line2) if a:line2 >= a:line1 let g:html_start_line = a:line1 let g:html_end_line = a:line2 else let g:html_start_line = a:line2 let g:html_end_line = a:line1 endif runtime syntax/2html.vim unlet g:html_start_line unlet g:html_end_line endfunc endif