4

我正在尝试为 floobits ( https://floobits.com/help/plugins/nvim )安装 Neovim 插件,:PluginInstall在 Vim 中安装后,标题中出现错误。谁能告诉我我做错了什么?这是我的~/.vimrc文件。

 set nocompatible              " be iMproved, required
 filetype off                  " required

 " set the runtime path to include Vundle and initialize
 set rtp+=~/.vim/bundle/Vundle.vim
 call vundle#begin()
 " alternatively, pass a path where Vundle should install plugins
 "call vundle#begin('~/some/path/here')

 " let Vundle manage Vundle, required
 Plugin 'VundleVim/Vundle.vim'
 Plugin 'floobits/floobits-neovim'

 " All of your Plugins must be added before the following line
 call vundle#end()            " required
 filetype plugin indent on    " required
 " To ignore plugin indent changes, instead use:
 "filetype plugin on
 "
 " Brief help
 " :PluginList       - lists configured plugins
 " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
 " :PluginSearch foo - searches for foo; append `!` to refresh local cache
 " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
 "
 " see :h vundle for more details or wiki for FAQ
 " Put your non-Plugin stuff after this line

 ...
 ...
 ...
 (The rest of the file is the same as here
 https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim
 with the adition of the lines below at the end)

 " Configura arquivos html e javascript para identacao com 2 espacos
 autocmd FileType htmldjango setlocal sw=2 sts=2 et
 autocmd FileType javascript setlocal sw=2 sts=2 et

 " Configura linebreak automatico ao digitar a mensagem de commit
 autocmd FileType gitcommit set tw=72 colorcolumn=72

 " Desenha linha vertical vermelha em 110 caracteres para indicar limite
 autocmd FileType python setlocal textwidth=109 colorcolumn=110

 " Configura para mostrar o número das linhas
 set number

 " Permite circular pelas abas do vim usando Ctrl+Esquerda e Ctrl+Direita
 nnoremap <C-Left> :tabprevious<CR>
 nnoremap <C-Right> :tabnext<CR>

 " Aplicar PEP8 automaticamente a cada save dos arquivos python
 " 1) Instalar vim-pathogen (https://github.com/tpope/vim-pathogen - Aprox um package manager do vim):
 " mkdir -p ~/.vim/autoload ~/.vim/bundle && \
 " curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
 " 2) Instalar vim-flake8 dentro de ~/.vim/bundle (https://github.com/nvie/vim-flake8)
 " cd ~/.vim/bundle && \
 " git clone https://github.com/nvie/vim-flake8.git
 " 3) pip install flake8
 execute pathogen#infect()
 autocmd BufWritePost *.py call Flake8()

我从~/.vimrcto建立了一个符号链接~/.config/nvim/init.vim,根据https://github.com/neovim/neovim/wiki/FAQ#where-should-i-put-my-config-vimrc您可以从当前创建一个符号链接.vimrc 到那个路径。

在使用 Vundle 之前,我还使用病原体作为 vim 包管理器,并且已经运行

pip install neovim
pip3 install neovim
pip install neovim
pip3 install neovim

2次:一次用于python虚拟环境,另一次用于全局,同时用于python 2和3。

4

1 回答 1

0

尝试:checkhealth作为起点。

我的输出告诉我我安装了 Py3 模块,但没有安装 Py2 模块。

尝试:

pip2 install floobits

然后重新启动nvim

于 2018-10-24T08:19:53.800 回答