Home > OS >  Vim has a little problem, hope someone can solve
Vim has a little problem, hope someone can solve

Time:09-18

I don't know what configuration, each open vim tips can be normal use after this press enter, often I. Vimrc empty nothing configuration
[xiaofang @ Radiance vimfiles] $vim archlinux. Vim
Traceback (the most recent call last) :
The File "& lt; String>" Line 9, the in & lt; module>
ImportError: No module named powerline. Vim
An error occurred while importing powerline module.
This could be under caused by invalid sys. Path setting,
Or by an incompatible Python version (which requires
Python 2.6, 2.7 or 3.2 and later to work). Both Please consult
The troubleshooting section in the documentation for
Possible solutions.
If powerline on your system is installed for python 3 only you
Should set g: powerline_pycmd to "py3" to make it load correctly.
Unable to import the powerline, is it installed?
Press ENTER or type the command to continue

CodePudding user response:

You to install a powerline in vim plug-in,
According to the following tips, which is dependent on the python,
You see whether python installed correctly

CodePudding user response:

I met the same problem also
My solution is as follows:
Install
Powerline
Powerline - fonts
Powerline - vim
New ~/. Vimrc file
Fill in the
Let g: powerline_pycmd="py3"
The set laststatus=2
The set t_Co=256
Syntax on
Can
You can try
  • Related