|
Karsten Hopp |
ab4610 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
ab4610 |
Subject: Patch 7.1.295
|
|
Karsten Hopp |
ab4610 |
Fcc: outbox
|
|
Karsten Hopp |
ab4610 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ab4610 |
Mime-Version: 1.0
|
|
Karsten Hopp |
ab4610 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
ab4610 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ab4610 |
------------
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
Patch 7.1.295
|
|
Karsten Hopp |
ab4610 |
Problem: Vimtutor only works with vim, not gvim.
|
|
Karsten Hopp |
ab4610 |
Solution: Add the -g flag to vimtutor. (Dominique Pelle) Add gvimtutor.
|
|
Karsten Hopp |
ab4610 |
Files: src/Makefile, src/gvimtutor, src/vimtutor, runtime/doc/vimtutor.1
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
*** ../vim-7.1.294/src/Makefile Wed May 7 13:09:17 2008
|
|
Karsten Hopp |
ab4610 |
--- src/Makefile Wed May 7 17:34:31 2008
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 1867,1872 ****
|
|
Karsten Hopp |
ab4610 |
--- 1872,1879 ----
|
|
Karsten Hopp |
ab4610 |
installtutorbin: $(DEST_VIM)
|
|
Karsten Hopp |
ab4610 |
$(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
|
|
Karsten Hopp |
ab4610 |
chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
|
|
Karsten Hopp |
ab4610 |
+ $(INSTALL_DATA) gvimtutor $(DEST_BIN)/$(GVIMNAME)tutor
|
|
Karsten Hopp |
ab4610 |
+ chmod $(SCRIPTMOD) $(DEST_BIN)/$(GVIMNAME)tutor
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
installtutor: $(DEST_RT) $(DEST_TUTOR)
|
|
Karsten Hopp |
ab4610 |
-$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 2075,2080 ****
|
|
Karsten Hopp |
ab4610 |
--- 2082,2088 ----
|
|
Karsten Hopp |
ab4610 |
uninstall: uninstall_runtime
|
|
Karsten Hopp |
ab4610 |
-rm -f $(DEST_BIN)/$(VIMTARGET)
|
|
Karsten Hopp |
ab4610 |
-rm -f $(DEST_BIN)/vimtutor
|
|
Karsten Hopp |
ab4610 |
+ -rm -f $(DEST_BIN)/gvimtutor
|
|
Karsten Hopp |
ab4610 |
-rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
|
|
Karsten Hopp |
ab4610 |
-rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
|
|
Karsten Hopp |
ab4610 |
-rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 2171,2177 ****
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
shadow: runtime pixmaps
|
|
Karsten Hopp |
ab4610 |
mkdir $(SHADOWDIR)
|
|
Karsten Hopp |
ab4610 |
! cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs .
|
|
Karsten Hopp |
ab4610 |
mkdir $(SHADOWDIR)/auto
|
|
Karsten Hopp |
ab4610 |
cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
|
|
Karsten Hopp |
ab4610 |
cd $(SHADOWDIR); rm -f auto/link.sed
|
|
Karsten Hopp |
ab4610 |
--- 2179,2185 ----
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
shadow: runtime pixmaps
|
|
Karsten Hopp |
ab4610 |
mkdir $(SHADOWDIR)
|
|
Karsten Hopp |
ab4610 |
! cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs .
|
|
Karsten Hopp |
ab4610 |
mkdir $(SHADOWDIR)/auto
|
|
Karsten Hopp |
ab4610 |
cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
|
|
Karsten Hopp |
ab4610 |
cd $(SHADOWDIR); rm -f auto/link.sed
|
|
Karsten Hopp |
ab4610 |
*** ../vim-7.1.294/src/gvimtutor Wed May 7 17:38:10 2008
|
|
Karsten Hopp |
ab4610 |
--- src/gvimtutor Wed May 7 17:29:35 2008
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 0 ****
|
|
Karsten Hopp |
ab4610 |
--- 1,8 ----
|
|
Karsten Hopp |
ab4610 |
+ #!/bin/sh
|
|
Karsten Hopp |
ab4610 |
+
|
|
Karsten Hopp |
ab4610 |
+ # Start GUI Vim on a copy of the tutor file.
|
|
Karsten Hopp |
ab4610 |
+
|
|
Karsten Hopp |
ab4610 |
+ # Usage: gvimtutor [xx]
|
|
Karsten Hopp |
ab4610 |
+ # See vimtutor for usage.
|
|
Karsten Hopp |
ab4610 |
+
|
|
Karsten Hopp |
ab4610 |
+ exec `dirname $0`/vimtutor -g "$@"
|
|
Karsten Hopp |
ab4610 |
*** ../vim-7.1.294/src/vimtutor Tue Jul 17 14:32:07 2007
|
|
Karsten Hopp |
ab4610 |
--- src/vimtutor Sat Apr 5 12:21:11 2008
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 2,12 ****
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Start Vim on a copy of the tutor file.
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
! # Usage: vimtutor [xx], where xx is a language code like "es" or "nl".
|
|
Karsten Hopp |
ab4610 |
# When an argument is given, it tries loading that tutor.
|
|
Karsten Hopp |
ab4610 |
# When this fails or no argument was given, it tries using 'v:lang'
|
|
Karsten Hopp |
ab4610 |
# When that also fails, it uses the English version.
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
xx=$1
|
|
Karsten Hopp |
ab4610 |
export xx
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
--- 2,25 ----
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Start Vim on a copy of the tutor file.
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
! # Usage: vimtutor [-g] [xx]
|
|
Karsten Hopp |
ab4610 |
! # Where optional argument -g starts vimtutor in gvim (GUI) instead of vim.
|
|
Karsten Hopp |
ab4610 |
! # and xx is a language code like "es" or "nl".
|
|
Karsten Hopp |
ab4610 |
# When an argument is given, it tries loading that tutor.
|
|
Karsten Hopp |
ab4610 |
# When this fails or no argument was given, it tries using 'v:lang'
|
|
Karsten Hopp |
ab4610 |
# When that also fails, it uses the English version.
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
+ # Vim could be called "vim" or "vi". Also check for "vimN", for people who
|
|
Karsten Hopp |
ab4610 |
+ # have Vim installed with its version number.
|
|
Karsten Hopp |
ab4610 |
+ # We anticipate up to a future Vim 8 version :-).
|
|
Karsten Hopp |
ab4610 |
+ seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
|
|
Karsten Hopp |
ab4610 |
+ if test "$1" = "-g"; then
|
|
Karsten Hopp |
ab4610 |
+ # Try to use the GUI version of Vim if possible, it will fall back
|
|
Karsten Hopp |
ab4610 |
+ # on Vim if Gvim is not installed.
|
|
Karsten Hopp |
ab4610 |
+ seq="gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
|
|
Karsten Hopp |
ab4610 |
+ shift
|
|
Karsten Hopp |
ab4610 |
+ fi
|
|
Karsten Hopp |
ab4610 |
+
|
|
Karsten Hopp |
ab4610 |
xx=$1
|
|
Karsten Hopp |
ab4610 |
export xx
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 39,48 ****
|
|
Karsten Hopp |
ab4610 |
# remove the copy of the tutor on exit
|
|
Karsten Hopp |
ab4610 |
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
- # Vim could be called "vim" or "vi". Also check for "vimN", for people who
|
|
Karsten Hopp |
ab4610 |
- # have Vim installed with its version number.
|
|
Karsten Hopp |
ab4610 |
- # We anticipate up to a future Vim 8 version :-).
|
|
Karsten Hopp |
ab4610 |
- seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
|
|
Karsten Hopp |
ab4610 |
for i in $seq; do
|
|
Karsten Hopp |
ab4610 |
testvim=`which $i 2>/dev/null`
|
|
Karsten Hopp |
ab4610 |
if test -f "$testvim"; then
|
|
Karsten Hopp |
ab4610 |
--- 52,57 ----
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 59,65 ****
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
|
Karsten Hopp |
ab4610 |
# The script tutor.vim tells Vim which file to copy
|
|
Karsten Hopp |
ab4610 |
! $VIM -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim'
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Start vim without any .vimrc, set 'nocompatible'
|
|
Karsten Hopp |
ab4610 |
! $VIM -u NONE -c "set nocp" $TUTORCOPY
|
|
Karsten Hopp |
ab4610 |
--- 68,74 ----
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
|
|
Karsten Hopp |
ab4610 |
# The script tutor.vim tells Vim which file to copy
|
|
Karsten Hopp |
ab4610 |
! $VIM -f -u NONE -c 'so $VIMRUNTIME/tutor/tutor.vim'
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
# Start vim without any .vimrc, set 'nocompatible'
|
|
Karsten Hopp |
ab4610 |
! $VIM -f -u NONE -c "set nocp" $TUTORCOPY
|
|
Karsten Hopp |
ab4610 |
*** ../vim-7.1.294/runtime/doc/vimtutor.1 Sun Jun 13 18:50:18 2004
|
|
Karsten Hopp |
ab4610 |
--- runtime/doc/vimtutor.1 Sat Apr 5 12:21:11 2008
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 3,9 ****
|
|
Karsten Hopp |
ab4610 |
vimtutor \- the Vim tutor
|
|
Karsten Hopp |
ab4610 |
.SH SYNOPSIS
|
|
Karsten Hopp |
ab4610 |
.br
|
|
Karsten Hopp |
ab4610 |
! .B vimtutor [language]
|
|
Karsten Hopp |
ab4610 |
.SH DESCRIPTION
|
|
Karsten Hopp |
ab4610 |
.B Vimtutor
|
|
Karsten Hopp |
ab4610 |
starts the
|
|
Karsten Hopp |
ab4610 |
--- 3,9 ----
|
|
Karsten Hopp |
ab4610 |
vimtutor \- the Vim tutor
|
|
Karsten Hopp |
ab4610 |
.SH SYNOPSIS
|
|
Karsten Hopp |
ab4610 |
.br
|
|
Karsten Hopp |
ab4610 |
! .B vimtutor [-g] [language]
|
|
Karsten Hopp |
ab4610 |
.SH DESCRIPTION
|
|
Karsten Hopp |
ab4610 |
.B Vimtutor
|
|
Karsten Hopp |
ab4610 |
starts the
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 18,23 ****
|
|
Karsten Hopp |
ab4610 |
--- 18,26 ----
|
|
Karsten Hopp |
ab4610 |
.B Vim
|
|
Karsten Hopp |
ab4610 |
commands.
|
|
Karsten Hopp |
ab4610 |
.PP
|
|
Karsten Hopp |
ab4610 |
+ The optional argument -g starts vimtutor with gvim rather than vim, if the
|
|
Karsten Hopp |
ab4610 |
+ GUI version of vim is available, or falls back to Vim if gvim is not found.
|
|
Karsten Hopp |
ab4610 |
+ .PP
|
|
Karsten Hopp |
ab4610 |
The optional [language] argument is the two-letter name of a language, like
|
|
Karsten Hopp |
ab4610 |
"it" or "es".
|
|
Karsten Hopp |
ab4610 |
If the [language] argument is missing, the language of the current locale will
|
|
Karsten Hopp |
ab4610 |
*** ../vim-7.1.294/src/version.c Wed May 7 13:09:12 2008
|
|
Karsten Hopp |
ab4610 |
--- src/version.c Wed May 7 17:12:43 2008
|
|
Karsten Hopp |
ab4610 |
***************
|
|
Karsten Hopp |
ab4610 |
*** 668,669 ****
|
|
Karsten Hopp |
ab4610 |
--- 673,676 ----
|
|
Karsten Hopp |
ab4610 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ab4610 |
+ /**/
|
|
Karsten Hopp |
ab4610 |
+ 295,
|
|
Karsten Hopp |
ab4610 |
/**/
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
--
|
|
Karsten Hopp |
ab4610 |
Time flies like an arrow.
|
|
Karsten Hopp |
ab4610 |
Fruit flies like a banana.
|
|
Karsten Hopp |
ab4610 |
|
|
Karsten Hopp |
ab4610 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ab4610 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ab4610 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
ab4610 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|