Created
October 19, 2012 13:31
-
-
Save scajanus/3918240 to your computer and use it in GitHub Desktop.
Added support for visual line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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