vim - Flobits错误: no neovim python module

标签 vim neovim vundle

我正在尝试为 floobits ( https://floobits.com/help/plugins/nvim ) 安装 Neovim 插件,在 Vim 中安装 :PluginInstall 后,我收到标题中的错误。谁能告诉我我做错了什么?这是我的 ~/.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()

我从 ~/.vimrc~/.config/nvim/init.vim 建立了一个符号链接(symbolic link),根据https://github.com/neovim/neovim/wiki/FAQ#where-should-i-put-my-config-vimrc您只需创建一个从当前 .vimrc 到该路径的符号链接(symbolic link)即可。

在使用 Vundle 之前,我也使用 Pathogen 作为 vim 包管理器,并且已经运行了

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

2 次:一次用于 python 虚拟环境,另一次全局,并且适用于 python 2 和 3。

最佳答案

尝试以 :checkhealth 作为起点。

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

尝试:

pip2 install floobits

然后重新启动nvim

关于vim - Flobits错误: no neovim python module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46544922/

相关文章:

vim - 在哪里可以找到 go 语言的 Vim 语法文件?

vim - 使用 'go fmt' 工具正常运行的 Vim 进行注释

javascript - Neovim:如何修复 HTML 中 JavaScript 的缩进?

neovim - Windows neovim vim-plug 错误 : `git` executable not found

bash - 如何在 macOS 终端中退出 vim 后显示以前的 shell 命令?

linux - vim 的颜色方案适用于白蚁,不适用于 urxvt

rust - 如何通过 LanguageClient-neovim 配置 Rust 语言服务器?

vim - Vundle插件卸载后仍然存在

vim - 为什么每次在 vim 中使用 Black 都需要运行 PluginInstall?

vim - 如何在vim中同时使用pathogen和Vundle?