0
0
mirror of https://github.com/vim/vim.git synced 2025-07-25 10:54:51 -04:00

updated for version 7.1a

This commit is contained in:
Bram Moolenaar 2007-05-06 13:26:41 +00:00
parent 9fc8c24ef8
commit d7afed3753
3 changed files with 67 additions and 21 deletions

View File

@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 7.0. Last change: 2007 Jan 16 *autocmd.txt* For Vim version 7.1a. Last change: 2007 Mar 27
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -263,7 +263,7 @@ Name triggered by ~
Startup and exit Startup and exit
|VimEnter| after doing all the startup stuff |VimEnter| after doing all the startup stuff
|GUIEnter| after starting the GUI successfully |GUIEnter| after starting the GUI successfully
|TermResponse| after the termainal response to |t_RV| is received |TermResponse| after the terminal response to |t_RV| is received
|VimLeavePre| before exiting Vim, before writing the viminfo file |VimLeavePre| before exiting Vim, before writing the viminfo file
|VimLeave| before exiting Vim, after writing the viminfo file |VimLeave| before exiting Vim, after writing the viminfo file
@ -461,6 +461,9 @@ CursorHold When the user doesn't press a key for the time
make some coffee. :) See |CursorHold-example| make some coffee. :) See |CursorHold-example|
for previewing tags. for previewing tags.
This event is only triggered in Normal mode. This event is only triggered in Normal mode.
It is not triggered when waiting for a command
argument to be typed, or a movement after an
operator.
While recording the CursorHold event is not While recording the CursorHold event is not
triggered. |q| triggered. |q|
Note: Interactive commands cannot be used for Note: Interactive commands cannot be used for
@ -528,8 +531,6 @@ FileChangedShell When Vim notices that the modification time of
and the buffer was not changed. If a and the buffer was not changed. If a
FileChangedShell autocommand is present the FileChangedShell autocommand is present the
warning message and prompt is not given. warning message and prompt is not given.
This is useful for reloading related buffers
which are affected by a single command.
The |v:fcs_reason| variable is set to indicate The |v:fcs_reason| variable is set to indicate
what happened and |v:fcs_choice| can be used what happened and |v:fcs_choice| can be used
to tell Vim what to do next. to tell Vim what to do next.
@ -561,7 +562,8 @@ FileReadPost After reading a file with a ":read" command.
*FileReadPre* *FileReadPre*
FileReadPre Before reading a file with a ":read" command. FileReadPre Before reading a file with a ":read" command.
*FileType* *FileType*
FileType When the 'filetype' option has been set. FileType When the 'filetype' option has been set. The
pattern is matched against the filetype.
<afile> can be used for the name of the file <afile> can be used for the name of the file
where this option was set, and <amatch> for where this option was set, and <amatch> for
the new value of 'filetype'. the new value of 'filetype'.
@ -617,8 +619,9 @@ FocusLost When Vim lost input focus. Only for the GUI
*FuncUndefined* *FuncUndefined*
FuncUndefined When a user function is used but it isn't FuncUndefined When a user function is used but it isn't
defined. Useful for defining a function only defined. Useful for defining a function only
when it's used. Both <amatch> and <afile> are when it's used. The pattern is matched
set to the name of the function. against the function name. Both <amatch> and
<afile> are set to the name of the function.
See |autoload-functions|. See |autoload-functions|.
*GUIEnter* *GUIEnter*
GUIEnter After starting the GUI successfully, and after GUIEnter After starting the GUI successfully, and after
@ -626,6 +629,12 @@ GUIEnter After starting the GUI successfully, and after
VimEnter when using gvim. Can be used to VimEnter when using gvim. Can be used to
position the window from a .gvimrc file: > position the window from a .gvimrc file: >
:autocmd GUIEnter * winpos 100 50 :autocmd GUIEnter * winpos 100 50
< *GUIFailed*
GUIFailed After starting the GUI failed. Vim may
continue to run in the terminal, if possible
(only on Unix and alikes, when connecting the
X server fails). You may want to quit Vim: >
:autocmd GUIFailed * qall
< *InsertChange* < *InsertChange*
InsertChange When typing <Insert> while in Insert or InsertChange When typing <Insert> while in Insert or
Replace mode. The |v:insertmode| variable Replace mode. The |v:insertmode| variable
@ -633,8 +642,8 @@ InsertChange When typing <Insert> while in Insert or
Be careful not to move the cursor or do Be careful not to move the cursor or do
anything else that the user does not expect. anything else that the user does not expect.
*InsertEnter* *InsertEnter*
InsertEnter When starting Insert mode. Also for Replace InsertEnter Just before starting Insert mode. Also for
mode and Virtual Replace mode. The Replace mode and Virtual Replace mode. The
|v:insertmode| variable indicates the mode. |v:insertmode| variable indicates the mode.
Be careful not to move the cursor or do Be careful not to move the cursor or do
anything else that the user does not expect. anything else that the user does not expect.
@ -657,7 +666,7 @@ MenuPopup Just before showing the popup menu (under the
QuickFixCmdPre Before a quickfix command is run (|:make|, QuickFixCmdPre Before a quickfix command is run (|:make|,
|:lmake|, |:grep|, |:lgrep|, |:grepadd|, |:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|:lgrepadd|, |:vimgrep|, |:lvimgrep|, |:lgrepadd|, |:vimgrep|, |:lvimgrep|,
|:vimgrepadd|, |:vimgrepadd|). The pattern is |:vimgrepadd|, |:lvimgrepadd|). The pattern is
matched against the command being run. When matched against the command being run. When
|:grep| is used but 'grepprg' is set to |:grep| is used but 'grepprg' is set to
"internal" it still matches "grep". "internal" it still matches "grep".
@ -671,7 +680,8 @@ QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
location. location.
*RemoteReply* *RemoteReply*
RemoteReply When a reply from a Vim that functions as RemoteReply When a reply from a Vim that functions as
server was received |server2client()|. server was received |server2client()|. The
pattern is matched against the {serverid}.
<amatch> is equal to the {serverid} from which <amatch> is equal to the {serverid} from which
the reply was sent, and <afile> is the actual the reply was sent, and <afile> is the actual
reply string. reply string.
@ -735,7 +745,8 @@ SwapExists Detected an existing swap file when starting
Note: Do not try to change the buffer, the Note: Do not try to change the buffer, the
results are unpredictable. results are unpredictable.
*Syntax* *Syntax*
Syntax When the 'syntax' option has been set. Syntax When the 'syntax' option has been set. The
pattern is matched against the syntax name.
<afile> can be used for the name of the file <afile> can be used for the name of the file
where this option was set, and <amatch> for where this option was set, and <amatch> for
the new value of 'syntax'. the new value of 'syntax'.

View File

@ -1,6 +1,6 @@
" Vim tutor support file " Vim tutor support file
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es> " Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
" Last Change: 2006 Sep 09 " Last Change: 2007 Mar 01
" This small source file is used for detecting if a translation of the " This small source file is used for detecting if a translation of the
" tutor file exist, i.e., a tutor.xx file, where xx is the language. " tutor file exist, i.e., a tutor.xx file, where xx is the language.
@ -35,6 +35,8 @@ else
let s:ext = ".pl" let s:ext = ".pl"
elseif s:lang =~ "Slovak" elseif s:lang =~ "Slovak"
let s:ext = ".sk" let s:ext = ".sk"
elseif s:lang =~ "Czech"
let s:ext = ".cs"
elseif s:lang =~ "Dutch" elseif s:lang =~ "Dutch"
let s:ext = ".nl" let s:ext = ".nl"
else else
@ -105,9 +107,22 @@ if s:ext =~? '\.gr\|\.el'
endif endif
endif endif
" The Slovak tutor is available in two encodings, guess which one to use " The Slovak tutor is available in three encodings, guess which one to use
if s:ext =~? '\.sk' && &enc =~ 1250 if s:ext =~? '\.sk'
let s:ext = ".sk.cp1250" if &enc == 'utf-8'
let s:ext = ".sk.utf-8"
elseif &enc =~ 1250
let s:ext = ".sk.cp1250"
endif
endif
" The Czech tutor is available in three encodings, guess which one to use
if s:ext =~? '\.cs'
if &enc == 'utf-8'
let s:ext = ".cs.utf-8"
elseif &enc =~ 1250
let s:ext = ".cs.cp1250"
endif
endif endif
" The Russian tutor is available in three encodings, guess which one to use. " The Russian tutor is available in three encodings, guess which one to use.
@ -121,6 +136,15 @@ if s:ext =~? '\.ru'
endif endif
endif endif
" The Hungarian tutor is available in two encodings, guess which one to use.
if s:ext =~? '\.hu'
if &enc == 'utf-8'
let s:ext = '.hu.utf-8'
elseif &enc =~ 'iso-8859-2'
let s:ext = '.hu'
endif
endif
" Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch). " Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch).
if s:ext =~? '\.ge' if s:ext =~? '\.ge'
let s:ext = ".de" let s:ext = ".de"

