Wiki: DebugInfo: AutoChange


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

Querying backend directly for 'AutoChange'

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

    [_basepage] => AutoChange
    [_content] => Array
        (
            [0] => <div class="wikitext"><h3>Challenge</h3>
<p class="tightenable">A request was made in #vim for there to be an automatic version of change. This would be a special version of change that would &quot;snap&quot; back to normal mode after a word or line is typed.</p>
<p class="tightenable">For example when using cw and c$, set it so that as soon as soon as enter (or space for cw) is pressed it goes into normal mode?</p>
<hr />
<h3>Solutions</h3>
<p class="tightenable">
            [1] => cached_wikilink Object
                (
                    [_page] => Houl
                )

            [2] =>  how damn old is this challenge??</p>
<pre class="tightenable bottom">
nno &lt;script&gt; cw &lt;sid&gt;spw_cw
nno &lt;script&gt; c$ &lt;sid&gt;crd_c$

nno &lt;silent&gt; &lt;sid&gt;spw_ :call &lt;sid&gt;Stopkey(&quot;space&quot;)&lt;cr&gt;
nno &lt;silent&gt; &lt;sid&gt;crd_ :call &lt;sid&gt;Stopkey(&quot;cr&quot;)&lt;cr&gt;

fun! s:Stopkey(key)
    exe &quot;ino &lt;silent&gt; &lt;sid&gt;unmap &lt;esc&gt;:call &lt;sid&gt;Unmap('&quot;.a:key.&quot;')&lt;cr&gt;&quot;
    exe &quot;ino &lt;script&gt; &lt;&quot;.a:key.&quot;&gt; &lt;sid&gt;unmap&quot;
    ino &lt;script&gt; &lt;esc&gt; &lt;sid&gt;unmap
    ino &lt;script&gt; &lt;c-o&gt; &lt;sid&gt;unmap
    ino &lt;script&gt; &lt;c-c&gt; &lt;sid&gt;unmap
    &quot; not complete: Ctrl-\_Ctrl-N, Ctrl-R=&quot;\&lt;esc&gt;&quot;&lt;cr&gt;, ...
endfun

fun! s:Unmap(key)
    exe &quot;sil! iunmap &lt;&quot;.a:key.&quot;&gt;&quot;
    sil! iunmap &lt;esc&gt;
    sil! iunmap &lt;c-o&gt;
    sil! iunmap &lt;c-c&gt;
endfun

&quot; Notes:
&quot; * &lt;script&gt; and &lt;sid&gt; need a surrounding script file
&quot; * no switching (enable/disable 
            [3] => cached_wikilink Object
                (
                    [_page] => AutoChange
                )

            [4] => )
&quot; * remaps some other keys that stop Insert mode, to not leave i_Space resp.
&quot;   i_Enter mapped (and do unwanted things later)
&quot; * i_Ctrl-O works like i_Esc
&quot; * not a general solution: key must be a &lt;...&gt;-key, one key only</pre>
</div>

        )

    [_description] => A request was made in #vim for there to be an automatic version of change. This would be a special version of change that would "snap" back to normal mode after a word or line is typed.
)
 hits  2165
get_versiondata('AutoChange',8)
 %content  !!Challenge A request was made in #vim ...
 author  84.148.192.144
 author_id  84.148.192.144
 is_minor_edit   
 markup  2
 mtime  1189203563
 pagetype  wikitext
 summary  remove spam
get_versiondata('AutoChange',7)
 %content  !!Challenge A request was made in #vim ...
 _supplanted  1189203563
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186736515
 pagetype  wikitext
get_versiondata('AutoChange',6)
 %content  !!Challenge A request was made in #vim ...
 _supplanted  1186736515
 author  194.94.79.49
 author_id  194.94.79.49
 is_minor_edit   
 markup  2
 mtime  1184878763
 pagetype  wikitext
 summary  Attempt
get_versiondata('AutoChange',5)
 %content  !!Challenge A request was made in #vim ...
 _supplanted  1184878763
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1184066862
 pagetype  wikitext
get_versiondata('AutoChange',4)
 %content  !!Challenge A request was made in #vim ...
 _supplanted  1184066862
 author  MarkStosberg
 author_id  MarkStosberg
 is_minor_edit   
 markup  2
 mtime  1109436840
 pagetype  wikitext
 summary  that looked like a spam attack, so I removed it.

Copyright © 2007 RobertMelton.com