On Sat, Apr 5, 2008 at 1:56 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
>
>  Dominique Pelle wrote:
>
>  > vimtutor only starts the terminal version of vim.   Since vimtutor
>  > is for newbies, it would good if vimtutor could also start in gvim.
>  > Some beginners may feel more comfortable with gvim rather than
>  > vim.
>  >
>  > I just wrote a simple patch which adds an optional -g argument
>  > to start vimtutor in gvim rather than vim  (by default, it starts vimtutor
>  > in vim).
>
>  Thanks.  Useful.
>
>  Perhaps we could also make a link from "gvimtutor" to work like
>  "vimtutor -g"?


Sounds good of course.

Perhaps we can also add a menu item in the Help menu
of gvim to start the tutorial within gvim.

This more or less does it, but it's not perfect  (it does not
clean-up tmp file). There must be a better way.

if has('gui_running')
 fun! Do_vimtutor()
   e /tmp/tutor|%r $VIMRUNTIME/tutor/%|0
 endfun

 amenu Help.tutorial  :call Do_vimtutor()<CR>
endif

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui