Script:2714
Talk0
1,599pages on
this wiki
this wiki
Use this page to discuss script 2714 Tag Signature Balloons: tag signatures in balloon tooltips
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Suggested patch
Edit
If you have code lines that span multiple lines, each ending with a backslash, the following patch will show up to nine lines in the tooltip. It replaces the first if on line 144 of script version r714:
if TagList[Index]['cmd'] =~ '^\d\+$' " Handle links to specific lines in a source file let LineNum = str2nr(TagList[Index]['cmd']) let FileName = TagList[Index]['filename'] if bufexists(FileName) && (len(getbufline(FileName, LineNum)) > 0) " An open source file let l = getbufline(FileName, LineNum, LineNum + 9) elseif (g:TagSignatureAllowFileLoading == 1) && filereadable(FileName) " A non-open source file let l = readfile(FileName, '', LineNum+9)[LineNum-1:LineNum+8] endif " Take more lines if they end with a backslash let i = 0 while l[i] =~ '\\$' && i < 9 let i += 1 endwhile let s = join(l[0:i], "\n")
--April 16, 2013