execute pathogen#infect()모든 플러그인을로드하기 위해 호출 하는 대신 모든 플러그인을 호출하십시오 pathogen#interpose.
execute pathogen#interpose('bundle/unicode.vim')
execute pathogen#interpose('bundle/AnsiEsc.vim')
병원체 API는 소스 외부에 문서화되어 있지 않지만 함수 이름이 모호하고 설명 적이 지 않아도 간단합니다. pathogen#surround()절대 경로 에도 사용할 수 있습니다 .
기본적으로 조건부로 플러그인을로드 할 수 있습니다 autocmd.
" Always use this plugin
execute pathogen#interpose('bundle/unicode.vim')
" Only for Python
autocmd FileType python execute pathogen#interpose('bundle/vim-sexp')
이러한 경우가 많으면 다른 경로로 나눌 수도 있습니다.
이렇게하면 autocmd모든 파일 유형 / 플러그인에 대해 전체 묶음을 추가 할 필요가 없습니다 .
이것이 존재 :set syntax whatever하면 플러그인을 전환합니까? 그것이 슈퍼이기 때문에 :)
플러그인이로드되면로드됩니다. A "플러그인은"단순히의 모음입니다 function, command그리고 mapdefinitons. 나는 이것을 "언로드"하는 간단한 방법을 모른다.
그것은 수행 사용 IFF 파일 타입의로드 플러그인을 :set filetype; 일반적으로, 당신은 항상 사용할 :set filetype와 하지 :set syntax , 같은 syntax단지 들여 쓰기 및 기타 설정 (예 : 구문 강조를 설정하고,하지 않을 것이다 iskeyword, formatexpr등).