Skip to content

Instantly share code, notes, and snippets.

@scajanus
Created October 19, 2012 13:31
Show Gist options
  • Select an option

  • Save scajanus/3918240 to your computer and use it in GitHub Desktop.

Select an option

Save scajanus/3918240 to your computer and use it in GitHub Desktop.
Added support for visual line
function! SearchPartyVisualMatch()
let spos = getpos("'<")
let epos = getpos("'>")
if epos[2] > strlen(getline(epos[1]))
let epos[2] = strlen(getline("'>"))
call matchadd('Error', '\%' . spos[1] . 'l\%' . spos[2] . 'c\_.*\%' . epos[1] . 'l\%' . epos[2] . 'c.')
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment