Home >Backend Development >PHP Tutorial >Bug of VIM PIV plug-in, syntax highlighting occasionally lost when editing large PHP files

Bug of VIM PIV plug-in, syntax highlighting occasionally lost when editing large PHP files

巴扎黑
巴扎黑Original
2016-11-08 09:30:541247browse

When viewing PHP scripts with a large number of lines, such as G jumping to the bottom of the file, syntax highlighting is often lost. According to Google, this should be caused by a conflict with the auto-save function. For detailed discussion, see:



Solution , edit .vim/bundle/PIV/ftplugin/php.vim, delete the following lines:

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')

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn