Wiki: DebugInfo: VimTutor


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

Querying backend directly for 'VimTutor'

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

    [_basepage] => VimTutor
    [_content] => Array
        (
            [0] => <div class="wikitext"><p class="tightenable top bottom">This is what the Vim manual has to say about Vimtutor:</p>
<pre class="tightenable top bottom">
*01.3*  Using the Vim tutor                             *tutor* *vimtutor*

Instead of reading the text (boring!) you can use the vimtutor to learn your
first Vim commands.  This is a 30 minute tutorial that teaches the most basic
Vim functionality hands-on.

On Unix and MS-Windows, if Vim has been properly installed, you can start it
from the shell:

        vimtutor

This will make a copy of the tutor file, so that you can edit it without the
risk of damaging the original.
   There are a few translated versions of the tutor.  To find out if yours is
available, use the two-letter language code. For French:

        vimtutor fr

For OpenVMS, if Vim has been properly installed, you can start vimtutor from a
VMS prompt with:

        @VIM:vimtutor

Optionally add the two-letter language code as above.


On other systems, you have to do a little work:

1. Copy the tutor file.  You can do this with Vim (it knows where to find it):

        vim -u NONE -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! TUTORCOPY' -c 'q'

   This will write the file &quot;TUTORCOPY&quot; in the current directory.  To use a
translated version of the tutor, append the two-letter language code to the
filename.  For French:

        vim -u NONE -c 'e $VIMRUNTIME/tutor/tutor.fr' -c 'w! TUTORCOPY' -c 'q'

2. Edit the copied file with Vim:

        vim -u NONE -c &quot;set nocp&quot; TUTORCOPY

   The extra arguments make sure Vim is started in a good mood.

3. Delete the copied file when you are finished with it:

        del TUTORCOPY</pre>
</div>

        )

)
 hits  3647
get_versiondata('VimTutor',5)
 %content  This is what the Vim manual has to say a ...
 author  74.244.134.44
 author_id  74.244.134.44
 is_minor_edit  1
 markup  2
 mtime  1189044960
 pagetype  wikitext
 summary  spam removed
get_versiondata('VimTutor',4)
 %content  This is what the Vim manual has to say a ...
 _supplanted  1189044960
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186733048
 pagetype  wikitext
get_versiondata('VimTutor',3)
 %content  This is what the Vim manual has to say a ...
 _supplanted  1186733048
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1184001336
 pagetype  wikitext
get_versiondata('VimTutor',1)
 %content  This is what the Vim manual has to say a ...
 _supplanted  1183056586
 author  65.242.74.195
 author_id  65.242.74.195
 is_minor_edit   
 markup  2
 mtime  1082123003
 pagetype  wikitext

Copyright © 2007 RobertMelton.com