E464: Ambiguous use of user-defined command: Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'}
Hello,
I get the above error when I run vim.
My vimrc file is :
syntax on
set nocompatible " be iMproved, required
filetype off " required
if has("autocmd")
au BufReadPost * if line("'"") > 1 && line("'"") <= line("$") | exe "normal! g'"" | endif
endif
if &compatible
endif
set runtimepath+=/home/mohsen/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('/home/mohsen/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'rdnetto/YCM-Generator'
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Bundle 'YouCompleteMe'
Plugin 'tpope/vim-fugitive'
Plugin 'command-t'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'tmhedberg/SimpylFold'
filetype plugin on
set splitbelow
set splitright
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set foldmethod=indent
set foldlevel=99
nnoremap
My bundle dir : ls .vim/bundle/ -l total 68 drwxr-xr-x 6 mohsen mohsen 4096 Sep 19 15:12 command-t drwxr-xr-x 6 mohsen mohsen 4096 Sep 23 21:23 ctrlp.vim drwxr-xr-x 4 mohsen mohsen 4096 Sep 19 17:16 indentpython.vim -rw-r--r-- 1 mohsen mohsen 552 Sep 23 21:23 NeoBundle.lock drwxr-xr-x 8 mohsen mohsen 4096 Sep 23 21:18 neobundle.vim drwxr-xr-x 4 mohsen mohsen 4096 Sep 23 21:21 neosnippet-snippets drwxr-xr-x 12 mohsen mohsen 4096 Sep 23 21:22 neosnippet.vim drwxr-xr-x 7 mohsen mohsen 4096 Sep 19 17:09 SimpylFold drwxr-xr-x 6 mohsen mohsen 4096 Sep 19 15:05 sparkup drwxr-xr-x 8 mohsen mohsen 4096 Sep 22 20:46 syntastic drwxr-xr-x 5 mohsen mohsen 4096 Sep 23 21:22 vim-colorschemes drwxr-xr-x 5 mohsen mohsen 4096 Sep 24 16:26 vim-flake8 drwxr-xr-x 7 mohsen mohsen 4096 Sep 19 15:12 vim-fugitive drwxr-xr-x 7 mohsen mohsen 4096 Sep 23 21:23 vimshell_3787e5 drwxr-xr-x 8 mohsen mohsen 4096 Sep 19 14:42 Vundle.vim drwxr-xr-x 5 mohsen mohsen 4096 Sep 23 19:55 YCM-Generator drwxr-xr-x 11 mohsen mohsen 4096 Sep 20 17:50 YouCompleteMe
What's my problem?
As I see, you are use NeoBundle for plugin management.
Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'} is vim-plug command (another VIM plugin manager). Delete last line in your vimrc and rerun vim.