vim內(nèi)過長字符串導(dǎo)致的語法加亮錯誤keyword:VIM 3000個字符 語法錯誤
這是vim7以后的默認設(shè)置導(dǎo)致的,其目的是鼓勵寫出干凈的代碼,但如果遇到XML或加密的字符串將導(dǎo)致語法加亮的問題,解決辦法一種是將此值設(shè)大一點,另一種是設(shè)置為0以將其關(guān)閉. set synmaxcol=10000 或 set synmaxcol=0 Maximum column in which to search for syntax items. In long lines the text after this column is not highlighted and following lines may not be highlighted correctly, because the syntax state is cleared. This helps to avoid very slow redrawing for an XML file that is on long line. Set to zero to remove the limit. |
|