Не может полностью удалить Python-режим Vim плагин
Я пытаюсь удалить плагин Python-Mode с помощью Vundle, потому что этот плагин не может работать на моем VIM
Поэтому я удаляю заявления, связанные с python-mode
в.vimrc и :PluginUpdate
:PluginClean
Затем я проверил список плагинов, которые я установил :PluginList
, там не выходит python-mode
больше. но похоже, что этот плагин не удален полностью, и vim всегда сообщает об ошибках
function pymode#lint#show_errormessage get error:
line 1:
E121: undefined variable: g:PymodeLocList
press ENTER to continue
function pymode#lint#show_errormessage get error:
line 1 :
E15: invalid expression: g:PymodeLocList.current()
press ENTER to continue
function pymode#lint#show_errormessage get error:
line 2:
E121: undefined variable: loclist
press ENTER to continue
....
Я уверен, что в файле ~/.vimrc нет ни одного оператора, связанного с Pymode, так же как и файл /etc/vim/.vimrc, но vim по-прежнему сообщает так много неопределенных или недопустимых выражений, что вызывает у меня недоумение. это файл vimrc:
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'scrooloose/nerdtree'
Plugin 'terryma/vim-expand-region'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'andviro/flake8-vim'
"color scheme
Plugin 'altercation/vim-colors-solarized'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"let nerdtree ignore .pyc file
let NERDTreeIgnore=['\.pyc$', '\~$']
" change mapleader to ,
:let mapleader = "\<Space>"
" Enable folding
set foldmethod=indent
set foldlevel=99
" watch the text content in the folding block
let g:SimpylFold_docstring_preview=1
" set python file indent type
au BufNewFile,BufRead *.py
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
""""for the fullstack developer
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
" make the additional whitespace show as the red
"au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
"the template for python
"the fixed comment at the beginning
augroup myTemplates
autocmd!
autocmd BufNewFile *.py silent 0put='#!/usr/bin/env python'|2
augroup END
"take comment
augroup multiComment
autocmd!
autocmd FileType python nnoremap <buffer> <leader>c I#<esc>
autocmd FileType python xnoremap <buffer> <leader>c :normal I#<CR>
autocmd FileType python nnoremap <buffer> <leader>1 0x
augroup END
"set encoding method
set encoding=utf-8
"make the code more beautiful
let python_highlight_all=1
syntax on
"show the line number
:set number
"let vim visit the system clipboard
set clipboard=unnamed
"for the direction button goes wrong
set term=builtin_ansi
let g:spf13_no_omni_complete=1
inoremap <ESC>oA <ESC>ki
inoremap <ESC>oB <ESC>ji
inoremap <ESC>oC <ESC>li
inoremap <ESC>oD <ESC>hi
"map the G
nnoremap <CR> G
"go to the beginning of the file
nnoremap <leader><BS> gg
"delete the whole line and enter insert mode
:nnoremap <leader>d ddO
"fast edit and source the vimrc file
:nnoremap <leader>ev :vsplit $MYVIMRC<cr>
:nnoremap <leader>sv :source $MYVIMRC<CR>
"surround the string with "
:nnoremap <leader>' ve<esc>a"<esc>bi"<esc>lel
"open NERDTree quickly
:nnoremap <leader>t :NERDTree<cr>
"fold the block
:nnoremap <leader>f za
" short cut to navigate the split window
:nnoremap <C-J> <C-W><C-J>
:nnoremap <C-H> <C-W><C-H>
:nnoremap <C-L> <C-W><C-L>
:nnoremap <C-K> <C-W><C-K>
"copy paste from system + register
:noremap <leader>y "+y
:noremap <leader>p "+p
"use space r to run the python file in vim
nnoremap <buffer> <leader>r :w<cr>:!python %<cr>
"go to the definition by ycm
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
"press multiple v select from a character a word to a sentence a block
vmap v <Plug>(expand_region_expand)
"come back to the last selection
vmap <C-v> <Plug>(expand_region_shrink)
"change esc to jk
:inoremap jk <esc>
:vnoremap jk <esc>
"disable the esc button
:inoremap <esc> <nop>
"no swap file
set noswapfile
" colorscheme
set t_Co=256
if has('gui_running')
set background=dark
colorscheme solarized
else
colorscheme zenburn
endif
"set flake8
"Auto-check file for errors on write:
let g:PyFlakeOnWrite = 1
"List of checkers used:
let g:PyFlakeCheckers = 'pep8,mccabe,frosted'
"Default maximum complexity for mccabe:
let g:PyFlakeDefaultComplexity=10
"List of disabled pep8 warnings and errors:
let g:PyFlakeDisabledMessages = 'E501'
"Default aggressiveness for autopep8:
let g:PyFlakeAggressive = 0
"Default height of quickfix window:
let g:PyFlakeCWindow = 6
"Whether to place signs or not:
let g:PyFlakeSigns = 1
"When usign signs, this is the first id that will be used to identify the signs. Tweak this if you are using other plugins that also use the sign gutter
let g:PyFlakeSignStart = 1
"Maximum line length for PyFlakeAuto command
let g:PyFlakeMaxLineLength = 100
"Visual-mode key command for PyFlakeAuto
let g:PyFlakeRangeCommand = 'Q'
как решить эту проблему?