YiaYiaO

唐老鸭有一个农场,咿啊咿啊噢


  • 首页

  • 标签

  • 分类

  • 归档

Vim Installation on Ubuntu

发表于 2017-02-12 | 更新于 2019-03-03

Vim is one of the most fantastic editors for coding. Once I have installed the Ubuntu system, the next step will be the installation or configuration of Vim. Good configuration takes much time, but finally you will find it’s worth to do that. Here I record how I configure my vim, just make a simple record in case that I will configure it again, and may you, my dear reader, like it!

Wonderful Guide from Github

Here is a wonderful guide I followed to configure my vim: ma6174
Just follow the guide you will get a get a well configed vim, with many useful plug-ins which can help you show the file structure, autocomplete the code, do code checks and more. But when I tried on my computer, there was one shortpoint about this guide, if you want to know it, keep on reading.

Replace Pyflakes with Flake8

Once you have followed the guide and finished the installation of vim, you can try this command:

1
vim test.py

If everything is OK and there is no error on you terminal page, congratulations, enjoy your Vim. But during my configuration, I got a error:

When I searched the internet, there was a page written that pyflakes is obsoleting, and flake8 was suggested to replace pyflakes. So I removed the plug-in pyflakes and then installed flake8.

  • How to Remove Pyflakes:

1
rm ~/.vim/ftplugin/python/pyflakes.vim
  • How to Install Flake8:

Just give a link here, follow this guide and you can manage it yourself: flake8

123
Leon

Leon

君子励锋芒之剑
隐而不发
21 日志
6 分类
4 标签
GitHub E-Mail
© 2019 Leon
由 Hexo 强力驱动 v3.9.0
|
主题 – NexT.Mist v7.0.1