2014-09-22 2 views
1

저는 Vagrant와 VirtualBox를 사용하여 Ubuntu Trusty 컴퓨터를 설정하고 제공합니다. 프로비저닝 단계에서 내 및 .tmux.conf 파일과 내 .vim 폴더를 포함하는 내 점 파일을 다운로드합니다.Ubuntu trusty64에 Vim 플러그인을로드 할 수 없습니다.

.tmux.conf 잘 작동하지만 내 .vimrc이 내 플러그인을로드하는 데 실패 했으므로 (Pathogen 플러그인 관리자를 사용함) Vim을 시작할 때 특정 색상 체계가 발견되지 않았 음을 알았습니다 (특정 색상 구성표 플러그인을 통해로드 됨) 및 .vimrc 내의 일부 다른 플러그인 관련 설정으로 인해 오류가 표시됩니다. 다음은

이 내 (가 관련이 있지만, 경우에 당신은 내가에서 리눅스 인스턴스 최대로 사용하고 내용 상자 궁금해하지 않는 것이) Vagrantfile :

VAGRANTFILE_API_VERSION = "2" 

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 
    config.vm.box = "ubuntu/trusty64" 
    config.vm.network :private_network, ip: "172.17.8.100" 
    config.vm.synced_folder "./Application", "/www", create: true 

    config.vm.provision "shell" do |s| 
    s.privileged = true 
    s.path = "provision.sh" 
    end 

    config.ssh.forward_agent = true 
    config.ssh.forward_x11 = true 
end 

전체 프로비저닝 스크립트가 여기 볼 수 있습니다 : https://github.com/Integralist/Linux-and-Docker-Development-Environment/blob/master/provision.sh은 다음하지만 중요한 (내 dotfiles의 자식 복제 예와 관련 linux 분기를 체크 아웃) 섹션이기 때문에 : 나는 모든 dotfiles를 이동하고있어 위의 코드에서

dotfiles_location=/home/vagrant/dotfiles 
git clone https://github.com/Integralist/dotfiles.git $dotfiles_location 
cd $dotfiles_location && git fetch && git checkout linux 
shopt -s extglob 
mv !(.|..|.git|README.md) .. 

(예 : .vimrc, .vim.tmux.conf)을 /home/vagrant/ (참고 : .git 폴더와 같이 괄호 안에 지정된 파일은 이동하지 않습니다.)

나는 다음과 같은 오류 얻을 vim 실행 :

Error detected while processing /home/vagrant/.vimrc: 
line 125: 
E185: Cannot find color scheme 'Tomorrow-Night' 

그리고를 다시 Vim은 그 오류 내 : 나는 병원체의 repo에 다른 리눅스 관련 문제를 검토 한

Error detected while processing VimEnter Auto commands for "*": 
E492: Not an editor command: RainbowParenthesesToggle 

하지만, 어디서 문제가 발생했는지 알 수는 없습니까?

실행 :scriptnames 반환 :

:set loadplugins? 반환 loadplugins

실행 :set compatible? 반환 nocompatible을 실행

runtimepath= 
~/.vim, 
/var/lib/vim/addons, 
/usr/share/vim/vimfiles, 
/usr/share/vim/vim74, 
/usr/share/vim/vimfiles/after, 
/var/lib/vim/addons/after, 
~/.vim/after 

:

1: /usr/share/vim/vimrc 
    2: /usr/share/vim/vim74/debian.vim 
    3: /usr/share/vim/vim74/syntax/syntax.vim 
    4: /usr/share/vim/vim74/syntax/synload.vim 
    5: /usr/share/vim/vim74/syntax/syncolor.vim 
    6: /usr/share/vim/vim74/filetype.vim 
    7: ~/.vimrc 
    8: /usr/share/vim/vim74/syntax/nosyntax.vim 
    9: ~/.vim/autoload/pathogen.vim 
