comparison runtime/doc/syntax.txt @ 2304:a59e6ac5ed28 vim73

When the buffer is in diff mode, have :TOhtml create HTML to show the diff side-by-side. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Sun, 11 Jul 2010 22:38:52 +0200
parents eb7be7b075a6
children 233eb4412f5d
comparison
equal deleted inserted replaced
2303:6ebb886efe3c 2304:a59e6ac5ed28
384 *:TOhtml* 384 *:TOhtml*
385 Or use the ":TOhtml" user command. It is defined in a standard plugin. 385 Or use the ":TOhtml" user command. It is defined in a standard plugin.
386 ":TOhtml" also works with a range and in a Visual area: > 386 ":TOhtml" also works with a range and in a Visual area: >
387 387
388 :10,40TOhtml 388 :10,40TOhtml
389
390 ":TOhtml" has another special feature: if the window is in diff mode, it will
391 generate HTML that shows all the related windows. This can be disabled by
392 setting the g:diff_one_file variable: >
393
394 let g:diff_one_file = 1
389 395
390 After you save the resulting file, you can view it with any browser. The 396 After you save the resulting file, you can view it with any browser. The
391 colors should be exactly the same as you see them in Vim. 397 colors should be exactly the same as you see them in Vim.
392 398
393 To restrict the conversion to a range of lines set "html_start_line" and 399 To restrict the conversion to a range of lines set "html_start_line" and