rdnetto / YCM-Generator

Generates config files for YouCompleteMe (https://github.com/Valloric/YouCompleteMe)
GNU General Public License v3.0
917 stars 128 forks source link

E464: Ambiguous use of user-defined command: Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'} #124

Open gpahlevanzadeh opened 6 years ago

gpahlevanzadeh commented 6 years ago

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 nnoremap nnoremap nnoremap set foldmethod=indent set foldlevel=99 nnoremap za let g:SimpylFold_docstring_preview=1 au BufNewFile,BufRead .py \ set tabstop=4 | \ set softtabstop=4 | \ set shiftwidth=4 | \ set textwidth=79 | \ set expandtab | \ set autoindent | \ set fileformat=unix au BufNewFile,BufRead .js, .html, .css \ set tabstop=2 | \ set softtabstop=2 | \ set shiftwidth=2 Plugin 'vim-scripts/indentpython.vim' set encoding=utf-8 let g:ycm_autoclose_preview_window_after_completion=1 map g :YcmCompleter GoToDefinitionElseDeclaration execute pathogen#infect() Plugin 'vim-syntastic/syntastic' Plugin 'nvie/vim-flake8' let python_highlight_all=1 set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=% let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_python_checkers = ['pylint'] let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd'] let g:syntastic_tex_checkers = ['lacheck', 'text/language_check'] let g:syntastic_aggregate_errors = 1 let g:syntastic_enable_perl_checker = 1 Plug 'rdnetto/YCM-Generator' , { 'branch': 'stable'

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?

bchirva commented 6 years ago

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.