2
파일의 현재 filetype
을 변수로 가져 오려면 어떻게해야합니까?현재`filetype`을 기반으로`filetype` 변경하기
기본적으로 html
과 php
파일 유형간에 전환하는 키를 설정하려고합니다.
파일의 현재 filetype
을 변수로 가져 오려면 어떻게해야합니까?현재`filetype`을 기반으로`filetype` 변경하기
기본적으로 html
과 php
파일 유형간에 전환하는 키를 설정하려고합니다.
이 간단한 기능처럼 &filetype
을 사용하십시오.
function ToggleFT()
if &filetype == 'html'
set filetype=php
elseif &filetype == 'php'
set ft=html
endif
endfunction