2011-03-28 04:18:00 -04:00
|
|
|
" EasyMotion - Vim motions on speed!
|
2011-03-27 18:08:06 -04:00
|
|
|
"
|
2011-03-29 08:10:00 -04:00
|
|
|
" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
|
|
|
" Source repository: https://github.com/Lokaltog/vim-easymotion
|
2011-03-27 18:08:06 -04:00
|
|
|
|
|
|
|
" Prevent double loading {{{
|
|
|
|
if exists('g:EasyMotion_loaded')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
let g:EasyMotion_loaded = 1
|
|
|
|
" }}}
|
|
|
|
" Default configuration {{{
|
2011-03-29 02:47:59 -04:00
|
|
|
function! s:InitOption(option, default) " {{{
|
|
|
|
if ! exists('g:EasyMotion_' . a:option)
|
|
|
|
exec 'let g:EasyMotion_' . a:option . ' = ' . string(a:default)
|
|
|
|
endif
|
|
|
|
endfunction " }}}
|
2011-03-29 02:58:00 -04:00
|
|
|
function! s:InitHL(group, gui, cterm256, cterm) " {{{
|
|
|
|
if ! hlexists(a:group)
|
|
|
|
let guihl = printf('guibg=%s guifg=#%s gui=%s', a:gui[0], a:gui[1], a:gui[2])
|
|
|
|
let ctermhl = &t_Co == 256
|
|
|
|
\ ? printf('ctermbg=%s ctermfg=%s cterm=%s', a:cterm256[0], a:cterm256[1], a:cterm256[2])
|
|
|
|
\ : printf('ctermbg=%s ctermfg=%s cterm=%s', a:cterm[0], a:cterm[1], a:cterm[2])
|
|
|
|
|
|
|
|
execute printf('hi %s %s %s', a:group, guihl, ctermhl)
|
|
|
|
endif
|
|
|
|
endfunction " }}}
|
|
|
|
|
2011-03-29 02:47:59 -04:00
|
|
|
call s:InitOption('keys', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
|
|
|
|
call s:InitOption('target_hl', 'EasyMotionTarget')
|
|
|
|
call s:InitOption('shade_hl', 'EasyMotionShade')
|
|
|
|
call s:InitOption('do_shade', 1)
|
|
|
|
call s:InitOption('do_mapping', 1)
|
2011-03-28 16:00:52 -04:00
|
|
|
|
2011-03-29 13:32:20 -04:00
|
|
|
call s:InitHL(g:EasyMotion_target_hl, ['NONE', 'ff0000', 'bold'], ['NONE', '196', 'bold'], ['NONE', 'red', 'bold'])
|
|
|
|
call s:InitHL(g:EasyMotion_shade_hl, ['NONE', '585858', 'NONE'], ['NONE', '240', 'NONE'], ['NONE', 'darkgrey', 'NONE'])
|
2011-03-27 18:08:06 -04:00
|
|
|
" }}}
|
|
|
|
" Default key mapping {{{
|
|
|
|
if g:EasyMotion_do_mapping
|
2011-03-28 16:08:49 -04:00
|
|
|
nnoremap <silent> <Leader>f :call EasyMotionF(0, 0)<CR>
|
2011-03-28 16:57:39 -04:00
|
|
|
vnoremap <silent> <Leader>f :<C-U>call EasyMotionF(1, 0)<CR>
|
2011-03-29 09:39:25 -04:00
|
|
|
|
2011-03-28 16:57:39 -04:00
|
|
|
nnoremap <silent> <Leader>F :call EasyMotionF(0, 1)<CR>
|
2011-03-28 16:08:49 -04:00
|
|
|
vnoremap <silent> <Leader>F :<C-U>call EasyMotionF(1, 1)<CR>
|
2011-03-29 09:39:25 -04:00
|
|
|
|
2011-03-28 16:08:49 -04:00
|
|
|
nnoremap <silent> <Leader>t :call EasyMotionT(0, 0)<CR>
|
2011-03-28 16:57:39 -04:00
|
|
|
vnoremap <silent> <Leader>t :<C-U>call EasyMotionT(1, 0)<CR>
|
2011-03-29 09:39:25 -04:00
|
|
|
|
2011-03-28 16:57:39 -04:00
|
|
|
nnoremap <silent> <Leader>T :call EasyMotionT(0, 1)<CR>
|
2011-03-28 16:08:49 -04:00
|
|
|
vnoremap <silent> <Leader>T :<C-U>call EasyMotionT(1, 1)<CR>
|
|
|
|
|
|
|
|
nnoremap <silent> <Leader>w :call EasyMotionW(0)<CR>
|
|
|
|
vnoremap <silent> <Leader>w :<C-U>call EasyMotionW(1)<CR>
|
|
|
|
|
|
|
|
nnoremap <silent> <Leader>e :call EasyMotionE(0)<CR>
|
|
|
|
vnoremap <silent> <Leader>e :<C-U>call EasyMotionE(1)<CR>
|
|
|
|
|
|
|
|
nnoremap <silent> <Leader>b :call EasyMotionB(0)<CR>
|
|
|
|
vnoremap <silent> <Leader>b :<C-U>call EasyMotionB(1)<CR>
|
2011-03-27 18:08:06 -04:00
|
|
|
endif
|
|
|
|
" }}}
|
|
|
|
" Initialize variables {{{
|
|
|
|
let s:index_to_key = split(g:EasyMotion_keys, '\zs')
|
|
|
|
let s:key_to_index = {}
|
|
|
|
|
|
|
|
let index = 0
|
|
|
|
for i in s:index_to_key
|
|
|
|
let s:key_to_index[i] = index
|
|
|
|
let index += 1
|
|
|
|
endfor
|
2011-03-28 11:47:13 -04:00
|
|
|
|
|
|
|
let s:var_reset = {}
|
2011-03-27 18:08:06 -04:00
|
|
|
" }}}
|
|
|
|
" Motion functions {{{
|
2011-03-29 03:10:52 -04:00
|
|
|
function! EasyMotionF(visualmode, direction) " {{{
|
|
|
|
let char = s:GetSearchChar(a:visualmode)
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
if empty(char)
|
|
|
|
return
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
let re = '\C' . escape(char, '.$^~')
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
call s:EasyMotion(re, a:direction, a:visualmode ? visualmode() : '')
|
|
|
|
endfunction " }}}
|
|
|
|
function! EasyMotionT(visualmode, direction) " {{{
|
|
|
|
let char = s:GetSearchChar(a:visualmode)
|
2011-03-28 17:35:27 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
if empty(char)
|
|
|
|
return
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
if a:direction == 1
|
|
|
|
let re = '\C' . escape(char, '.$^~') . '\zs.'
|
|
|
|
else
|
|
|
|
let re = '\C.' . escape(char, '.$^~')
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 03:10:52 -04:00
|
|
|
call s:EasyMotion(re, a:direction, a:visualmode ? visualmode() : '')
|
|
|
|
endfunction " }}}
|
|
|
|
function! EasyMotionW(visualmode) " {{{
|
|
|
|
call s:EasyMotion('\<.', 0, a:visualmode ? visualmode() : '')
|
|
|
|
endfunction " }}}
|
|
|
|
function! EasyMotionE(visualmode) " {{{
|
|
|
|
call s:EasyMotion('.\>', 0, a:visualmode ? visualmode() : '')
|
|
|
|
endfunction " }}}
|
|
|
|
function! EasyMotionB(visualmode) " {{{
|
|
|
|
call s:EasyMotion('\<.', 1, a:visualmode ? visualmode() : '')
|
|
|
|
endfunction " }}}
|
2011-03-27 18:08:06 -04:00
|
|
|
" }}}
|
|
|
|
" Helper functions {{{
|
|
|
|
function! s:Message(message) " {{{
|
|
|
|
echo 'EasyMotion: ' . a:message
|
|
|
|
endfunction " }}}
|
|
|
|
function! s:Prompt(message) " {{{
|
|
|
|
echohl Question
|
|
|
|
echo a:message . ': '
|
|
|
|
echohl None
|
|
|
|
endfunction " }}}
|
2011-03-28 11:47:13 -04:00
|
|
|
function! s:VarReset(var, ...) " {{{
|
2011-03-29 11:01:47 -04:00
|
|
|
let buf = bufname("")
|
|
|
|
|
2011-03-28 11:47:13 -04:00
|
|
|
if a:0 == 0 && has_key(s:var_reset, a:var)
|
|
|
|
" Reset var to original value
|
2011-03-29 11:01:47 -04:00
|
|
|
call setbufvar(buf, a:var, s:var_reset[a:var])
|
2011-03-28 11:47:13 -04:00
|
|
|
elseif a:0 == 1
|
|
|
|
let new_value = a:0 == 1 ? a:1 : ''
|
|
|
|
|
|
|
|
" Store original value
|
2011-03-29 11:01:47 -04:00
|
|
|
let s:var_reset[a:var] = getbufvar(buf, a:var)
|
2011-03-28 11:47:13 -04:00
|
|
|
|
|
|
|
" Set new var value
|
2011-03-29 11:01:47 -04:00
|
|
|
call setbufvar(buf, a:var, new_value)
|
2011-03-28 11:47:13 -04:00
|
|
|
endif
|
|
|
|
endfunction " }}}
|
2011-03-28 12:04:35 -04:00
|
|
|
function! s:SetLines(lines, key) " {{{
|
|
|
|
for [line_num, line] in a:lines
|
|
|
|
try
|
|
|
|
" Try to join changes with previous undo block
|
|
|
|
undojoin
|
|
|
|
catch
|
|
|
|
endtry
|
|
|
|
|
|
|
|
call setline(line_num, line[a:key])
|
|
|
|
endfor
|
|
|
|
endfunction " }}}
|
2011-03-28 17:35:27 -04:00
|
|
|
function! s:GetChar() " {{{
|
|
|
|
let char = getchar()
|
|
|
|
|
|
|
|
if char == 27
|
|
|
|
" Escape key pressed
|
|
|
|
redraw
|
|
|
|
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:Message('Cancelled')
|
2011-03-28 17:35:27 -04:00
|
|
|
|
|
|
|
return ''
|
|
|
|
endif
|
|
|
|
|
|
|
|
return nr2char(char)
|
|
|
|
endfunction " }}}
|
2011-03-29 03:10:52 -04:00
|
|
|
function! s:GetSearchChar(visualmode)
|
|
|
|
call s:Prompt('Search for character')
|
|
|
|
|
|
|
|
let char = s:GetChar()
|
|
|
|
|
|
|
|
" Check that we have an input char
|
|
|
|
if empty(char)
|
|
|
|
" Restore selection
|
|
|
|
if ! empty(a:visualmode)
|
|
|
|
silent exec 'normal! gv'
|
|
|
|
endif
|
|
|
|
|
|
|
|
return ''
|
|
|
|
endif
|
|
|
|
|
|
|
|
return char
|
|
|
|
endfunction
|
2011-03-27 18:08:06 -04:00
|
|
|
" }}}
|
|
|
|
" Core functions {{{
|
|
|
|
function! s:PromptUser(groups) "{{{
|
|
|
|
let single_group = len(a:groups) == 1
|
|
|
|
let targets_len = single_group ? len(a:groups[0]) : len(a:groups)
|
|
|
|
|
|
|
|
" Only one possible match {{{
|
|
|
|
if single_group && targets_len == 1
|
|
|
|
redraw
|
|
|
|
|
|
|
|
return a:groups[0][0]
|
|
|
|
endif
|
|
|
|
" }}}
|
2011-03-28 03:03:49 -04:00
|
|
|
" Prepare marker lines {{{
|
|
|
|
let lines = {}
|
2011-03-27 18:08:06 -04:00
|
|
|
let hl_coords = []
|
2011-03-28 03:03:49 -04:00
|
|
|
let current_group = 0
|
2011-03-27 18:08:06 -04:00
|
|
|
|
|
|
|
for group in a:groups
|
|
|
|
let element = 0
|
|
|
|
|
2011-03-28 03:03:49 -04:00
|
|
|
for [line_num, col_num] in group
|
|
|
|
" Add original line and marker line
|
|
|
|
if ! has_key(lines, line_num)
|
|
|
|
let current_line = getline(line_num)
|
|
|
|
|
2011-03-28 04:12:08 -04:00
|
|
|
let lines[line_num] = { 'orig': current_line, 'marker': current_line }
|
2011-03-28 03:03:49 -04:00
|
|
|
endif
|
|
|
|
|
2011-03-28 04:12:08 -04:00
|
|
|
" Substitute marker character
|
|
|
|
let lines[line_num]['marker'] = substitute(lines[line_num]['marker'], '\%' . col_num . 'c.', s:index_to_key[single_group ? element : current_group], '')
|
2011-03-27 18:08:06 -04:00
|
|
|
|
|
|
|
" Add highlighting coordinates
|
2011-03-28 03:03:49 -04:00
|
|
|
call add(hl_coords, '\%' . line_num . 'l\%' . col_num . 'c')
|
|
|
|
|
|
|
|
let element += 1
|
2011-03-27 18:08:06 -04:00
|
|
|
endfor
|
|
|
|
|
|
|
|
let current_group += 1
|
|
|
|
endfor
|
2011-03-28 03:04:22 -04:00
|
|
|
|
2011-03-28 03:03:49 -04:00
|
|
|
let lines_items = items(lines)
|
2011-03-27 18:08:06 -04:00
|
|
|
" }}}
|
|
|
|
|
2011-03-28 16:36:39 -04:00
|
|
|
" Highlight source
|
|
|
|
let target_hl_id = matchadd(g:EasyMotion_target_hl, join(hl_coords, '\|'), 1)
|
2011-03-28 03:04:22 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
try
|
|
|
|
" Set lines with markers
|
|
|
|
call s:SetLines(lines_items, 'marker')
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
redraw
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
" Get target/group character
|
|
|
|
if single_group
|
|
|
|
call s:Prompt('Target character')
|
|
|
|
else
|
|
|
|
call s:Prompt('Group character')
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
let char = s:GetChar()
|
|
|
|
finally
|
|
|
|
" Restore original lines
|
|
|
|
call s:SetLines(lines_items, 'orig')
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
" Un-highlight code
|
|
|
|
call matchdelete(target_hl_id)
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:04:19 -04:00
|
|
|
redraw
|
|
|
|
endtry
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 17:35:27 -04:00
|
|
|
" Check that we have an input char
|
2011-03-29 11:04:19 -04:00
|
|
|
if empty(char)
|
2011-03-28 17:35:27 -04:00
|
|
|
throw 'Cancelled'
|
|
|
|
endif
|
|
|
|
|
2011-03-28 16:36:39 -04:00
|
|
|
" Check if the input char is valid
|
2011-03-29 11:04:19 -04:00
|
|
|
if ! has_key(s:key_to_index, char) || s:key_to_index[char] >= targets_len
|
2011-03-28 17:35:27 -04:00
|
|
|
throw 'Invalid target'
|
2011-03-28 16:36:39 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if single_group
|
|
|
|
" Return target coordinates
|
2011-03-29 11:04:19 -04:00
|
|
|
return a:groups[0][s:key_to_index[char]]
|
2011-03-28 16:36:39 -04:00
|
|
|
else
|
|
|
|
" Prompt for target character
|
2011-03-29 11:04:19 -04:00
|
|
|
return s:PromptUser([a:groups[s:key_to_index[char]]])
|
2011-03-28 16:36:39 -04:00
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
endfunction "}}}
|
2011-03-28 16:08:49 -04:00
|
|
|
function! s:EasyMotion(regexp, direction, visualmode) " {{{
|
2011-03-27 18:08:06 -04:00
|
|
|
let orig_pos = [line('.'), col('.')]
|
|
|
|
let targets = []
|
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
try
|
|
|
|
" Reset properties
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:VarReset('&scrolloff', 0)
|
|
|
|
call s:VarReset('&modified', 0)
|
|
|
|
call s:VarReset('&modifiable', 1)
|
|
|
|
call s:VarReset('&readonly', 0)
|
2011-03-28 11:48:09 -04:00
|
|
|
|
|
|
|
" Find motion targets
|
|
|
|
while 1
|
|
|
|
let search_direction = (a:direction == 1 ? 'b' : '')
|
|
|
|
let search_stopline = line(a:direction == 1 ? 'w0' : 'w$')
|
|
|
|
|
|
|
|
let pos = searchpos(a:regexp, search_direction, search_stopline)
|
|
|
|
|
|
|
|
" Reached end of search range
|
|
|
|
if pos == [0, 0]
|
|
|
|
break
|
|
|
|
endif
|
2011-03-28 10:41:20 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Skip folded lines
|
|
|
|
if foldclosed(pos[0]) != -1
|
2011-03-29 11:04:53 -04:00
|
|
|
if a:direction == 1
|
|
|
|
normal! k$
|
|
|
|
else
|
|
|
|
normal! j^
|
|
|
|
endif
|
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
continue
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
call add(targets, pos)
|
|
|
|
endwhile
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
let targets_len = len(targets)
|
|
|
|
let groups_len = len(s:index_to_key)
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
if targets_len == 0
|
|
|
|
throw 'No matches'
|
2011-03-27 18:22:40 -04:00
|
|
|
endif
|
|
|
|
|
2011-03-28 04:14:51 -04:00
|
|
|
" Restore cursor position
|
|
|
|
call setpos('.', [0, orig_pos[0], orig_pos[1]])
|
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Split targets into key groups {{{
|
|
|
|
let groups = []
|
|
|
|
let i = 0
|
2011-03-28 10:41:20 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
while i < targets_len
|
|
|
|
call add(groups, targets[i : i + groups_len - 1])
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
let i += groups_len
|
|
|
|
endwhile
|
|
|
|
" }}}
|
|
|
|
" Too many groups; only display the first ones {{{
|
|
|
|
if len(groups) > groups_len
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:Message('Only displaying the first matches')
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
let groups = groups[0 : groups_len - 1]
|
|
|
|
endif
|
|
|
|
" }}}
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Shade inactive source
|
2011-03-29 02:48:23 -04:00
|
|
|
if g:EasyMotion_do_shade
|
2011-03-28 11:48:09 -04:00
|
|
|
let shade_hl_pos = '\%' . orig_pos[0] . 'l\%'. orig_pos[1] .'c'
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
if a:direction == 1
|
|
|
|
" Backward
|
|
|
|
let shade_hl_re = '\%'. line('w0') .'l\_.*' . shade_hl_pos
|
|
|
|
else
|
|
|
|
" Forward
|
|
|
|
let shade_hl_re = shade_hl_pos . '\_.*\%'. line('w$') .'l'
|
|
|
|
endif
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
let shade_hl_id = matchadd(g:EasyMotion_shade_hl, shade_hl_re, 0)
|
2011-03-27 18:08:06 -04:00
|
|
|
endif
|
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Prompt user for target group/character
|
2011-03-29 02:25:44 -04:00
|
|
|
let coords = s:PromptUser(groups)
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-28 16:36:39 -04:00
|
|
|
if ! empty(a:visualmode)
|
|
|
|
" Update selection
|
2011-03-29 11:03:46 -04:00
|
|
|
call setpos('.', [0, orig_pos[0], orig_pos[1]])
|
2011-03-27 18:08:06 -04:00
|
|
|
|
2011-03-29 11:03:46 -04:00
|
|
|
exec 'normal! ' . a:visualmode
|
2011-03-28 04:14:51 -04:00
|
|
|
endif
|
2011-03-28 16:36:39 -04:00
|
|
|
|
2011-03-29 11:03:46 -04:00
|
|
|
" Update cursor position
|
|
|
|
call setpos('.', [0, coords[0], coords[1]])
|
|
|
|
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:Message('Jumping to [' . coords[0] . ', ' . coords[1] . ']')
|
2011-03-29 11:04:19 -04:00
|
|
|
catch
|
2011-03-28 11:48:09 -04:00
|
|
|
redraw
|
2011-03-28 04:14:51 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Show exception message
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:Message(v:exception)
|
2011-03-28 10:41:20 -04:00
|
|
|
|
2011-03-28 11:48:09 -04:00
|
|
|
" Restore cursor position/selection
|
2011-03-28 16:08:49 -04:00
|
|
|
if ! empty(a:visualmode)
|
2011-03-28 16:46:32 -04:00
|
|
|
silent exec 'normal! gv'
|
2011-03-28 04:14:51 -04:00
|
|
|
else
|
2011-03-28 11:48:09 -04:00
|
|
|
call setpos('.', [0, orig_pos[0], orig_pos[1]])
|
2011-03-28 04:14:51 -04:00
|
|
|
endif
|
2011-03-28 11:48:09 -04:00
|
|
|
finally
|
|
|
|
" Restore properties
|
2011-03-29 02:25:44 -04:00
|
|
|
call s:VarReset('&scrolloff')
|
|
|
|
call s:VarReset('&modified')
|
|
|
|
call s:VarReset('&modifiable')
|
|
|
|
call s:VarReset('&readonly')
|
2011-03-29 11:04:19 -04:00
|
|
|
|
|
|
|
" Remove shading
|
|
|
|
if g:EasyMotion_do_shade && exists('shade_hl_id')
|
|
|
|
call matchdelete(shade_hl_id)
|
|
|
|
endif
|
2011-03-28 11:48:09 -04:00
|
|
|
endtry
|
2011-03-27 18:08:06 -04:00
|
|
|
endfunction " }}}
|
|
|
|
" }}}
|