###前提・実現したいこと
現在Vimを勉強中なのですがプラグイン管理にDeinが良いという
内容を見つけ色々と試したいと思い導入したのですが
いきなり躓いたので質問させていただきたいと思いました。
環境はMACでbrewで最新のvimをインストールしました。
###発生している問題・エラーメッセージ
PHPの補完機能が正常に動作しなくて困っております。
入力して候補が出てこない状態です。
色々調べた結果補完機能に必要なプラグインは
call dein#add('Shougo/neocomplete.vim') " 自動補完
call dein#add('violetyk/neocomplete-php.vim')
上記の二つで記述しました。
let g:neocomplete_php_locale = 'ja'
を記述し
:PhpMakeDict ja
も実行しFinishまで確認済みです。
色々と情報が足りないかとは思いますが、初めての導入ですので
どうかお手柔らかにお願いします!
###該当のソースコード
以下vim.rcの内容になります。
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/Users/mba/.vim/bundle/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/Users/mba/.vim/bundle')
call dein#begin('/Users/mba/.vim/bundle')
" Let dein manage dein
" Required:
call dein#add('/Users/mba/.vim/bundle/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
call dein#add('Shougo/unite.vim')
"call dein#add('tomasr/molokai') " カラースキーム
"call dein#add('nathanaelkane/vim-indent-guides') " インデントカラー
"call dein#add('tpope/vim-fugitive') " Gitコマンド
"call dein#add('mattn/emmet-vim')
"call dein#add('t9md/vim-textmanip') " 選択したブロックを移動・複製
"call dein#add('scrooloose/nerdtree') " ディレクトリツリー
call dein#add('Shougo/neocomplete.vim') " 自動補完
call dein#add('violetyk/neocomplete-php.vim')
call dein#add('vim-scripts/PDV--phpDocumentor-for-Vim')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
"End dein Scripts-------------------------
"
let g:neocomplete_php_locale = 'ja'
"PHP Document For VIM
inoremap <C-P> <Esc>:call PhpDocSingle()<CR>i
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocSingle()<CR>
set clipboard=unnamed,autoselect
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/29 10:03
2017/03/29 10:27
2017/03/29 10:53
2017/03/29 11:40
2017/03/29 13:30