" Vimball Archiver by Charles E. Campbell, Jr., Ph.D. UseVimball finish plugin/HiCurLine.vim [[[1 366 " HiCurLine : an attempt to highlight matching brackets as one moves " Author: Charles E. Campbell, Jr. " Date: May 20, 2009 " Version: 8a ASTRO-ONLY " " A Vim v6.0 plugin with menus for gvim " " GetLatestVimScripts: 555 1 :AutoInstall: HiCurLine.vim " GetLatestVimScripts: 1066 1 cecutil.vim " Usage: {{{1 " \hcli : initialize highlighting of matching bracket " \hcls : stop highlighting of matching bracket " " Actually is used, so you may set mapleader to change " the leading backslash to whatever you want in your <.vimrc> " " Method: {{{1 " This script attempts to intercept most motion commands " and to to use the "match" command to highlight the current " line. The HL_HiCurLine variable may be set by the user " to any highlighting group. If no such variable is set, " then the Search highlighting group will be used. Any " maps already assigned to the motion command keys will be " saved by \hcli and restored by \hcls. " " Example: (of something that could be put into a <.vimrc>) " hi HL_HiCurLine ctermfg=blue ctermbg=cyan guifg=blue guibg=cyan " let HL_HiCurLine= "HL_HiCurLine" " --------------------------------------------------------------------- " Load Once: {{{1 if &cp || exists("g:loaded_HiCurLine") finish endif let s:keepcpo= &cpo set cpo&vim let g:loaded_HiCurLine= "v8a" if exists("g:himtchbrkt_ut") && !exists("g:hicurline_ut") let g:hicurline_ut= g:himtchbrkt_ut endif if v:version >= 700 && exists("##CursorMoved") let g:loaded_matchparen= 1 endif " --------------------------------------------------------------------- " Public Interface: {{{1 if !hasmapto('HCLStart') map hcli HCLStart endif if !hasmapto('HCLStop') map hcls HCLStop endif if !hasmapto('HCLToggle') map hclt HCLToggle endif com! HCLstart set lz|call HCLStart()|set nolz com! HCLstop set lz|call HCLStop()|set nolz com! HCL set lz|call HCLToggle()|set nolz " --------------------------------------------------------------------- " Global Maps: {{{2 nmap