View File

@ -404,13 +404,21 @@ if test "$enable_mzschemeinterp" = "yes"; then
fi fi
fi fi
SCHEME_INC=
if test "X$vi_cv_path_mzscheme_pfx" != "X"; then if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
AC_MSG_CHECKING(if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include) AC_MSG_CHECKING(if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include)
if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
AC_MSG_RESULT("yes") AC_MSG_RESULT("yes")
else else
AC_MSG_RESULT("no") AC_MSG_RESULT("no")
vi_cv_path_mzscheme_pfx= AC_MSG_CHECKING(if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include)
if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
AC_MSG_RESULT("yes")
SCHEME_INC=/plt
else
AC_MSG_RESULT("no")
vi_cv_path_mzscheme_pfx=
fi
fi fi
fi fi
@ -428,8 +436,11 @@ if test "$enable_mzschemeinterp" = "yes"; then
MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
fi fi
fi fi
MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
-DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" SCHEME_COLLECTS=lib/plt/
fi
MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
-DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
MZSCHEME_SRC="if_mzsch.c" MZSCHEME_SRC="if_mzsch.c"
MZSCHEME_OBJ="objects/if_mzsch.o" MZSCHEME_OBJ="objects/if_mzsch.o"
MZSCHEME_PRO="if_mzsch.pro" MZSCHEME_PRO="if_mzsch.pro"
@ -508,8 +519,8 @@ if test "$enable_perlinterp" = "yes"; then
LDFLAGS=$ldflags_save LDFLAGS=$ldflags_save
if test $perl_ok = yes; then if test $perl_ok = yes; then
if test "X$perlcppflags" != "X"; then if test "X$perlcppflags" != "X"; then
dnl remove -pipe, it confuses cproto dnl remove -pipe and -Wxxx, it confuses cproto
PERL_CFLAGS=`echo "$perlcppflags" | sed 's/-pipe //'` PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
fi fi
if test "X$perlldflags" != "X"; then if test "X$perlldflags" != "X"; then
LDFLAGS="$perlldflags $LDFLAGS" LDFLAGS="$perlldflags $LDFLAGS"