• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wyk86485481
V2EX  ›  程序员

VIM PIV 插件的 bug,编辑 PHP 大文件偶尔会丢失语法高亮

  •  
  •   wyk86485481 · Aug 23, 2016 · 2012 views
    This topic created in 3562 days ago, the information mentioned may be changed or developed.

    在查看行数较多的 PHP 脚本时候,比如 G 跳到文件底部,经常会丢失语法高亮,经 google 这个应该是和自动保存功能冲突所引起,具体讨论见:

    https://github.com/spf13/PIV/issues/15

    解决方法,编辑.vim/bundle/PIV/ftplugin/php.vim , 删除如下几行:

    58 call s:InitVariable("g:load_doxygen_syntax", 1)
    59 call s:InitVariable("g:syntax_extra_php", 'doxygen')
    60 call s:InitVariable("g:syntax_extra_inc", 'doxygen')
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5535 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:35 · PVG 16:35 · LAX 01:35 · JFK 04:35
    ♥ Do have faith in what you're doing.