I use vim and power-line plugin, but I found my vim status line has a ugly red space in the left. who can help me to remove the red space.
Asked
Active
Viewed 188 times
0
-
What value do you get when you run `:set statusline?`? – Shammel Lee Jun 07 '17 at 07:32
-
I get this: `statusline=%!Pl#Statusline(0,1)` – Frank Jun 07 '17 at 07:34
-
You may be overwriting `statusline` in your `.vimrc` file. – Shammel Lee Jun 07 '17 at 07:35
-
What is your statusline configuration? What plugins are you using? – sensorario Jun 07 '17 at 12:00
-
`Plugin 'tpope/vim-fugitive'` `Plugin 'lokaltog/vim-powerline'` – Frank Jun 07 '17 at 14:05
1 Answers
0
This may be because you are using the deprecated (Lokaltog/vim-powerline) version of powerline as well as the system-wide version installed using pip globally in order to use it outside of vim.
In that case powerline docs say that you need to only use the global powerline version and so you need to add the following line to your .vimrc:
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup

Gomino
- 12,127
- 4
- 40
- 49