python_hl_lvar.vim


Ⅰ. 插件描述

highlight local variables in function

Ⅱ. 基本信息

创建日期:  2014-05-29
使用用户:  6
Github星:  3
插件作者:  OGURA_Daiki

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'hachibeedi/python-hl-lvar-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'hachibeedi/python-hl-lvar-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'hachibeedi/python-hl-lvar-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/hachibeedi/python_hl_lvar.vim

Ⅳ. 文档说明

# python_hl_lvar.vim

Highlight local variables in function is under cursor.

Version

0.0.1

Requirements

python interface

Settings


" example
NeoBundleLazy 'hachibeeDI/python_hl_lvar.vim', {
\   'autoload' : {
\     'filetypes' : ['python'],
\   },
\ }
let g:enable_python_hl_lvar = 1
" default is 'guifg=palegreen3 gui=NONE ctermfg=114 cterm=NONE'
let g:python_hl_lvar_highlight_color = 'guifg=lightgoldenrod2 gui=NONE ctermfg=186 cterm=NONE'

autocmd BufWinEnter  *.py PyHlLVar
autocmd BufWinLeave  *.py PyHlLVar
autocmd WinEnter     *.py PyHlLVar
autocmd BufWritePost *.py PyHlLVar
autocmd WinLeave     *.py PyHlLVar
autocmd TabEnter     *.py PyHlLVar
autocmd TabLeave     *.py PyHlLVar

添加新评论