2012-08-26 4 views
0

vim wiki의 예제 vimrc를 사용하고 있는데 "filetype indent plugin on"이 포함되어 있습니다. 나는 "filetype plugin on"과 "filetype indent on"을 설정하는 것과 같은지, 아니면 별도의 명령에서 "filetype plugin"을 켜야하는지 궁금합니다.vim에서 파일 형식 명령을 결합 하시겠습니까?

또한 "filetype plugin indent on"은 "filetype indent plugin on"과 동일합니다.

답변

5

그들이 개별적으로 제공 될 수

filetype plugin on 
filetype indent on 

이것은 단일 선 명령과 동일하다 : filetype indent plugin on 또는 filetype plugin indent on.

명령과 filetype indent plugin on은 파일 형식 감지를 설정합니다 (filetype on).

pluginindent은 두 개의 개별 filetype 플래그입니다. 플래그의 개별 상태를 보려면 단지 :filetype을 입력하십시오.

+0

"filetype indent plugin on"("filetype plugin on"+ "filetype indent on")과 동일합니까? – bab

+0

@ user1163114 예, 그렇습니다. – romainl

관련 문제