ohmy zsh - Не является командой редактора: Plug - PullRequest
0 голосов
/ 16 апреля 2020

Я пытаюсь настроить свой терминал. мой .vimrc файл работал без проблем, и я смог увидеть все плагины.

Однако после установки ohmyzsh я получаю следующую ошибку.

E492: Not an editor command: Plug 'vim-airline/vim-airline'

Вот так выглядят мои .vimrc файлы.

set t_Co=256
" Vim-plug initialization
" Avoid modify this section, unless you are very sure of what you are doing

let vim_plug_just_installed = 0
let vim_plug_path = expand('~/.vim/autoload/plug.vim')
if !filereadable(vim_plug_path)
    echo "Installing Vim-plug..."
    echo ""
    silent !mkdir -p ~/.vim/autoload
    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    let vim_plug_just_installed = 1
endif

" manually load vim-plug the first time
if vim_plug_just_installed
    :execute 'source '.fnameescape(vim_plug_path)
endif

" this needs to be here, so vim-plug knows we are declaring the plugins we
" want to use
call plug#begin('~/.vim/plugged')

" Airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()

...