Syntastic 설치 문제 : ^ m 파일 엔딩
문제
Cygwin을 사용하여 Vim에 대한 구문을 설치하려고합니다.2.1 단계와 2 단계의 복제 부분을 완료 한 후 Syntastic의 설치 안내서 나는 VIM을 실행합니다. 다음과 같은 오류가 발생합니다.
Error detected while processing /home/rjw08/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim:
line 1:
E15: Invalid expression: exists("g:loaded_syntastic_notifier_autoloclist") || !exists("g:loaded_syntastic_plugin")^M
line 39:
E171: Missing :endif
Error detected while processing /home/rjw08/.vim/bundle/syntastic/plugin/syntastic/balloons.vim:
line 1:
E15: Invalid expression: exists("g:loaded_syntastic_notifier_balloons") || !exists("g:loaded_syntastic_plugin")^M
line 67:
E171: Missing :endif
Error detected while processing /home/rjw08/.vim/bundle/syntastic/plugin/syntastic/checker.vim:
line 1:
E15: Invalid expression: exists("g:loaded_syntastic_checker") || !exists("g:loaded_syntastic_plugin")^M
.
더 많은 오류가 있었지만이 기본 형식을 따릅니다.내가 이해하는 것에서, 나열된 파일의 파일 결말은 올바르지 않습니다 (즉, 즉 ^ m).그러나 VIM에서 이러한 파일을 열면 삭제할 ^ M 결말이 아닙니다.
어떻게이 문제를 해결할 수 있습니까?
해결책
파일을 VIM에로드 한 다음 :set fileformat=unix
및 :wq
를 수정해야합니다.
PS : Vim은 Vim이 DOS 파일이라고 생각되기 때문에 ^ ms가 보이지 않습니다.
다른 팁
이 명령은 모든 파일을 ~ / .vim / bundle 디렉토리에서 UNIX 파일로 변환합니다.
find ~/.vim/bundle -type f -follow -print|xargs dos2unix
. 제휴하지 않습니다 StackOverflow