Save vimdiff output?

前端 未结 5 1906
一生所求
一生所求 2021-01-30 21:14

I google\'d this multiple times in the past but I\'ve never found an answer. Is there a way to save vimdiff\'s output (preferably while maintaining colors, highlights, etc.)? I\

5条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 21:24

    There are at least two options for saving vim colouring: it is :TOhtml distributed with vim itself and more advanced my format.vim plugin. Advantages of my plugin over :TOhtml are described on the plugin page. Command to format vimdiff to html:

    :Format diffformat
    

提交回复
热议问题