1 Star 0 Fork 0

zhaogezhang/vim-illuminate

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
illuminate.vim 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
Adam P. Regasz-Rethy 提交于 2020-06-09 14:11 +08:00 . Fix #39
" illuminate.vim - Vim plugin for selectively illuminating other uses of current word
" Maintainer: Adam P. Regasz-Rethy (RRethy) <rethy.spud@gmail.com>
" Version: 0.3
if exists('g:loaded_illuminate')
finish
endif
let g:loaded_illuminate = 1
" Highlight group(s) {{{
if !hlexists('illuminatedWord')
" this is for backwards compatibility
if !empty(get(g:, 'Illuminate_hl_link', ''))
exe get(g:, 'Illuminate_hl_link', '')
else
hi link illuminatedWord cursorline
endif
endif
" }}}
" Autocommands {{{
if has('autocmd')
augroup illuminated_autocmd
autocmd!
autocmd CursorMoved,InsertLeave * call illuminate#on_cursor_moved()
autocmd WinLeave,BufLeave * call illuminate#on_leaving_autocmds()
autocmd CursorMovedI * call illuminate#on_cursor_moved_i()
autocmd InsertEnter * call illuminate#on_insert_entered()
augroup END
else
echoerr 'Illuminate requires Vim compiled with +autocmd'
finish
endif
" }}}
" Commands {{{
command! -nargs=0 -bang IlluminationDisable call illuminate#disable_illumination(<bang>0)
command! -nargs=0 -bang IlluminationEnable call illuminate#enable_illumination(<bang>0)
command! -nargs=0 -bang IlluminationToggle call illuminate#toggle_illumination(<bang>0)
" Keep these for backwards compatibility
command! -nargs=0 DisableIllumination :IlluminationDisable
command! -nargs=0 EnableIllumination :IlluminationEnable
" }}} Commands:
" vim: foldlevel=1 foldmethod=marker
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhaogezhang/vim-illuminate.git
git@gitee.com:zhaogezhang/vim-illuminate.git
zhaogezhang
vim-illuminate
vim-illuminate
master

搜索帮助