###前提・実現したいこと
Vimで,プレグインを入れるためNeoBundleを導入しようとしています。
###発生している問題・エラーメッセージ
http://qiita.com/puriketu99/items/1c32d3f24cc2919203ebを参考に
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh > install.sh sh install.sh
を実行しました。
その後,:NeoBundleInstall
をvimで実行しました。
しかしVimで下のようなエラーが出てしまいました。
E492: Not an editor command: NeoBundleInstall
###該当のソースコード
また,_vimrcは下のような設定です。
set runtimepath+=~/.vim/bundle/neobundle.vim/ " ファイルをtree表示してくれる " :NERDTree NeoBundle 'scrooloose/nerdtree' " Ruby向けにendを自動挿入してくれる NeoBundle 'tpope/vim-endwise' " コメントON/OFFを手軽に実行 " Shift+vで対象穂範囲を選択し,ctrl+ハイフンを二回押す → コメントアウト・コメントイン NeoBundle 'tomtom/tcomment_vim' " シングルクオートとダブルクオートの入れ替え等 " :cs'" " :cs'<p> " :cs"' " :cs"<div> NeoBundle 'tpope/vim-surround' " インデントに色を付けて見やすくする NeoBundle 'nathanaelkane/vim-indent-guides' " vimを立ち上げたときに、自動的にvim-indent-guidesをオンにする let g:indent_guides_enable_on_vim_startup = 1 " https://sites.google.com/site/fudist/Home/vim-nihongo-ban/-vimrc-sample """""""""""""""""""""""""""""" " 挿入モード時、ステータスラインの色を変更 """""""""""""""""""""""""""""" let g:hi_insert = 'highlight StatusLine guifg=darkblue guibg=darkyellow gui=none ctermfg=blue ctermbg=yellow cterm=none' if has('syntax') augroup InsertHook autocmd! autocmd InsertEnter * call s:StatusLine('Enter') autocmd InsertLeave * call s:StatusLine('Leave') augroup END endif let s:slhlcmd = '' function! s:StatusLine(mode) if a:mode == 'Enter' silent! let s:slhlcmd = 'highlight ' . s:GetHighlight('StatusLine') silent exec g:hi_insert else highlight clear StatusLine silent exec s:slhlcmd endif endfunction function! s:GetHighlight(hi) redir => hl exec 'highlight '.a:hi redir END let hl = substitute(hl, '[\r\n]', '', 'g') let hl = substitute(hl, 'xxx', '', '') return hl endfunction """""""""""""""""""""""""""""" """""""""""""""""""""""""""""" " 自動的に閉じ括弧を入力 """""""""""""""""""""""""""""" imap { {}<LEFT> imap [ []<LEFT> imap ( ()<LEFT> """""""""""""""""""""""""""""" """""""""""""""""""""""""""""" " 最後のカーソル位置を復元する """""""""""""""""""""""""""""" if has("autocmd") autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal! g'\"" | \ endif endif """""""""""""""""""""""""""""" " カーソルが何行目の何列目に置かれているかを表示する set ruler
###バージョン
vimのバージョン
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 2 2017 05:50:02) MacOS X (unix) version
macのバージョン
macOS Sierra 10.12.3
どなたか,わかる方がいたら教えてもらえると嬉しいです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/03 08:43
2017/04/03 08:46 編集
2017/04/03 08:47
2017/04/03 16:58
2017/04/04 01:20
2017/04/04 01:20