两个命令把 Vim 打造成 Python IDE

本网站用的阿里云ECS,推荐大家用。自己搞个学习研究也不错

先卸载:
gj@Dell ~ % sudo /home/gj/anaconda2/bin/pip uninstall vim-debug
The directory ‘/home/gj/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Uninstalling vim-debug-1.5.4:
/home/gj/anaconda2/bin/install-vim-debug.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug-1.5.4-py2.7.egg-info
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/__init__.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/__init__.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/_commands.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/_commands.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/commands.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/commands.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/dbgp.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/dbgp.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/debugger.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/debugger.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/errors.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/errors.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/new_debugger.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/new_debugger.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/protocol.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/protocol.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/stack.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/stack.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/subwindows.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/subwindows.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/ui.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/ui.pyc
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/window.py
/home/gj/anaconda2/lib/python2.7/site-packages/vim_debug/window.pyc
Proceed (y/n)? y
Successfully uninstalled vim-debug-1.5.4
The directory ‘/home/gj/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

再重新安装:
gj@Dell ~ % sudo /home/gj/anaconda2/bin/pip install vim-debug
The directory ‘/home/gj/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/gj/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting vim-debug
Downloading vim-debug-1.5.4.tar.gz
Installing collected packages: vim-debug
Running setup.py install for vim-debug
Successfully installed vim-debug-1.5.4

显示vim-debug信息:
gj@Dell ~ % pip show vim-debug

Metadata-Version: 1.0
Name: vim-debug
Version: 1.5.4
Summary: a plugin for vim that creates an integrated debugging environment
Home-page: http://jaredforsyth.com/projects/vim-debug/
Author: Jared Forsyth
Author-email: jared@jaredforsyth.com
License: UNKNOWN
Location: /home/gj/anaconda2/lib/python2.7/site-packages
Requires:

gj@Dell ~ % vi test.py
python module vim_debug not found…
Press ENTER or type command to continue

貌似还是不行。。。

转载自演道,想查看更及时的互联网产品技术热点文章请点击http://go2live.cn

未经允许不得转载:演道网 » 两个命令把 Vim 打造成 Python IDE

赞 (0)
分享到:更多 ()

评论 0

评论前必须登录!

登陆 注册