【vim】NeoBundleUpdate したら detected while processing function のエラー

NeoBundleUpdate したら以下のエラーが出た。

my-pc:~ xxx$ vim .vimrc 
Error detected while processing function neobundle#begin..neobundle#init#_rc..neobundle#get_rtp_dir:
line    3:
E739: Cannot create directory: /.neobundle
Error detected while processing function neobundle#begin..neobundle#init#_rc..neobundle#config#init..neobundle#config#load_extra_bundles..neobundle#get_neobundle_dir:
line    3:
E739: Cannot create directory: 
Error detected while processing function neobundle#parser#fetch..<SNR>11_parse_arg..neobundle#parser#_init_bundle..neobundle#init#_bundle..neobundle#get_neobundle_dir:
line    3:
E739: Cannot create directory: 
Error detected while processing function neobundle#parser#bundle..<SNR>11_parse_arg..neobundle#parser#_init_bundle..neobundle#init#_bundle..neobundle#get_neobundle_dir:
line    3:
E739: Cannot create directory: 
E739: Cannot create directory: 
E739: Cannot create directory: 
E739: Cannot create directory: 
Error detected while processing function neobundle#end..neobundle#config#final..neobundle#get_rtp_dir:
line    3:
E739: Cannot create directory: /.neobundle
Press ENTER or type command to continue

ググると、ファイルやディレクトリのパーミッションが違うとか出てくるけど、問題なかった。

で、NeoBundleのサイトを確認。
https://github.com/Shougo/neobundle.vim

すると、.vimrc の書き方が自分のとは違う。
以下のようにするらしい。

" Note: Skip initialization for vim-tiny or vim-small.
 if 0 | endif

 if has('vim_starting')
   if &compatible
     set nocompatible               " Be iMproved
   endif

   " Required:
   set runtimepath+=~/.vim/bundle/neobundle.vim/
 endif

 " Required:
 call neobundle#begin(expand('~/.vim/bundle/'))

 " Let NeoBundle manage NeoBundle
 " Required:
 NeoBundleFetch 'Shougo/neobundle.vim'

 " My Bundles here:
 " Refer to |:NeoBundle-examples|.
 " Note: You don't set neobundle setting in .gvimrc!

 call neobundle#end()

 " Required:
 filetype plugin indent on

 " If there are uninstalled bundles found on startup,
 " this will conveniently prompt you to install them.
 NeoBundleCheck

なんか自分のやつと全然違ったので、この通りに修正。
修正といっても、今まで NeoBundle 'Shougo/unite.vim' って書いてたのを
call neobundle#begin(expand('~/.vim/bundle/'))

call neobundle#end()
の間に書きなおしただけ。

これで直りました。