0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00
Files
vim/runtime/plugin/tohtml.vim
Bram Moolenaar b02cbe3468 When the buffer is in diff mode, have :TOhtml create HTML to show the diff
side-by-side.  (Christian Brabandt)
2010-07-11 22:38:52 +02:00

14 lines
463 B
VimL

" Vim plugin for converting a syntax highlighted file to HTML.
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2010 Jul 11
"
" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim
" Define the :TOhtml command when:
" - 'compatible' is not set
" - this plugin was not already loaded
" - user commands are available.
if !&cp && !exists(":TOhtml") && has("user_commands")
command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>)
endif