0

我正在使用 Syntastic 和 Jedi-Vim。目前我正在使用 Syntastics 功能来突出 vim 中的 pylint 错误。我觉得我遇到了某种错误,正如您在屏幕截图中看到的那样可以从显示中删除底卷。

  • 为什么我不想要的时候会有下卷曲?
  • 这种行为是 vim 核心的一部分吗?
  • 如果不是,是什么包生成了这个,我该如何隐藏底卷?

我的 vim 设置的屏幕截图,不需要的底卷曲在第 4-9 行。

谢谢。

~_vimrc

set nocompatible
filetype off

set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)

set t_Co=256

" let Vundle manage Vundle
" " required! 
Bundle 'gmarik/vundle'
"Bundle 'Lokaltog/powerline'
"Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'bling/vim-airline'
"Bundle 'scrooloose/nerdtree'
"Bundle 'klen/python-mode'
Bundle 'altercation/vim-colors-solarized'
Bundle 'scrooloose/syntastic'
Bundle 'davidhalter/jedi-vim'
"Bundle 'ervandew/supertab'
Bundle 'ciaranm/inkpot'

call vundle#end()            " required
filetype plugin indent on

let g:pymode_run = 1
let g:pymode_run_bind = "<S-R>"
let g:pymode_python = 'python3' 

"
" " The bundles you install will be listed here
"
syntax enable
colorscheme solarized
set background=dark
filetype plugin indent on
au BufNewFile,BufRead *.wsgi set filetype=python

"
" Normal startup
"
set et
set nu
set ts=4
set hls
set noru
"highlight ColorColumn ctermbg=Red
"highlight CursorLine cterm=NONE ctermbg=236
"highlight Cursor ctermfg=Red ctermbg=Red cterm=NONE
"highlight Search ctermbg=Red ctermfg=White
set guicursor=n-v-c:block-Cursor
"set cursorline
set foldmethod=syntax
set shiftwidth=4
set laststatus=2
set foldlevel=0
set foldnestmax=2
set modeline
set fileencoding=UTF-8
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h12:cANSI
nnoremap <space> za
vnoremap <space> zc
map <S-A> :bp<cr>
map <S-Q> :bd<cr>
map <S-S> :bn<cr>
map <S-W> :ls<cr>
set guioptions-=m  "remove menu bar
set guioptions-=T  "remove toolbar
set guioptions-=r  "remove right-hand scroll bar
"map <S-Q> :ls<cr>:sleep 850m<cr><cr>
"map <S-Q> :ls<cr>
map <S-E> :NERDTreeToggle<CR>
let g:pymode_virtualenv = 1
let g:pymode_breakpoint_bind = '<leader>b'
let g:pymode_rope_completion = 1
let g:pymode_rope_complete_on_dot = 1

let g:jedi#force_py_version = 3
let g:jedi#auto_close_doc = 0
let g:jedi#popup_on_dot = 1
let g:jedi#auto_vim_configuration = 0

set completeopt=menu,longest

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = [ 'pylint' ]
let g:syntastic_enable_signs = 1

let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1

let g:solarized_underline = 0
let g:solarized_termcolors = 256

highlight SyntasticErrorLine guifg=blue guibg=red gui=bold
highlight SyntasticWarningLine guifg=yellow guibg=red gui=bold
set encoding=utf-8
set fileencoding=utf-8

vim --版本

C:\Users\Brendan>vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2014 04:20:13)
MS-Windows 32-bit console version
Included patches: 1-417
Compiled by Haroogan <Haroogan@gmail.com>
Huge version without GUI.  Features included (+) or not (-):
+acl                +eval               +mouse              +syntax
+arabic             +ex_extra           -mouseshape         +tag_binary
+autocmd            +extra_search       +multi_byte_ime/dyn +tag_old_static
-balloon_eval       +farsi              +multi_lang         -tag_any_white
-browse             +file_in_path       -mzscheme           -tcl
++builtin_terms     +find_in_path       -netbeans_intg      -tgetent
+byte_offset        +float              +path_extra         -termresponse
+cindent            +folding            +perl/dyn           +textobjects
+clientserver       -footer             +persistent_undo    +title
+clipboard          +gettext/dyn        -postscript         -toolbar
+cmdline_compl      -hangul_input       +printer            +user_commands
+cmdline_hist       +iconv/dyn          +profile            +vertsplit
+cmdline_info       +insert_expand      +python/dyn         +virtualedit
+comments           +jumplist           +python3/dyn        +visual
+conceal            +keymap             +quickfix           +visualextra
+cryptv             +langmap            +reltime            +viminfo
+cscope             +libcall            +rightleft          +vreplace
+cursorbind         +linebreak          +ruby/dyn           +wildignore
+cursorshape        +lispindent         +scrollbind         +wildmenu
+dialog_con         +listcmds           +signs              +windows
+diff               +localmap           +smartindent        +writebackup
+digraphs           +lua/dyn            -sniff              -xfontset
-dnd                +menu               +startuptime        -xim
-ebcdic             +mksession          +statusline         -xterm_save
+emacs_tags         +modify_fname       -sun_workshop       -xpm_w32
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
Dependency: python27.dll, python34.dll, msvcrt-ruby200.dll, lua52.dll, perl518.d
ll, libintl.dll, libiconv.dll, iconv.dll
4

2 回答 2

2

对于经过一天的黑客攻击后感兴趣的任何人,我意识到 Syntastic 还有一些其他选项可以在错误的特定文本列下划线,因为 pylint 没有指定范围,它只会突出显示第一个字母。

highlight SyntasticWarning NONE
highlight SyntasticError NONE

做了工作。

于 2015-02-24T05:47:22.490 回答
2

只需设置选项:

let g:syntastic_enable_highlighting = 0

https://github.com/scrooloose/syntastic/blob/master/doc/syntastic.txt#L412

于 2016-08-22T20:04:33.243 回答