aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-08-15 14:56:46 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-08-15 14:56:46 -0400
commit197a5ad376ed7b5b75fb62a91f00b1eadc2bc2c7 (patch)
treec144054da00b7a3691e7bdf287543d3a22fecb62 /runtime/doc
parentd8f1acbf9d75171d37973e39eceac750f51e4145 (diff)
parent4fc1ab779dd23416af08f4124d5f72c2c0629e56 (diff)
downloadrneovim-197a5ad376ed7b5b75fb62a91f00b1eadc2bc2c7.tar.gz
rneovim-197a5ad376ed7b5b75fb62a91f00b1eadc2bc2c7.tar.bz2
rneovim-197a5ad376ed7b5b75fb62a91f00b1eadc2bc2c7.zip
Merge pull request #2700 from fmoralesc/vim-tutor-mode
runtime: Include vim-tutor-mode
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/pi_tutor.txt50
-rw-r--r--runtime/doc/usr_01.txt42
-rw-r--r--runtime/doc/usr_02.txt2
4 files changed, 56 insertions, 40 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index a79903b358..e8c844f7d2 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -5163,7 +5163,7 @@ A jump table for the options with a short description can be found at |Q_op|.
print/ files for printing |postscript-print-encoding|
spell/ spell checking files |spell|
syntax/ syntax files |mysyntaxfile|
- tutor/ files for vimtutor |tutor|
+ tutor/ tutorial files |:Tutor|
And any other file searched for with the |:runtime| command.
diff --git a/runtime/doc/pi_tutor.txt b/runtime/doc/pi_tutor.txt
new file mode 100644
index 0000000000..7ed47b24dd
--- /dev/null
+++ b/runtime/doc/pi_tutor.txt
@@ -0,0 +1,50 @@
+*pi_tutor.txt* Interactive tutorials.
+*vim-tutor-mode*
+
+vim-tutor-mode provides a system to follow and create interactive tutorials
+for vim and third party plugins. It replaces the venerable `vimtutor` system.
+
+==============================================================================
+1. Usage *vim-tutor-usage*
+
+vim-tutor-mode tutorials are hypertext documents, they have rich text and
+contain links. To stand out from the rest of the text, links are underlined.
+You can follow them by placing the cursor over them and pressing <Enter>, or
+by double-clicking them.
+
+1.1 Commands
+------------
+ *:Tutor*
+:Tutor {tutorial} Opens a tutorial. Command-line completion for
+ {tutorial} is provided, the candidates are a list of
+ '.tutor' files found in the 'tutor/' folder in
+ the 'runtimepath'. Tutorials prefixed with 'vim-' will
+ always be shown first.
+
+ If no {tutorial} is provided, the command starts the
+ 'vim-01-beginner' tutorial, which is equivalent to
+ Vim's `vimtutor`.
+
+=============================================================================
+2. Creating tutorials *vim-tutor-create*
+
+Writing vim-tutor-mode tutorials is easy. For an overview of the format used,
+please consult the 'tutor.tutor' file: >
+
+ :Tutor tutor
+<
+New tutorials must be placed in the 'tutor/' folder in the 'runtimepath'
+to be detected by the :Tutor command.
+
+It is recommended to use a less formal style when writing tutorials than in
+regular documentation (unless the content requires it).
+
+============================================================================
+3. Contributing
+
+Development of the plugin is done over at github [1]. Feel free to report
+issues and make suggestions.
+
+[1]: https://github.com/fmoralesc/vim-tutor-mode
+
+" vim: set ft=help :
diff --git a/runtime/doc/usr_01.txt b/runtime/doc/usr_01.txt
index cdb3035a40..c6d363ad5f 100644
--- a/runtime/doc/usr_01.txt
+++ b/runtime/doc/usr_01.txt
@@ -70,52 +70,18 @@ If the file already exists you probably want to keep it.
For more info see |vimrc|.
==============================================================================
-*01.3* Using the Vim tutor *tutor* *vimtutor*
+*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, if Vim has been properly installed, you can start it from the shell:
->
- vimtutor
+To start the tutorial, execute >
-On MS-Windows you can find it in the Program/Vim menu. Or execute
-vimtutor.bat in the $VIMRUNTIME directory.
-
-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
-
-On Unix, if you prefer using the GUI version of Vim, use "gvimtutor" or
-"vimtutor -g", optionally with a two-letter language code.
-
-
-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 "TUTORCOPY" 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'
+ :Tutor
<
-2. Edit the copied file with Vim:
->
- vim -u NONE TUTORCOPY
-<
- The extra arguments make sure Vim is started in a good mood.
+from within nvim. The tutorial will lead you from that point. Have fun!
-3. Delete the copied file when you are finished with it:
->
- del TUTORCOPY
-<
==============================================================================
*01.4* Copyright *manual-copyright*
diff --git a/runtime/doc/usr_02.txt b/runtime/doc/usr_02.txt
index ebb918d7ec..cd25b14e32 100644
--- a/runtime/doc/usr_02.txt
+++ b/runtime/doc/usr_02.txt
@@ -164,7 +164,7 @@ right and j points down. In a picture: >
The best way to learn these commands is by using them. Use the "i" command to
insert some more lines of text. Then use the hjkl keys to move around and
insert a word somewhere. Don't forget to press <Esc> to go back to Normal
-mode. The |vimtutor| is also a nice way to learn by doing.
+mode. |:Tutor| is also a nice way to learn by doing.
For Japanese users, Hiroshi Iwatani suggested using this: