V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wyk86485481
V2EX  ›  程序员

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

  •  
  •   wyk86485481 · Aug 23, 2016 · 1964 views
    This topic created in 3539 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   ·   798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:16 · PVG 06:16 · LAX 15:16 · JFK 18:16
    ♥ Do have faith in what you're doing.