2012-03-10 1 views

답변

3

이 간단한 기능처럼 &filetype을 사용하십시오.

function ToggleFT() 
    if &filetype == 'html' 
    set filetype=php 
    elseif &filetype == 'php' 
    set ft=html 
    endif 
endfunction 
관련 문제