10: /usr/share/vim/vim74/ftoff.vim 
11: /usr/share/vim/vim74/ftplugin.vim 
12: /usr/share/vim/vim74/indent.vim 
13: ~/.vim/plugin/BufOnly.vim 
14: ~/.vim/plugin/scratch.vim 
15: ~/.vim/bundle/ZoomWin/plugin/ZoomWinPlugin.vim 
16: /usr/share/vim/vim74/plugin/getscriptPlugin.vim 
17: /usr/share/vim/vim74/plugin/gzip.vim 
18: /usr/share/vim/vim74/plugin/matchparen.vim 
19: /usr/share/vim/vim74/plugin/netrwPlugin.vim 
20: /usr/share/vim/vim74/plugin/rrhelper.vim 
21: /usr/share/vim/vim74/plugin/spellfile.vim 
22: /usr/share/vim/vim74/plugin/tarPlugin.vim 
23: /usr/share/vim/vim74/plugin/tohtml.vim 
24: /usr/share/vim/vim74/plugin/vimballPlugin.vim 
25: /usr/share/vim/vim74/plugin/zipPlugin.vim 

:set rtp 수익을 실행

:scriptnames 출력을 보면 병원체 파일 앞에 .vimrc이로드 된 것 같습니다. 하지만 그럴 경우 어떻게 해결해야할지 모르겠다. 그래서 항상 먼저로드된다. 나는 그것에 대해 GitHub의에 팀 교황 (병원체의 저자)와 통화 그는 제안 :

"It's your vimrc's job to load pathogen.vim so the ordering is correct. Confirm how you're invoking pathogen and the directory structure of your Vim directory"

내가 다음 설명과 대답 (참고 : 나는 그래서 내가 지금 여기에 도움을 찾고 있어요, 다시 아무것도 듣지 않았다) ...

여기 내 전체 점 파일 구조는 https://github.com/Integralist/dotfiles (기술적으로는 linux 브랜치)입니다.

는 특히 난 여기가 호출 https://github.com/Integralist/dotfiles/blob/linux/.vimrc#L119-L120

참고 :이 dotfiles 내 Mac에서 잘 작동 그리고 내가 병원체에 의해로드되지 않는 플러그인에 문제를 발견 한 경우에만 리눅스 머신에로드하기 때문에입니다. 최상위 트리 구조 아래에 볼 수 있습니다

...

. 
├── .agignore 
├── .bashrc 
├── .gitconfig 
├── .gitignore_global 
├── .irssi 
├── .tmux.conf 
├── .vim 
│   ├── .netrwhist 
│   ├── autoload 
│   │   └── pathogen.vim 
│   ├── bundle 
│   │   ├── CSApprox 
│   │   ├── Dockerfile.vim 
│   │   ├── Gist.vim 
│   │   ├── Tabmerge 
│   │   ├── ZoomWin 
│   │   ├── ack.vim 
│   │   ├── camelcasemotion 
│   │   ├── ctrlp.vim 
│   │   ├── emmet-vim 
│   │   ├── gruvbox 
│   │   ├── html5.vim 
│   │   ├── nerdtree 
│   │   ├── rainbow_parentheses.vim 
│   │   ├── supertab 
│   │   ├── syntastic 
│   │   ├── tabular 
│   │   ├── targets.vim 
│   │   ├── textutil.vim 
│   │   ├── tomorrow-night-vim 
│   │   ├── vim-airline 
│   │   ├── vim-bookmarks 
│   │   ├── vim-choosewin 
│   │   ├── vim-clojure-highlight 
│   │   ├── vim-clojure-static 
│   │   ├── vim-colors-pencil 
│   │   ├── vim-commentary 
│   │   ├── vim-cucumber 
│   │   ├── vim-dispatch 
│   │   ├── vim-endwise 
│   │   ├── vim-fireplace 
│   │   ├── vim-fugitive 
│   │   ├── vim-gitgutter 
│   │   ├── vim-haml 
│   │   ├── vim-leiningen 
│   │   ├── vim-localrc 
│   │   ├── vim-markdown 
│   │   ├── vim-node 
│   │   ├── vim-polyglot 
│   │   ├── vim-repeat 
│   │   ├── vim-ruby 
│   │   ├── vim-sexp 
│   │   ├── vim-sexp-mappings-for-regular-people 
│   │   ├── vim-surround 
│   │   ├── vim-tbone 
│   │   ├── webapi-vim 
│   │   └── wildfire.vim 
│   ├── colors 
│   │   ├── Tomorrow-Solarized.vim 
│   │   ├── badwolf.vim 
│   │   ├── blazer.vim 
│   │   ├── flatland.vim 
│   │   ├── github.vim 
│   │   ├── gruvbox.vim 
│   │   ├── kellys.vim 
│   │   ├── vividchalk.vim 
│   │   └── whitebox.vim 
│   └── plugin 
│    ├── BufOnly.vim 
│    └── scratch.vim 
├── .vimrc 

