Vim Error detected while processing function 59_RunPyflakes: line 53: E927: Invalid action: ''

安装vim配置后,vim python文件报错:
Error detected while processing function 59_RunPyflakes:
line 53:
E927: Invalid action: ‘’

解决办法:修改 call setqflist(b:qf_list, ‘’) ==> call setqflist(b:qf_list, ’ ‘)
及’'中间加个空格
我自己环境修改文件的patch:
— a/vimconf/vimfiles/bundle/pyflakes/ftplugin/python/pyflakes.vim
+++ b/vimconf/vimfiles/bundle/pyflakes/ftplugin/python/pyflakes.vim
@@ -267,7 +267,7 @@ EOF
call setqflist(b:qf_list, ‘r’)
else
" one pyflakes quickfix window for all buffer

  •            call setqflist(b:qf_list, '')
    
  •            call setqflist(b:qf_list, ' ')
               let s:pyflakes_qf = s:GetQuickFixStackCount()
           endif
       endif
    

配置安装vim sh、python、rym配置:
GET CODE
$ cd $CONFDIR
$ git clone https://github.com/jaypei/exz-conf.git
$ cd exz-conf
$ git submodule init
$ git submodule update
VIM CONFIG
install
$ ln -s $CONFDIR/exz-conf/vimconf/_vimrc ~/.vimrc
$ ln -s $CONFDIR/exz-conf/vimconf/_gvimrc ~/.gvimrc
$ ln -s $CONFDIR/exz-conf/vimconf/vimfiles ~/.vim
$ ln -s $CONFDIR/exz-conf/vimconf/pylint.ini ~/.pylintrc

你可能感兴趣的:(linux,IT,python)