我用的是Syntastic和Jedi Vim。目前我正在使用Syntastics特性来突出vim中的pylint错误。我觉得我遇到了一些bug,你可以在截图中看到,我的自定义错误行高亮显示将显示一个暗线,当我从来没有指定它这样做,我找不到任何部分的vim,我可以删除暗线显示。在
Screenshot of my vim setup,不需要的退刀槽在第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—版本
^{pr2}$
对于任何有兴趣的人,我发现Syntastic也有一些其他的选项来给出错的文本的特定列加下划线,因为pylint没有指定范围,它只会突出显示第一个字母。在
完成了任务。在
仅设置选项:
https://github.com/scrooloose/syntastic/blob/master/doc/syntastic.txt#L412
相关问题 更多 >
编程相关推荐