bundle 디렉터리에서 모든 플러그인을 삭제하고 tomorrow-night-vim 플러그인 폴더에 다시 퍼팅 시도하지만 이후 여전히 빔 찾을 수없는 것 플러그인을 실행했을 때 :colorscheme Tomorrow 파일을 찾지 못했습니다 (이 문제는 다른 플러그인이 문제를 일으키고 다른 모든 플러그인을로드하는 것을 멈추게하는 희망이었습니다 -> 내가 아는 한 빨래를 쥐고있는 것).

다음 출력은 내 Mac에서 유사한 셋업에 :scriptnames을 실행입니다 :

~/.vimrc 
    2: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/syntax/syntax.vim 
    3: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/syntax/synload.vim 
    4: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/syntax/syncolor.vim 
    5: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/filetype.vim 
    6: ~/.vim/autoload/pathogen.vim 
    7: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/ftoff.vim 
    8: ~/.vim/bundle/Dockerfile.vim/ftdetect/Dockerfile.vim 
    9: ~/.vim/bundle/vim-clojure-static/ftdetect/clojure.vim 
10: ~/.vim/bundle/vim-cucumber/ftdetect/cucumber.vim 
11: ~/.vim/bundle/vim-haml/ftdetect/haml.vim 
12: ~/.vim/bundle/vim-markdown/ftdetect/markdown.vim 
13: ~/.vim/bundle/vim-node/ftdetect/node.vim 
14: ~/.vim/bundle/vim-polyglot/ftdetect/polyglot.vim 
15: ~/.vim/bundle/vim-ruby/ftdetect/ruby.vim 
16: ~/.vim/bundle/vim-polyglot/after/ftdetect/rspec.vim 
17: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/ftplugin.vim 
18: /usr/local/Cellar/vim/7.4.335/share/vim/vim74/indent.vim 
19: ~/.vim/bundle/tomorrow-night-vim/colors/Tomorrow-Night.vim 
20: ~/.vim/plugin/BufOnly.vim 
21: ~/.vim/plugin/scratch.vim 
22: ~/.vim/bundle/ack.vim/plugin/ack.vim 
23: ~/.vim/bundle/camelcasemotion/plugin/camelcasemotion.vim 
24: ~/.vim/bundle/CSApprox/plugin/CSApprox.vim 
25: ~/.vim/bundle/ctrlp.vim/plugin/ctrlp.vim 
26: ~/.vim/bundle/ctrlp.vim/autoload/ctrlp/mrufiles.vim 
27: ~/.vim/bundle/emmet-vim/plugin/emmet.vim 
28: ~/.vim/bundle/Gist.vim/plugin/gist.vim 
29: ~/.vim/bundle/nerdtree/plugin/NERD_tree.vim 
30: ~/.vim/bundle/nerdtree/autoload/nerdtree.vim 
31: ~/.vim/bundle/nerdtree/lib/nerdtree/path.vim 
32: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_controller.vim 
+0

내 플러그인이 GitHub에 업로드되지 않은 것 같습니다. -/이유는 모르겠습니다. git repos (예 : .git 파일) 폴더를 업로드하는 방법을 알아야합니다. 그러면 문제가 해결됩니다. – Integralist

+0

118-120 줄을 * line * 1 앞의 파일 맨 위로 이동하십시오. – romainl

답변

0

는 그래서 문제가 병원체로하지만 힘내하지이었다 보인다 내 서브 모듈을 커밋하지. 분명히 거기 .gitmodules 파일을 사용하여이 문제를 해결하는 방법입니다하지만 난 그게 더 내가 몇 가지 기본적인 유닉스를 사용하여 문제를 해결 조사 할 시간이 없었다 명령 :

find . -type d -name '.git' | xargs rm -rf

내가 다음에 할 수 있었다 submodule 폴더의 내용을 커밋하십시오.

관련 문제