太过分了,
我无法让python-mode的连接器在4个vim安装上工作。
在2台运行Windows 10和Python 2.7.14的PC上,我从vim 7.4升级到8.1。 vim 8.1的步骤如下:
mkdir C:\Users\Steve\vimfiles\pack\plugins\opt
cd C:\Users\Steve\vimfiles\pack\plugins\opt
git clone https://github.com/python-mode/python-mode
cd pymode
git submodule update --init --recursive
:packadd python-mode
:helptags ~/vimfiles/pack/plugins/opt/python-mode
我的_vimrc和.vimrc(参见下面的Ubuntu安装)已经有好几年了:
" pymode - Note: see :help Pymode for defaults already set
let g:pymode_trim_whitespaces = 1 " trim unused white spaces on save
let g:pymode_indent = 1 " PEP8-compatible python indent
let g:pymode_doc = 1 " turns on the documentation script
let g:pymode_lint_on_write = 1 " check code on save if file has been modified
let g:pymode_quickfix_maxheight = 12
let g:pymode_lint_signs = 0 " don't show left error symbol column
let g:pymode_lint_checkers = ['pylint', 'pyflakes', 'pep8', 'mccabe']
在Windows 10中,当我使用故意编码错误测试短路时,没有任何反应。
在运行Windows 10的2台PC上,我安装了Ubuntu子系统,包括Python 2.7.12,Python 3.5.2和vim 7.4。我使用Vundle来管理我的插件。 vim 7.4与Vundle的步骤如下:
:PluginClean (to remove old python-mode)
:PluginInstall (to install new python-mode)
:q
cd .vim/bundle/python-mode
git submodule update --init --recursive
在Ubuntu中,当我测试带有故意编码错误的短路时,会报告第一个错误然后退出。
我已经在几台不同的计算机上使用了python-mode的连接器多年。在这个版本的python-mode中有什么东西坏了,或者我在4个python-mode安装中做错了什么。请帮忙。
谢谢,
史蒂夫