Wiki: DebugInfo: VimDiff


Detailed view of a page, which is probably more useful for debugging than anything else.

Querying backend directly for 'VimDiff'

get_pagedata('VimDiff')
 _cached_html 
transformedtext Object
(
    [_type] => pagetype_wikitext Object
        (
        )

    [_basepage] => VimDiff
    [_content] => Array
        (
            [0] => <div class="wikitext"><p class="tightenable top">The <tt>MyDiff()</tt> function that comes with the standard vim installation (as of 6.4) does not handle diffs very well (or indeed at all).  Here is an example of a <tt>MyDiff()</tt> function that works perfectly well.</p>
<pre class="tightenable bottom">
if has('win32')
  set diffexpr=MyDiff()
  function! MyDiff()
    let opt = '-a --binary '
    if &amp;diffopt =~ 'icase' | let opt = opt . '-i ' | endif
    if &amp;diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
    let arg1 = v:fname_in
    if arg1 =~ ' ' | let arg1 = '&quot;' . arg1 . '&quot;' | endif
    let arg2 = v:fname_new
    if arg2 =~ ' ' | let arg2 = '&quot;' . arg2 . '&quot;' | endif
    let arg3 = v:fname_out
    if arg3 =~ ' ' | let arg3 = '&quot;' . arg3 . '&quot;' | endif
    if &amp;sh =~ '\&lt;cmd'
      silent execute '!&quot;&quot;' . $VIM. '\vim64\diff.exe&quot; ' . opt . arg1 . ' ' . arg2 . ' &gt; ' . arg3 . '&quot;'
    else
      silent execute '!'.$VIM.'\vim64\diff.exe&quot; ' . opt . arg1 . ' ' . arg2 . ' &gt; ' . arg3
    endif
  endfunction
endif</pre>
</div>

        )

    [_description] => The MyDiff() function that comes with the standard vim installation (as of 6.4) does not handle diffs very well (or indeed at all).  Here is an example of a MyDiff() function that works perfectly well.
)
 hits  1418
get_versiondata('VimDiff',10)
 %content  The <tt>~MyDiff()</tt> function that com ...
 author  66.57.21.224
 author_id  66.57.21.224
 is_minor_edit   
 markup  2
 mtime  1188846937
 pagetype  wikitext
get_versiondata('VimDiff',9)
 %content  The <tt>~MyDiff()</tt> function that com ...
 _supplanted  1188846937
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186710301
 pagetype  wikitext
get_versiondata('VimDiff',8)
 %content  The <tt>~MyDiff()</tt> function that com ...
 _supplanted  1186710301
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186699919
 pagetype  wikitext
get_versiondata('VimDiff',7)
 %content  The <tt>~MyDiff()</tt> function that com ...
 _supplanted  1186699919
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1184029926
 pagetype  wikitext
get_versiondata('VimDiff',3)
 %content  The <tt>~MyDiff()</tt> function that com ...
 _supplanted  1183055183
 author  AristotlePagaltzis
 author_id  AristotlePagaltzis
 is_minor_edit  1
 markup  2
 mtime  1149190348
 pagetype  wikitext
 summary  fixed formatting

Copyright © 2007 RobertMelton.com