LoginSignup
6
5

More than 5 years have passed since last update.

neobundleの指定には絶対パスを使う

Posted at

最初の設定

Neobundle - vim入門githubを参考に.vimrcを書いた。
NeoBundleは複数端末にvimrcを同期する時、毎回cloneするのが嫌だったのでサブモジュール化した。

if has('vim_starting')
    set compatible
endif
set rtp+=./neobundle.vim/
endif
"Required
call neobundle#begin(expand('~/dotfiles/'))
NeoBundleFetch 'Shougo/neobundle.vim'

これを作成している間はどんどんインストールがされていってワクワクして寝た。

朝起きたら動かない

さーRubyの勉強するかーっと思って~/sandbox/ruby-getting-start/内のRubyファイルをvimで開くと、

Error detected while processing /Users/Ox9n/.vimrc:
line   16:
E117: Unknown function: neobundle#begin
line   17:
E492: Not...

vimrcやneobundle.vimがあるディレクトリでは開けて、それ以外のディレクトリでは開けない…ってことは…

if has('vim_starting')
    if &compatible
        set compatible
    endif
    set rtp+=~/dotfiles/neobundle.vim/
endif
"Required
call neobundle#begin(expand('~/dotfiles/'))
NeoBundleFetch 'Shougo/neobundle.vim'

絶対パス指定にしたら動いた。失礼しました。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5