forked from aniani/vim
updated for version 7.0066
This commit is contained in:
6
Filelist
6
Filelist
@@ -662,6 +662,8 @@ EXTRA = \
|
||||
# generic language files
|
||||
LANG_GEN = \
|
||||
README_lang.txt \
|
||||
runtime/doc/*-fr.1 \
|
||||
runtime/doc/*-fr.UTF-8.1 \
|
||||
runtime/doc/*-it.1 \
|
||||
runtime/doc/*-it.UTF-8.1 \
|
||||
runtime/doc/*-ru.1 \
|
||||
@@ -679,7 +681,9 @@ LANG_GEN = \
|
||||
runtime/tutor/tutor.pl.* \
|
||||
runtime/tutor/tutor.ru.* \
|
||||
runtime/tutor/tutor.zh.* \
|
||||
runtime/spell/en.spl \
|
||||
runtime/spell/README.txt \
|
||||
runtime/spell/en.latin1.spl \
|
||||
runtime/spell/en.utf-8.spl \
|
||||
|
||||
# all files for lang archive
|
||||
LANG_SRC = \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*arabic.txt* For Vim version 7.0aa. Last change: 2004 Jun 09
|
||||
*arabic.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||
@@ -24,7 +24,7 @@ Introduction
|
||||
------------
|
||||
Arabic is a rather demanding language in which a number of special
|
||||
features are required. Characters are right-to-left oriented and
|
||||
ought to appear as such on the screen (ie. from right to left).
|
||||
ought to appear as such on the screen (i.e. from right to left).
|
||||
Arabic also requires shaping of its characters, meaning the same
|
||||
character has a different visual form based on its relative location
|
||||
within a word (initial, medial, final or stand-alone). Arabic also
|
||||
@@ -107,8 +107,8 @@ o Setting the Arabic fonts
|
||||
:set guifont=your_ARABIC_FONT
|
||||
<
|
||||
NOTE: the string 'your_ARABIC_FONT' is used to denote a complete
|
||||
font name akin to that used in linux/unix system.
|
||||
(eg. -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1)
|
||||
font name akin to that used in Linux/Unix systems.
|
||||
(e.g. -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1)
|
||||
|
||||
You can append the 'guifont' set command to your .vimrc file
|
||||
in order to get the same above noted results. In other words,
|
||||
@@ -179,11 +179,11 @@ o Enable Arabic settings [short-cut]
|
||||
|
||||
If, on the other hand, you'd like to be verbose and explicit and
|
||||
are opting not to use the 'arabic' short-cut command, here's what
|
||||
is needed (ie. if you use ':set arabic' you can skip this section) -
|
||||
is needed (i.e. if you use ':set arabic' you can skip this section) -
|
||||
|
||||
+ Arabic Keymapping Activation
|
||||
|
||||
To activate the Arabic keymap (ie. to remap your English/Latin
|
||||
To activate the Arabic keymap (i.e. to remap your English/Latin
|
||||
keyboard to look-n-feel like a standard Arabic one), set the
|
||||
'keymap' command to "arabic". This is done by entering
|
||||
>
|
||||
@@ -197,14 +197,14 @@ o Enable Arabic settings [short-cut]
|
||||
default mapping (English), it is advised that users use the 'CTRL-^'
|
||||
key press while in insert (or add/replace) mode. The command-line
|
||||
will display your current mapping by displaying an "Arabic" string
|
||||
next to your insertion mode (eg. -- INSERT Arabic --) indicating
|
||||
next to your insertion mode (e.g. -- INSERT Arabic --) indicating
|
||||
your current keymap.
|
||||
|
||||
+ Arabic deletion of a combined pair character
|
||||
|
||||
By default VIM has the 'delcombine' option disabled. This option
|
||||
allows the deletion of ALEF in a LAM_ALEF (LAA) combined character
|
||||
and still retain the LAM (ie. it reverts to treating the combined
|
||||
and still retain the LAM (i.e. it reverts to treating the combined
|
||||
character as its natural two characters form -- this also pertains
|
||||
to harakat and their combined forms). You can enable this option
|
||||
by entering
|
||||
@@ -227,7 +227,7 @@ o Enable Arabic settings [short-cut]
|
||||
- While in Left-to-right mode, enter ':set rl' in the command line
|
||||
('rl' is the abbreviation for rightleft).
|
||||
|
||||
- Put the ':set rl' line in your '.vimrc' file to start the VIM in
|
||||
- Put the ':set rl' line in your '.vimrc' file to start Vim in
|
||||
right-to-left mode permanently.
|
||||
|
||||
+ Arabic right-to-left command-line Mode
|
||||
@@ -295,7 +295,7 @@ Restrictions
|
||||
------------
|
||||
|
||||
o VIM in its GUI form does not currently support Bi-directionality
|
||||
(ie. the ability to see both Arabic and Latin intermixed within
|
||||
(i.e. the ability to see both Arabic and Latin intermixed within
|
||||
the same line).
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ Known Bugs
|
||||
|
||||
There is one known minor bug,
|
||||
|
||||
1. If you insert a haraka (eg. Fatha (U+064E)) after a LAM (U+0644)
|
||||
1. If you insert a haraka (e.g. Fatha (U+064E)) after a LAM (U+0644)
|
||||
and then insert an ALEF (U+0627), the appropriate combining will
|
||||
not happen due to the sandwiched haraka resulting in something
|
||||
that will NOT be displayed correctly.
|
||||
@@ -320,4 +320,3 @@ There is one known minor bug,
|
||||
No other bugs are known to exist.
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
|
||||
56
runtime/doc/evim-fr.1
Normal file
56
runtime/doc/evim-fr.1
Normal file
@@ -0,0 +1,56 @@
|
||||
.TH EVIM 1 "16 f<>vrier 2002 February 16"
|
||||
.SH NAME
|
||||
evim \- <20> Easy Vim <20>, <20>dite un fichier avec Vim sans utiliser les modes
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.B evim
|
||||
[options] [fichier ...]
|
||||
.br
|
||||
.B eview
|
||||
.SH DESCRIPTION
|
||||
.B eVim
|
||||
lance
|
||||
.B Vim
|
||||
et configure ses options afin qu'il se comporte comme un <20>diteur sans mode.
|
||||
Cela reste Vim, mais vous pouvez l'utiliser comme un <20>diteur <20> cliquer-taper <20>.
|
||||
Cela ressemble beaucoup <20> l'<27>dition avec Notepad sur MS-Windows.
|
||||
.B eVim
|
||||
ne fonctionne qu'avec l'interface graphique, qui est n<>cessaire pour permettre
|
||||
l'utilisation des menus et de la barre d'outils.
|
||||
.PP
|
||||
Il n'est utile qu'aux personnes qui ne parviennent vraiment pas <20> utiliser Vim
|
||||
de fa<66>on traditionnelle. L'<27>dition est alors bien moins efficace.
|
||||
.PP
|
||||
.B eview
|
||||
fait la m<>me chose, mais d<>marre Vim en mode Lecture-seule.
|
||||
Cela revient <20> lancer evim \-R.
|
||||
.PP
|
||||
Voir vim(1) pour davantage d'informations sur Vim, les options, etc.
|
||||
.PP
|
||||
L'option 'insertmode' est activ<69>e pour permettre de taper directement du texte.
|
||||
.br
|
||||
Les mappages sont configur<75>s pour que Copier et Coller fonctionnent avec les
|
||||
raccourcis habituels de MS-Windows. CTRL-X coupe le texte, CTRL-C copie le
|
||||
texte et CTRL-V colle le texte.
|
||||
Vous pouvez utiliser CTRL-Q pour obtenir la fonction originale de CTRL-V.
|
||||
.SH OPTIONS
|
||||
Voir vim(1).
|
||||
.SH FICHIERS
|
||||
.TP 15
|
||||
/usr/local/lib/vim/evim.vim
|
||||
Le script charg<72> pour initialiser eVim.
|
||||
.SH AUSSI CONNU SOUS
|
||||
<EFBFBD>galement connu sous le nom <20> Vim pour gumbies <20> [N.D.T. : Flying Circus...].
|
||||
Quand vous utilisez eVim, vous <20>tes cens<6E> prendre un mouchoir de poche,
|
||||
faire un noeud <20> chaque coin et le porter sur votre t<>te.
|
||||
.SH VOIR AUSSI
|
||||
vim(1)
|
||||
.SH AUTEUR
|
||||
La majeure partie de
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> <20>crite par Bram Moolenaar, avec l'aide de nombreux autres contributeurs.
|
||||
Voir le menu Aide/Remerciements ou ":help credits" dans
|
||||
.B Vim.
|
||||
.SH TRADUCTION
|
||||
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
|
||||
<david.blanchet@free.fr> 2005-03-26.
|
||||
@@ -1,4 +1,4 @@
|
||||
*farsi.txt* For Vim version 7.0aa. Last change: 2004 Jun 16
|
||||
*farsi.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||
@@ -54,7 +54,7 @@ o Farsi keymapping on the command line in reverse insert mode.
|
||||
|
||||
o Toggling between left-to-right and right-to-left via F8 function key.
|
||||
|
||||
o Toggling between Farsi ISIR-3342 standard encoding and VIM Farsi via F9
|
||||
o Toggling between Farsi ISIR-3342 standard encoding and Vim Farsi via F9
|
||||
function key. Since this makes sense only for the text written in
|
||||
right-to-left mode, this function is also supported only in right-to-left
|
||||
mode.
|
||||
@@ -110,13 +110,13 @@ o Installation of ASCII screen fonts (Unix/Linux)
|
||||
|
||||
o Installation of ASCII screen fonts (DOS)
|
||||
|
||||
After system power on, prior to the first use of VIM, upload the Farsi
|
||||
After system power on, prior to the first use of Vim, upload the Farsi
|
||||
fonts by executing the far-a01.com font uploading program.
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
Prior to starting VIM, the environment in which VIM can run in Farsi mode,
|
||||
Prior to starting Vim, the environment in which Vim can run in Farsi mode,
|
||||
must be set. In addition to installation of Farsi fonts, following points
|
||||
refer to some of the system environments, which you may need to set:
|
||||
Key code mapping, loading graphic card in ASCII screen mode, setting the IO
|
||||
@@ -124,26 +124,26 @@ driver in 8 bit clean mode ... .
|
||||
|
||||
o Setting the Farsi fonts
|
||||
|
||||
+ For VIM GUI set the 'guifont' to far-a01. This is done by entering
|
||||
':set guifont=far-a01' in the VIM window.
|
||||
+ For Vim GUI set the 'guifont' to far-a01. This is done by entering
|
||||
':set guifont=far-a01' in the Vim window.
|
||||
|
||||
You can have 'guifont' set to far-a01 by VIM during the VIM startup
|
||||
You can have 'guifont' set to far-a01 by Vim during the Vim startup
|
||||
by appending the ':set guifont=far-a01' into your .vimrc file
|
||||
(in case of NT/95/98 platforms _vimrc).
|
||||
|
||||
Under the X Window environment, you can also start the VIM with
|
||||
Under the X Window environment, you can also start Vim with the
|
||||
'-fn far-a01' option.
|
||||
|
||||
+ For the VIM within a xterm, start a xterm with the Farsi fonts (e.g.
|
||||
kterm -fn far-a01). Then start the VIM inside the kterm.
|
||||
+ For Vim within a xterm, start a xterm with the Farsi fonts (e.g.
|
||||
kterm -fn far-a01). Then start Vim inside the kterm.
|
||||
|
||||
+ For VIM under DOS, prior to the first usage of VIM, upload the Farsi
|
||||
+ For Vim under DOS, prior to the first usage of Vim, upload the Farsi
|
||||
fonts by executing the far-a01.com fonts uploading program.
|
||||
|
||||
o Farsi Keymapping Activation
|
||||
|
||||
To activate the Farsi keymapping, set either 'altkeymap' or 'fkmap'.
|
||||
This is done by entering ':set akm' or ':set fk' in the VIM window.
|
||||
This is done by entering ':set akm' or ':set fk' in the Vim window.
|
||||
You can have 'altkeymap' or 'fkmap' set as default by appending ':set akm'
|
||||
or ':set fk' in your .vimrc file or _vimrc in case of NT/95/98 platforms.
|
||||
|
||||
@@ -152,24 +152,24 @@ o Farsi Keymapping Activation
|
||||
|
||||
o right-to-left Farsi Mode
|
||||
|
||||
By default VIM starts in Left-to-right mode. Following are ways to change
|
||||
By default Vim starts in Left-to-right mode. Following are ways to change
|
||||
the window orientation:
|
||||
|
||||
+ Start the VIM with -F option (e.g. vim -F ... ).
|
||||
+ Start Vim with the -F option (e.g. vim -F ...).
|
||||
|
||||
+ Use F8 function key to toggle between left-to-right and right-to-left.
|
||||
+ Use the F8 function key to toggle between left-to-right and right-to-left.
|
||||
|
||||
+ While in Left-to-right mode, enter 'set rl' in the command line ('rl' is
|
||||
the abbreviation for rightleft).
|
||||
|
||||
+ Put the 'set rl' line in your '.vimrc' file to start the VIM in
|
||||
+ Put the 'set rl' line in your '.vimrc' file to start Vim in
|
||||
right-to-left mode permanently.
|
||||
|
||||
Encoding
|
||||
--------
|
||||
|
||||
The letter encoding used is the VIM extended ISIR-3342 standard with a built
|
||||
in function to convert between VIM extended ISIR-3342 and ISIR-3342 standard.
|
||||
The letter encoding used is the Vim extended ISIR-3342 standard with a built
|
||||
in function to convert between Vim extended ISIR-3342 and ISIR-3342 standard.
|
||||
|
||||
For document portability reasons, the letter encoding is kept the same across
|
||||
different platforms (i.e. UNIX's, NT/95/98, MS DOS, ...).
|
||||
@@ -187,7 +187,7 @@ o Keyboard
|
||||
|
||||
+ F8 - Toggles between left-to-right and right-to-left.
|
||||
|
||||
+ F9 - Toggles the encoding between ISIR-3342 standard and VIM extended
|
||||
+ F9 - Toggles the encoding between ISIR-3342 standard and Vim extended
|
||||
ISIR-3342 (supported only in right-to-left mode).
|
||||
|
||||
+ Keyboard mapping is based on the Iranian ISIRI-2901 standard.
|
||||
@@ -238,21 +238,21 @@ o While numbers are entered in Farsi mode, the redo buffer will be reset
|
||||
(emptied). That is, you cannot redo the last changes (using '.') after
|
||||
entering numbers.
|
||||
|
||||
o While in left-to-right and Farsi mode set, CTRL-R is not supported.
|
||||
o While in left-to-right mode and Farsi mode set, CTRL-R is not supported.
|
||||
|
||||
o While in right-to-left mode, the search on 'Latin' pattern does not work,
|
||||
except if you enter the Latin search pattern in reverse.
|
||||
|
||||
o In the command mode, there is no support for entering the numbers from left
|
||||
to right and also for the sake of the flexibility the keymapping logic is
|
||||
o In command mode there is no support for entering numbers from left
|
||||
to right and also for the sake of flexibility the keymapping logic is
|
||||
restricted.
|
||||
|
||||
o Under X Window environment, if you want to run the VIM within a xterm
|
||||
o Under the X Window environment, if you want to run Vim within a xterm
|
||||
terminal emulator and Farsi mode set, you need to have an ANSI compatible
|
||||
xterm terminal emulator. This is because the letter codes above 128 decimal
|
||||
have certain meanings in the standard xterm terminal emulator.
|
||||
|
||||
Note: Under X Window environment, VIM GUI works fine in Farsi mode.
|
||||
Note: Under X Window environment, Vim GUI works fine in Farsi mode.
|
||||
This eliminates the need of any xterm terminal emulator.
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*filetype.txt* For Vim version 7.0aa. Last change: 2004 Aug 31
|
||||
*filetype.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*intro.txt* For Vim version 7.0aa. Last change: 2005 Feb 07
|
||||
*intro.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_amiga.txt* For Vim version 7.0aa. Last change: 2004 Jun 28
|
||||
*os_amiga.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_unix.txt* For Vim version 7.0aa. Last change: 2005 Mar 25
|
||||
*os_unix.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -26,7 +26,7 @@ For executing external commands fork()/exec() is used when possible, otherwise
|
||||
system() is used, which is a bit slower. The output of ":version" includes
|
||||
|+fork| when fork()/exec() is used, |+system()| when system() is used. This
|
||||
can be changed at compile time.
|
||||
(For forking of the GUI version see |gui-fork|).
|
||||
(For forking of the GUI version see |gui-fork|.)
|
||||
|
||||
Because terminal updating under Unix is often slow (e.g. serial line
|
||||
terminal, shell window in suntools), the 'showcmd' and 'ruler' options
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_win32.txt* For Vim version 7.0aa. Last change: 2004 Aug 31
|
||||
*os_win32.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by George Reilly
|
||||
@@ -312,7 +312,7 @@ A. The problem is that a 32-bit application (Vim) can't get notification from
|
||||
includes a work-around for this, but you must set up your DOS commands to
|
||||
run in a window, not full-screen. Unfortunately the default when you
|
||||
install Windows is full-screen. To change this:
|
||||
1) Start PIF editor (in the Main program group)
|
||||
1) Start PIF editor (in the Main program group).
|
||||
2) Open the file "_DEFAULT.PIF" in your Windows directory.
|
||||
3) Changes the display option from "Full Screen" to "Windowed".
|
||||
4) Save and exit.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 7.0aa. Last change: 2005 Mar 07
|
||||
*pattern.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_spec.txt* For Vim version 7.0aa. Last change: 2002 Oct 29
|
||||
*pi_spec.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
by Gustavo Niemeyer ~
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickfix.txt* For Vim version 7.0aa. Last change: 2005 Mar 25
|
||||
*quickfix.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -600,7 +600,7 @@ Basic items
|
||||
column of the error, (1 <tab> == 1 character column))
|
||||
%v virtual column number (finds a number representing
|
||||
screen column of the error (1 <tab> == 8 screen
|
||||
columns)
|
||||
columns))
|
||||
%t error type (finds a single character)
|
||||
%n error number (finds a number)
|
||||
%m error message (finds a string)
|
||||
@@ -663,7 +663,7 @@ limitations.
|
||||
Multi-line messages *errorformat-multi-line*
|
||||
|
||||
It is possible to read the output of programs that produce multi-line
|
||||
messages, ie. error strings that consume more than one line. Possible
|
||||
messages, i.e. error strings that consume more than one line. Possible
|
||||
prefixes are:
|
||||
%E start of a multi-line error message
|
||||
%W start of a multi-line warning message
|
||||
@@ -766,7 +766,7 @@ information. See |errorformat-LaTeX| for an extended example.
|
||||
Ignoring and using whole messages *efm-ignore*
|
||||
|
||||
The codes '+' or '-' can be combined with the uppercase codes above; in that
|
||||
case they have to precede the letter, eg. '%+A' or '%-G':
|
||||
case they have to precede the letter, e.g. '%+A' or '%-G':
|
||||
%- do not include the matching multi-line in any output
|
||||
%+ include the whole matching line in the %m error string
|
||||
|
||||
@@ -889,11 +889,11 @@ to directory before reading the makefile). It may be useful to use the switch
|
||||
processing.
|
||||
|
||||
Maintaining the correct directory is more complicated if you don't use
|
||||
GNU-make. AIX-make for example doesn't print any information about its working
|
||||
directory. Then you need to enhance the makefile. In the makefile of LessTif
|
||||
there is a command which echoes "Making {target} in {dir}". The special
|
||||
problem here is that it doesn't print informations on leaving the directory
|
||||
and that it doesn't print the absolute path.
|
||||
GNU-make. AIX-make for example doesn't print any information about its
|
||||
working directory. Then you need to enhance the makefile. In the makefile of
|
||||
LessTif there is a command which echoes "Making {target} in {dir}". The
|
||||
special problem here is that it doesn't print informations on leaving the
|
||||
directory and that it doesn't print the absolute path.
|
||||
|
||||
To solve the problem with relative paths and missing "leave directory"
|
||||
messages Vim uses following algorithm:
|
||||
@@ -1019,7 +1019,7 @@ It should be easy to adopt the above LaTeX errorformat to any compiler output
|
||||
consisting of multi-line errors.
|
||||
|
||||
The commands can be placed in a |vimrc| file or some other Vim script file,
|
||||
eg. a script containing LaTeX related stuff which is loaded only when editing
|
||||
e.g. a script containing LaTeX related stuff which is loaded only when editing
|
||||
LaTeX sources.
|
||||
Make sure to copy all lines of the example (in the given order), afterwards
|
||||
remove the comment lines. For the '\' notation at the start of some lines see
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quotes.txt* For Vim version 7.0aa. Last change: 2004 May 06
|
||||
*quotes.txt* For Vim version 7.0aa. Last change: 2005 Apr 04
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -66,7 +66,7 @@ replace 'emacs' as the standard for top editors. (Bo Thide', Sweden)
|
||||
I love and use VIM heavily too. (Larry Wall)
|
||||
|
||||
Vi is like a Ferrari, if you're a beginner, it handles like a bitch, but once
|
||||
you get the hang of it, its small, powerful and FAST! (Unknown)
|
||||
you get the hang of it, it's small, powerful and FAST! (Unknown)
|
||||
VIM is like a new model Ferrari, and sounds like one too - "VIIIIIIMMM!"
|
||||
(Stephen Riehm, Germany)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*remote.txt* For Vim version 7.0aa. Last change: 2003 Nov 10
|
||||
*remote.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -87,7 +87,7 @@ SERVER NAME
|
||||
By default Vim will try to register the name under which it was invoked (gvim,
|
||||
egvim ...). This can be overridden with the --servername argument. If the
|
||||
specified name is not available, a postfix is applied until a free name is
|
||||
encountered, ie. "gvim1" for the second invocation of gvim on a particular
|
||||
encountered, i.e. "gvim1" for the second invocation of gvim on a particular
|
||||
X-server. The resulting name is available in the servername builtin variable
|
||||
|v:servername|. The case of the server name is ignored, thus "gvim" and
|
||||
"GVIM" are considered equal.
|
||||
@@ -121,7 +121,7 @@ wait for each of the files to have been edited. This uses the BufUnload
|
||||
event, thus as soon as a file has been unloaded, Vim assumes you are done
|
||||
editing it.
|
||||
Note that the --remote and --remote-wait arguments will consume the rest of
|
||||
the command line. Ie. all remaining arguments will be regarded as filenames.
|
||||
the command line. I.e. all remaining arguments will be regarded as filenames.
|
||||
You can not put options there!
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 7.0aa. Last change: 2005 Feb 28
|
||||
*repeat.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*scroll.txt* For Vim version 7.0aa. Last change: 2005 Feb 10
|
||||
*scroll.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -265,12 +265,12 @@ You can also use Alt and Ctrl modifiers.
|
||||
This only works when Vim gets the scroll wheel events, of course. You can
|
||||
check if this works with the "xev" program.
|
||||
|
||||
When using Xfree86, the /etc/XF86Config file should have the correct entry for
|
||||
When using XFree86, the /etc/XF86Config file should have the correct entry for
|
||||
your mouse. For FreeBSD, this entry works for a Logitech scrollmouse: >
|
||||
Protocol "MouseMan"
|
||||
Device "/dev/psm0"
|
||||
ZAxisMapping 4 5
|
||||
See the Xfree86 documentation for information.
|
||||
See the XFree86 documentation for information.
|
||||
|
||||
*xterm-mouse-wheel*
|
||||
To use the mouse wheel in a new xterm you only have to make the scroll wheel
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Mar 22
|
||||
*spell.txt* For Vim version 7.0aa. Last change: 2005 Apr 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -7,7 +7,8 @@
|
||||
Spell checking *spell*
|
||||
|
||||
1. Quick start |spell-quickstart|
|
||||
X. Spell file format |spell-file-format|
|
||||
2. Generating a spell file |spell-mkspell|
|
||||
9. Spell file format |spell-file-format|
|
||||
|
||||
{Vi does not have any of these commands}
|
||||
|
||||
@@ -21,18 +22,29 @@ This command switches on spell checking: >
|
||||
|
||||
:setlocal spell spelllang=en_us
|
||||
|
||||
This switches the 'spell' option on and specifies to check for US English.
|
||||
This switches on the 'spell' option and specifies to check for US English.
|
||||
|
||||
The words that are not recognized are highlighted with one of these:
|
||||
SpellBad word not recognized
|
||||
SpellRare rare word
|
||||
SpellLocal wrong spelling for selected region
|
||||
|
||||
Vim only checks words for spelling, there is no grammar check.
|
||||
|
||||
To search for the next misspelled word:
|
||||
|
||||
*]s* *E756*
|
||||
]s Move to next misspelled word after the cursor.
|
||||
|
||||
*[s*
|
||||
[s Move to next misspelled word before the cursor.
|
||||
DOESN'T WORK YET!
|
||||
|
||||
|
||||
PERFORMANCE
|
||||
|
||||
Note that Vim does on-the-fly spellchecking. To make this work fast the
|
||||
word list is loaded in memory. Thus this uses a lot of memory (2 Mbyte or
|
||||
word list is loaded in memory. Thus this uses a lot of memory (1 Mbyte or
|
||||
more). There might also be a noticable delay when the word list is loaded,
|
||||
which happens when 'spelllang' is set. Each word list is only loaded once,
|
||||
they are not deleted when 'spelllang' is made empty. When 'encoding' is set
|
||||
@@ -52,34 +64,35 @@ comes in (at least) these variants:
|
||||
Words that are not used in one region but are used in another region are
|
||||
highlighted with SpellLocal.
|
||||
|
||||
Always use lowercase letters.
|
||||
Always use lowercase letters for the language and region names.
|
||||
|
||||
|
||||
SPELL FILES
|
||||
|
||||
Vim searches for spell files in the "spell" subdirectory of the directories in
|
||||
'runtimepath'. The name is: xx.yyy.spl, where:
|
||||
xx the language name
|
||||
yyy the value of 'encoding'
|
||||
'runtimepath'. The name is: LL-XXX.EEE.spl, where:
|
||||
LL the language name
|
||||
-XXX optional addition
|
||||
EEE the value of 'encoding'
|
||||
|
||||
Exception: Vim uses "latin1" when 'encoding' is "iso-8859-15". The euro sign
|
||||
doesn't matter for spelling.
|
||||
|
||||
Spelling for EBCDIC is currently not supported.
|
||||
|
||||
A spell file might not be available in the current 'encoding'. You may try
|
||||
using the "iconv" program to create one: >
|
||||
|
||||
iconv -f latin1 -t koi8-r de.latin1.spl >de.koi8-r.spl
|
||||
|
||||
However, if some characters cannot be presented in the target encoding this
|
||||
will give wrong results.
|
||||
A spell file might not be available in the current 'encoding'. See
|
||||
|spell-mkspell| about how to create a spell file. Converting a spell file
|
||||
with "iconv" will NOT work.
|
||||
|
||||
If a spell file only uses ASCII characters the encoding can be omitted. This
|
||||
is useful for English: "en.spl" The file with encoding is checked first, thus
|
||||
you could have one with encoding that includes words with non-ASCII characters
|
||||
and use the ASCII file as a fall-back.
|
||||
|
||||
*E758* *E759*
|
||||
When loading a spell file Vim checks that it is properly formatted. If you
|
||||
get an error the file may be truncated, modified or for another Vim version.
|
||||
|
||||
|
||||
WORDS
|
||||
|
||||
@@ -103,56 +116,143 @@ done:
|
||||
Note that mixing @Spell and @NoSpell doesn't make sense.
|
||||
|
||||
==============================================================================
|
||||
X. Spell file format *spell-file-format*
|
||||
*E751*
|
||||
2. Generating a spell file *spell-mkspell*
|
||||
|
||||
The spelling for a language is specified in file with a specific format.
|
||||
The first character of a line specifies what follows in the line:
|
||||
Vim uses a binary file format for spelling. This greatly speeds up loading
|
||||
the word list and keeps it small.
|
||||
|
||||
line meaning ~
|
||||
-xx[-yy]... words for region xx (and region yy, etc.) follow
|
||||
<word> normal word
|
||||
><word> rare word
|
||||
+<word> optional addition after a word
|
||||
!<word> normal word, keep upper/lower case
|
||||
!><word> rare word, keep upper/lower case
|
||||
!+<word> optional word addition, keep upper/lower case
|
||||
#<anything> comment
|
||||
You can create a Vim spell file from the .aff and .dic files that Myspell
|
||||
uses. Myspell is used by OpenOffice.org and Mozilla. You should be able to
|
||||
find them here:
|
||||
http://lingucomponent.openoffice.org/spell_dic.html
|
||||
|
||||
Empty lines are ignored. The word continues until the end of the line. Watch
|
||||
out for trailing white space!
|
||||
:mksp[ell] {outname} {inname} ... *:mksp* *:mkspell*
|
||||
Generate spell file {outname}.spl from Myspell files
|
||||
{inname}.aff and {inname}.dic.
|
||||
Multiple {inname} arguments can be given to combine
|
||||
regions into one Vim spell file. Example: >
|
||||
:mkspell ~/.vim/spell/en /tmp/en_US /tmp/en_CA /tmp/en_AU
|
||||
< This combines the English word lists for US, CA and AU
|
||||
into one en.spl file.
|
||||
Up to eight regions can be combined. *E754* *755*
|
||||
|
||||
Words that start with an upper-case letter will be required to start with an
|
||||
upper-case letter. Otherwise, words must be in lower-case and case is
|
||||
ignored.
|
||||
Since you might want to change the word list for use with Vim the following
|
||||
procedure is recommended:
|
||||
|
||||
It is possible that a word appears both with an upper-case letter and as a
|
||||
rare word. This means that the word with an upper-case letter is OK and the
|
||||
word without the upper-case letter is rare.
|
||||
*E753*
|
||||
The region is specified with "-xx". For example, in the "en.spl" file "-us"
|
||||
starts the word for "en_us". This can be repeated for words that are used in
|
||||
more than one region. For example "-ca-us" is used for Canadian and US
|
||||
English words. Use "---" to go back to the words for all regions.
|
||||
1. Obtain the xx_YY.aff and xx_YY.dic files from Myspell.
|
||||
2. Make a copy of these files to xx_YY.orig.aff and xx_YY.orig.dic.
|
||||
3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing
|
||||
words, etc.
|
||||
4. Use |:mkspell| to generate the Vim spell file and try it out.
|
||||
|
||||
Vim supports up to eight regions. *E752*
|
||||
When the Myspell files are updated you can merge the differences:
|
||||
5. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic.
|
||||
6. Use Vimdiff to see what changed: >
|
||||
vimdiff xx_YY.orig.dic xx_YY.new.dic
|
||||
7. Take over the changes you like in xx_YY.dic.
|
||||
You may also need to change xx_YY.aff.
|
||||
8. Rename xx_YY.new.dic to xx_YY.orig.dic and xx_YY.new.aff to xx_YY.new.aff.
|
||||
|
||||
It is possible to have a match that starts with a valid word. In that case
|
||||
the match is used, because it is longer. Example:
|
||||
==============================================================================
|
||||
9. Spell file format *spell-file-format*
|
||||
|
||||
we
|
||||
=we're
|
||||
This is the format of the files that are used by the person who creates and
|
||||
maintains a word list.
|
||||
|
||||
"re" is not a word, thus "=we're" is needed to avoid it gets highlighted.
|
||||
Note that we avoid the word "dictionary" here. That is because the goal of
|
||||
spell checking differs from writing a dictionary (as in the book). For
|
||||
spelling we need a list of words that are OK, thus need not to be highlighted.
|
||||
Names will not appear in a dictionary, but do appear in a word list. And
|
||||
some old words are rarely used and are common misspellings. These do appear
|
||||
in a dictionary but not in a word list.
|
||||
|
||||
The "+" items may appear after any word. For English "'s" is used. Be
|
||||
careful with this, it may hide mistakes.
|
||||
There are two files: the basic word list and an affix file. The affixes are
|
||||
used to modify the basic words to get the full word list. This significantly
|
||||
reduces the number of words, especially for a language like Polish. This is
|
||||
called affix compression.
|
||||
|
||||
Vim will check for duplicate words in the files used, but you will only get
|
||||
warnings if the 'verbose' option is set to 1 or more.
|
||||
The format for the affix and word list files is mostly identical to what
|
||||
Myspell uses (the spell checker of Mozilla and OpenOffice.org). A description
|
||||
can be found here:
|
||||
http://lingucomponent.openoffice.org/affix.readme ~
|
||||
Note that affixes are case sensitive, this isn't obvious from the description.
|
||||
Vim supports a few extras. Hopefully Myspell will support these too some day.
|
||||
See |spell-affix-vim|.
|
||||
|
||||
Note that the "=" and "+" words will slow down the operation. Use them only
|
||||
when really needed.
|
||||
The basic word list and the affix file are combined and turned into a binary
|
||||
spell file. All the preprocessing has been done, thus this file loads fast.
|
||||
The binary spell file format is described in the source code (src/spell.c).
|
||||
But only developers need to know about it.
|
||||
|
||||
The preprocessing also allows us to take the Myspell language files and modify
|
||||
them before the Vim word list is made. The tools for this can be found in the
|
||||
"src/spell" directory.
|
||||
|
||||
|
||||
WORD LIST FORMAT *spell-wordlist-format*
|
||||
|
||||
A very short example, with line numbers:
|
||||
|
||||
1 1234
|
||||
2 aan
|
||||
3 Als
|
||||
4 Etten-Leur
|
||||
5 et al.
|
||||
6 's-Gravenhage
|
||||
7 's-Gravenhaags
|
||||
8 bedel/P
|
||||
9 kado/1
|
||||
10 cadeau/2
|
||||
|
||||
The first line contains the number of words. Vim ignores it. *E760*
|
||||
|
||||
What follows is one word per line. There should be no white space after the
|
||||
word.
|
||||
|
||||
When the word only has lower-case letters it will also match with the word
|
||||
starting with an upper-case letter.
|
||||
|
||||
When the word includes an upper-case letter, this means the upper-case letter
|
||||
is required at this position. The same word with a lower-case letter at this
|
||||
position will not match. When some of the other letters are upper-case it will
|
||||
not match either.
|
||||
|
||||
The same word with all upper-case characters will always be OK.
|
||||
|
||||
word list matches does not match ~
|
||||
als als Als ALS ALs AlS aLs aLS
|
||||
Als Als ALS als ALs AlS aLs aLS
|
||||
ALS ALS als Als ALs AlS aLs aLS
|
||||
AlS AlS ALS als Als ALs aLs aLS
|
||||
|
||||
Note in line 5 to 7 that non-word characters are used. You can include
|
||||
any character in a word. When checking the text a word still only matches
|
||||
when it appears with a non-word character before and after it. For Myspell a
|
||||
word starting with a non-word character probably won't work.
|
||||
|
||||
After the word there is an optional slash and flags. Most of these flags are
|
||||
letters that indicate the affixes that can be used with this word.
|
||||
|
||||
*spell-affix-vim*
|
||||
A flag that Vim adds and is not in Myspell is the "=" flag. This has the
|
||||
meaning that case matters. This can be used if the word does not have the
|
||||
first letter in upper case at the start of a sentence. Example:
|
||||
|
||||
word list matches does not match ~
|
||||
's morgens/= 's morgens 'S morgens 's Morgens
|
||||
's Morgens 's Morgens 'S morgens 's morgens
|
||||
|
||||
*spell-affix-mbyte*
|
||||
The basic word list is normally in an 8-bit encoding, which is mentioned in
|
||||
the affix file. The affix file must always be in the same encoding as the
|
||||
word list. This is compatible with Myspell. For Vim the encoding may also be
|
||||
something else, any encoding that "iconv" supports. The "SET" line must
|
||||
specify the name of the encoding. When using a multi-byte encoding it's
|
||||
possible to use more different affixes.
|
||||
|
||||
Performance hint: Although using affixes reduces the number of words, it
|
||||
reduces the speed. It's a good idea to put all the often used words in the
|
||||
word list with the affixes prepended/appended.
|
||||
|
||||
|
||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*starting.txt* For Vim version 7.0aa. Last change: 2005 Feb 19
|
||||
*starting.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -294,17 +294,17 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
|
||||
-A Arabic mode. Sets the 'arabic' option on. (Only when
|
||||
compiled with the |+arabic| features (which include
|
||||
|+rightleft|), otherwise Vim gives an error message
|
||||
and exits. {not in Vi}
|
||||
and exits.) {not in Vi}
|
||||
|
||||
*-F*
|
||||
-F Farsi mode. Sets the 'fkmap' and 'rightleft' options on.
|
||||
(Only when compiled with |+rightleft| and |+farsi| features,
|
||||
otherwise Vim gives an error message and exits). {not in Vi}
|
||||
otherwise Vim gives an error message and exits.) {not in Vi}
|
||||
|
||||
*-H*
|
||||
-H Hebrew mode. Sets the 'hkmap' and 'rightleft' options on.
|
||||
(Only when compiled with the |+rightleft| feature, otherwise
|
||||
Vim gives an error message and exits). {not in Vi}
|
||||
Vim gives an error message and exits.) {not in Vi}
|
||||
|
||||
*-V* *verbose*
|
||||
-V[N] Verbose. Sets the 'verbose' option to [N] (default: 10).
|
||||
@@ -373,7 +373,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
|
||||
-T {terminal} Set the terminal type to "terminal". This influences the
|
||||
codes that Vim will send to your terminal. This is normally
|
||||
not needed, because Vim will be able to find out what type
|
||||
of terminal you are using (See |terminal-info|). {not in Vi}
|
||||
of terminal you are using. (See |terminal-info|.) {not in Vi}
|
||||
|
||||
*-d*
|
||||
-d Start in diff mode, like |vimdiff|.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.0aa. Last change: 2005 Mar 19
|
||||
*syntax.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1240,7 +1240,7 @@ Some HTML tags are used to change the rendering of text. The following tags
|
||||
are recognized by the html.vim syntax coloring file and change the way normal
|
||||
text is shown: <B> <I> <U> <EM> <STRONG> (<EM> is used as an alias for <I>,
|
||||
while <STRONG> as an alias for <B>), <H1> - <H6>, <HEAD>, <TITLE> and <A>, but
|
||||
only if used as a link that is, it must include a href as in
|
||||
only if used as a link (that is, it must include a href as in
|
||||
<A href="somfile.html">).
|
||||
|
||||
If you want to change how such text is rendered, you must redefine the
|
||||
@@ -1366,7 +1366,7 @@ All identifiers in java.lang.* are always visible in all classes. To
|
||||
highlight them use: >
|
||||
:let java_highlight_java_lang_ids=1
|
||||
|
||||
You can also highlight identifiers of most standard java packages if you
|
||||
You can also highlight identifiers of most standard Java packages if you
|
||||
download the javaid.vim script at http://www.fleiner.com/vim/download.html.
|
||||
If you prefer to only highlight identifiers of a certain package, say java.io
|
||||
use the following: >
|
||||
@@ -1374,7 +1374,7 @@ use the following: >
|
||||
Check the javaid.vim file for a list of all the packages that are supported.
|
||||
|
||||
Function names are not highlighted, as the way to find functions depends on
|
||||
how you write java code. The syntax file knows two possible ways to highlight
|
||||
how you write Java code. The syntax file knows two possible ways to highlight
|
||||
functions:
|
||||
|
||||
If you write function declarations that are always indented by either
|
||||
@@ -1388,7 +1388,7 @@ declarations to be highlighted create your own definitions by changing the
|
||||
definitions in java.vim or by creating your own java.vim which includes the
|
||||
original one and then adds the code to highlight functions.
|
||||
|
||||
In java 1.1 the functions System.out.println() and System.err.println() should
|
||||
In Java 1.1 the functions System.out.println() and System.err.println() should
|
||||
only be used for debugging. Therefore it is possible to highlight debugging
|
||||
statements differently. To do this you must add the following definition in
|
||||
your startup file: >
|
||||
@@ -1402,29 +1402,29 @@ strings, strings, boolean constants and types (this, super) respectively. I
|
||||
have opted to chose another background for those statements.
|
||||
|
||||
In order to help you to write code that can be easily ported between
|
||||
java and C++, all C++ keywords are marked as error in a java program.
|
||||
Java and C++, all C++ keywords are marked as error in a Java program.
|
||||
However, if you use them regularly, you may want to define the following
|
||||
variable in your .vimrc file: >
|
||||
:let java_allow_cpp_keywords=1
|
||||
|
||||
Javadoc is a program that takes special comments out of java program files and
|
||||
Javadoc is a program that takes special comments out of Java program files and
|
||||
creates HTML pages. The standard configuration will highlight this HTML code
|
||||
similarly to HTML files (see |html.vim|). You can even add javascript
|
||||
similarly to HTML files (see |html.vim|). You can even add Javascript
|
||||
and CSS inside this code (see below). There are four differences however:
|
||||
1. The title (all characters up to the first '.' which is followed by
|
||||
some white space or up to the first '@') is colored differently (to change
|
||||
the color change the group CommentTitle).
|
||||
2. The text is colored as 'Comment'.
|
||||
3. HTML comments are colored as 'Special'
|
||||
4. The special javadoc tags (@see, @param, ...) are highlighted as specials
|
||||
4. The special Javadoc tags (@see, @param, ...) are highlighted as specials
|
||||
and the argument (for @see, @param, @exception) as Function.
|
||||
To turn this feature off add the following line to your startup file: >
|
||||
:let java_ignore_javadoc=1
|
||||
|
||||
If you use the special javadoc comment highlighting described above you
|
||||
can also turn on special highlighting for javascript, visual basic
|
||||
If you use the special Javadoc comment highlighting described above you
|
||||
can also turn on special highlighting for Javascript, visual basic
|
||||
scripts and embedded CSS (stylesheets). This makes only sense if you
|
||||
actually have javadoc comments that include either javascript or embedded
|
||||
actually have Javadoc comments that include either Javascript or embedded
|
||||
CSS. The options to use are >
|
||||
:let java_javascript=1
|
||||
:let java_css=1
|
||||
@@ -1740,7 +1740,7 @@ you set the variable: >
|
||||
|
||||
in your startup file it will try to syntax-hilight html code inside phtml
|
||||
sections, but this is relatively slow and much too colourful to be able to
|
||||
edit sensibly ;)
|
||||
edit sensibly. ;)
|
||||
|
||||
The newest version of the papp.vim syntax file can usually be found at
|
||||
http://papp.plan9.de.
|
||||
@@ -2364,7 +2364,7 @@ If you have a slow computer, you may wish to reduce the values for >
|
||||
:syn sync maxlines=200
|
||||
:syn sync minlines=50
|
||||
(especially the latter). If your computer is fast, you may wish to
|
||||
increase them. This primarily affects synchronizing (ie. just what group,
|
||||
increase them. This primarily affects synchronizing (i.e. just what group,
|
||||
if any, is the text at the top of the screen supposed to be in?).
|
||||
|
||||
Excessive Error Highlighting? ~
|
||||
@@ -4151,14 +4151,14 @@ To use it, execute these commands: >
|
||||
:e $VIMRUNTIME/syntax/colortest.vim
|
||||
:so %
|
||||
|
||||
Some versions of xterm (and other terminals, like the linux console) can
|
||||
Some versions of xterm (and other terminals, like the Linux console) can
|
||||
output lighter foreground colors, even though the number of colors is defined
|
||||
at 8. Therefore Vim sets the "cterm=bold" attribute for light foreground
|
||||
colors, when 't_Co' is 8.
|
||||
|
||||
*xfree-xterm*
|
||||
To get 16 colors or more, get the newest xterm version (which should be
|
||||
included with Xfree86 3.3 and later). You can also find the latest version
|
||||
included with XFree86 3.3 and later). You can also find the latest version
|
||||
at: >
|
||||
http://invisible-island.net/xterm/xterm.html
|
||||
Here is a good way to configure it. This uses 88 colors and enables the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Feb 14
|
||||
*tagsrch.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -395,7 +395,7 @@ In a future version changing the buffer will be impossible. All this for
|
||||
security reasons: Somebody might hide a nasty command in the tags file, which
|
||||
would otherwise go unnoticed. Example: >
|
||||
:$d|/tag-function-name/
|
||||
{this security prevention is not present in Vi}.
|
||||
{this security prevention is not present in Vi}
|
||||
|
||||
In Vi the ":tag" command sets the last search pattern when the tag is searched
|
||||
for. In Vim this is not done, the previous search pattern is still remembered,
|
||||
@@ -582,8 +582,8 @@ If the command is a normal search command (it starts and ends with "/" or
|
||||
"?"), some special handling is done:
|
||||
- Searching starts on line 1 of the file.
|
||||
The direction of the search is forward for "/", backward for "?".
|
||||
Note that 'wrapscan' does not matter, the whole file is always searched. {Vi
|
||||
does use 'wrapscan', which caused tags sometimes not be found). {Vi starts
|
||||
Note that 'wrapscan' does not matter, the whole file is always searched. (Vi
|
||||
does use 'wrapscan', which caused tags sometimes not be found.) {Vi starts
|
||||
searching in line 2 of another file. It does not find a tag in line 1 of
|
||||
another file when 'wrapscan' is not set}
|
||||
- If the search fails, another try is done ignoring case. If that fails too,
|
||||
@@ -596,7 +596,7 @@ If the command is a normal search command (it starts and ends with "/" or
|
||||
"^[#a-zA-Z_].*\<tagname[ \t]*("
|
||||
This means: A line starting with '#' or an identifier and containing the tag
|
||||
followed by white space and a '('. This will find macro names and function
|
||||
names with a type prepended. {the extra searches are not in Vi}.
|
||||
names with a type prepended. {the extra searches are not in Vi}
|
||||
|
||||
==============================================================================
|
||||
6. Include file searches *include-search* *definition-search*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2005 Mar 28
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -30,6 +30,36 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Frame size wrong after ":sp" with this in vimrc (Michael Schaap):
|
||||
set cmdheight=2
|
||||
set lines=43
|
||||
|
||||
Trick to get ...MOUSE_NM not used when there are vertical splits. Can we pass
|
||||
-col instead of col? (Yegappan Lakshmanan)
|
||||
|
||||
Hang in searchpair(). (2005 April 12, John Wellesz)
|
||||
|
||||
With this mapping a click on a status line echoes the wrong buffer name:
|
||||
:noremap <Leftmouse> <Leftmouse>:echo bufname('%')<CR>
|
||||
|
||||
When in diff mode and making a change that causes the "changed" highlighting
|
||||
to disappear, it's still highlighted in another window.
|
||||
|
||||
regmatch(): "regstack" could start with a fixed block of data for speed.
|
||||
"backpos" is never freed. (Alexei Alexandrov)
|
||||
|
||||
Starting without any buffers, set nocp, ":b <Tab>" gives error message.
|
||||
(Ciaran McCressh for Aron Griffis)
|
||||
|
||||
Problem with 'insertmode'. (Georg Dahn, 2005 April 9, expl. April 14)
|
||||
Problem with CTRL-V pasting more than one line. (Georg Dahn, 2005 April 11)
|
||||
|
||||
Patch for setqflist() (Yegappan Lakshmanan, 2005 April 11)
|
||||
|
||||
In an errorfile expand "~/" to home directory. (Arnout Engelen)
|
||||
|
||||
Patch for 2html.vim to disable folding (Michael Schaap, 2005 April 12)
|
||||
|
||||
Mac unicode patch (Da Woon Jung):
|
||||
- selecting proportional font breaks display
|
||||
- UTF-8 text causes display problems. Font replacement causes this.
|
||||
@@ -47,23 +77,59 @@ autoload:
|
||||
|
||||
Win32: Balloon text can't contain line break.
|
||||
Hints for multiline tooltips from Alexei Alexandrov (2005 Mar 26)
|
||||
Patch from Sergey Khorev, 2005 Mar 28
|
||||
Patch from Sergey Khorev, 2005 Apr 11
|
||||
Add has("balloon_multiline")
|
||||
|
||||
setline() should accept a List.
|
||||
Add ":[range]sort" command. Sort on specified field, using a regexp? Remove
|
||||
duplicates?
|
||||
|
||||
Awaiting response:
|
||||
- Patch for mch_FullName() also in Vim 6.3? os_mswin.c
|
||||
- Win32: tearoff menu window should have a scrollbar when it's taller than
|
||||
the screen.
|
||||
|
||||
Make option like 'verbose' that writes output into a file? Should make it
|
||||
possible to see what's happening without messing up the display.
|
||||
|
||||
|
||||
PLANNED FOR VERSION 7.0:
|
||||
|
||||
- Add SPELLCHECKER, with support for many languages.
|
||||
- Use "engspchk" from Charles Campbell for ideas.
|
||||
- Alternative: use MySpell library (in OpenOffice.org).
|
||||
- Spell checking code todo's:
|
||||
- BWF_ADDS and BWF_ADDSM for more than 256, only one byte for count.
|
||||
- Case folding only works when locale is set properly.
|
||||
E.g., when C locale is active then 'enc' is "latin1" but <20>ngstr<74>m
|
||||
isn't seen as a ONECAP.
|
||||
Use our own character tables for encodings used in spell files?
|
||||
Use iswupper() if possible?
|
||||
Put the character tables in the .aff file?
|
||||
- Implement = flag in .dic: KEEPCASE for lower case word.
|
||||
's morgens/= does not match 'S morgens
|
||||
- Merge en_US, en_CA, en_AU, etc.
|
||||
- Implement compound words?
|
||||
- Make matching additions faster somehow?
|
||||
- More efficient way to store additions?
|
||||
- remove fw_prefix and fw_suffix, use fw_len (word length) and put
|
||||
prefixes and suffixes right after it.
|
||||
- Make "en-rare" spell file.
|
||||
Convention: use en_US (language_region) and en-rare (language-field)
|
||||
- Need to check for affixes of zero length?
|
||||
- specify word characters in .aff file?
|
||||
- Polish: Anio and Hanio are wrong words, even though Myspell allows
|
||||
them. Problem with not ignoring case in conditions.
|
||||
- Put addition up to end of word also in hashtab, so that "s'aaa"
|
||||
is found by "'aaa", s-bbb by "-bbb", etc. Put rest in table (search
|
||||
longest match).
|
||||
- Rare words: use another dictionary. Add hl groups to 'spelllang'?
|
||||
:set spelllang=en_us,en.rare/SpellRare,en.math/SpellMath
|
||||
- References MySpell library (in OpenOffice.org).
|
||||
http://spellchecker.mozdev.org/source.html
|
||||
http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
|
||||
author: Kevin Hendricks <kevin.hendricks@sympatico.ca>
|
||||
- Alternative: use aspell library.
|
||||
- Dump pre-parsed spell structs in a file?
|
||||
ispell is replaced by aspell, thus forget about it.
|
||||
- More complicated: Regions with different languages? E.g. comments in
|
||||
English, strings in German (po file).
|
||||
- Commands required:
|
||||
@@ -72,12 +138,13 @@ PLANNED FOR VERSION 7.0:
|
||||
:spell wrong <word> zw
|
||||
[s move to previous spell error [S also rare word
|
||||
]s move to next spell error ]S also rare word
|
||||
(only "]s" is currently implemented)
|
||||
- Update option window for 'spell' and 'spelllang'.
|
||||
- Use an external program like ispell or aspell for suggestions to correct
|
||||
the spelling.
|
||||
- Need wordlists for many languages; "language pack"
|
||||
- Use wordlists from openoffice (myspell). Work together with them to
|
||||
update the wordlist. (Adri Verhoef, Aad Nales)
|
||||
- Use an external program like aspell for suggestions to correct the
|
||||
spelling? Or include the myspell/spell code in Vim?
|
||||
- Distribution: Need wordlists for many languages; "language pack"
|
||||
- Work together with OpenOffic.org to update the wordlists. (Adri
|
||||
Verhoef, Aad Nales)
|
||||
- Support for approximate-regexps will help with finding similar words
|
||||
(agrep http://www.tgries.de/agrep/).
|
||||
- Charles Campbell asks for method to add "contained" groups to
|
||||
@@ -92,6 +159,7 @@ PLANNED FOR VERSION 7.0:
|
||||
ispell inside Vim). Gautam Iyer has an example with "aspell".
|
||||
Patch from Marcin Dalecki, uses pipe to aspell.
|
||||
|
||||
|
||||
- REFACTORING: The main() function is very long. Move parts to separate
|
||||
functions, especially loops. Ideas from Walter Briscoe (2003 Apr 3, 2004
|
||||
Feb 9).
|
||||
@@ -110,6 +178,8 @@ PLANNED FOR VERSION 7.0:
|
||||
of http://insenvim.sourceforge.net
|
||||
http://cedet.sourceforge.net/intellisense.shtml (for Emacs)
|
||||
Ivan Villanueva has something for Java.
|
||||
Ideas from Emads:
|
||||
http://www.xref-tech.com/xrefactory/more_c_completion.html
|
||||
Can't call it Intellisense, it is a trademark by Microsoft.
|
||||
Ideas from the Vim 7 BOF at SANE:
|
||||
- It's not possible to have one solution for all languages. Design an
|
||||
@@ -218,6 +288,14 @@ PLANNED FOR VERSION 7.0:
|
||||
|
||||
Adjust src/main.aap for installing manpages like in Makefile.
|
||||
|
||||
Add strtol() to avoid the problems with leading zero causing octal conversion.
|
||||
|
||||
Try new POSIX tests, made after my comments. (Geoff Clare, 2005 April 7)
|
||||
Before April 23 if possible.
|
||||
|
||||
Add a 'tool' window: behaves like a preview window but there can be several.
|
||||
Don't count it in only_one_window(). (Alexei Alexandrov)
|
||||
|
||||
Win32: Patch for Korean IME. (Yusung, 2005 March 21)
|
||||
|
||||
Support ":set syntax=cpp.doxygen"? Suggested patch by Michael Geddes (9 Aug
|
||||
@@ -1269,6 +1347,7 @@ Folding:
|
||||
8 Add "z/" and "z?" for searching in not folded text only.
|
||||
8 Add different highlighting for a fold line depending on the fold level.
|
||||
(Noel Henson)
|
||||
7 Use "++--", "+++--" for different levels instead of "+---" "+----".
|
||||
8 When a closed fold is displayed open because of 'foldminlines', the
|
||||
behavior of commands is still like the fold is closed. How to make the
|
||||
user aware of this?
|
||||
@@ -1312,6 +1391,7 @@ Multi-byte characters:
|
||||
item.
|
||||
8 Add an item in 'fileencodings' to check the first line of an XML file for
|
||||
the encoding. <?xml version="1.0" encoding="UTF-8"?> Or "charset=UTF-8"?
|
||||
For HTML look for "charset=utf-8".
|
||||
8 The quickfix file is read without conversion, thus in 'encoding'. Add an
|
||||
option to specify the encoding of the errorfile and convert it. Also for
|
||||
":grep" and ":helpgrep".
|
||||
@@ -2775,8 +2855,8 @@ Buffer list:
|
||||
8 Unix: Check all uses of fnamecmp() and fnamencmp() if they should check
|
||||
inode too.
|
||||
7 Add another number for a buffer, which is visible for the user. When
|
||||
creating a new buffer, use the lowest number not in use. (or the highest
|
||||
number in use plus one?)
|
||||
creating a new buffer, use the lowest number not in use (or the highest
|
||||
number in use plus one?).
|
||||
7 Offer some buffer selection from the command line? Like using ":ls" and
|
||||
asking for a buffer number. (Zachmann)
|
||||
- When starting to edit a file that is already in the buffer list, use the
|
||||
@@ -3178,7 +3258,7 @@ Various improvements:
|
||||
buffer. Make jumplist remember the last ten accessed buffers?
|
||||
- Keep a list of most recently used files for each window, use "[o" to go
|
||||
back (older file) and "]n" to go forward (newer file) (like ^O and ^I for
|
||||
jumps) (Webb). Use ":files" and ":ls" to list the files in history order.
|
||||
jumps). (Webb) Use ":files" and ":ls" to list the files in history order.
|
||||
7 Add a history of recently accessed buffer. Maybe make "2 CTRL-^" jump to
|
||||
the 2nd previously visited buffer, "3 CTRL-^" to the third, etc. Or use
|
||||
"3 g CTRL-^" for this?
|
||||
@@ -3317,7 +3397,7 @@ Various improvements:
|
||||
t_bs is set? (Webb)
|
||||
- "gc": goto character, move absolute character positions forward, also
|
||||
counting newlines. "gC" goes backwards (Weigert).
|
||||
- When doing CTRL-^, redraw buffer with the same topline (Demirel). Store
|
||||
- When doing CTRL-^, redraw buffer with the same topline. (Demirel) Store
|
||||
cursor row and window height to redraw cursor at same percentage of window
|
||||
(Webb).
|
||||
- Besides remembering the last used line number of a file, also remember the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_01.txt* For Vim version 7.0aa. Last change: 2004 Sep 09
|
||||
*usr_01.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_04.txt* For Vim version 7.0aa. Last change: 2004 Jun 08
|
||||
*usr_04.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_07.txt* For Vim version 7.0aa. Last change: 2004 Mar 12
|
||||
*usr_07.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_11.txt* For Vim version 7.0aa. Last change: 2004 Apr 23
|
||||
*usr_11.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_20.txt* For Vim version 7.0aa. Last change: 2003 Apr 30
|
||||
*usr_20.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_23.txt* For Vim version 7.0aa. Last change: 2001 Sep 03
|
||||
*usr_23.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_28.txt* For Vim version 7.0aa. Last change: 2003 Dec 21
|
||||
*usr_28.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -350,7 +350,7 @@ You can try it out on this text:
|
||||
Explanation for the 'foldexpr' used in the example (inside out):
|
||||
getline(v:lnum) gets the current line
|
||||
substitute(...,'\\s','','g') removes all white space from the line
|
||||
substitute(...,'[^>].*','','')) removes everything after leading '>'s
|
||||
substitute(...,'[^>].*','','') removes everything after leading '>'s
|
||||
strlen(...) counts the length of the string, which
|
||||
is the number of '>'s found
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_30.txt* For Vim version 7.0aa. Last change: 2004 Jan 17
|
||||
*usr_30.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_40.txt* For Vim version 7.0aa. Last change: 2004 Dec 29
|
||||
*usr_40.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 7.0aa. Last change: 2005 Mar 07
|
||||
*various.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2005 Mar 28
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2005 Apr 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -106,6 +106,8 @@ you can't be sure what the keyboard generates. Now all <xHome> are internally
|
||||
translated to <Home>, both for the keys and for mappings. Also for <xEnd>,
|
||||
<xF1>, etc.
|
||||
|
||||
":put" now leaves the cursor on the last inserted line.
|
||||
|
||||
==============================================================================
|
||||
NEW FEATURES *new-7*
|
||||
|
||||
@@ -180,11 +182,15 @@ Translated manual pages *new-manpage-trans*
|
||||
The manual page of Vim and associated programs is now also available in
|
||||
several other languages.
|
||||
|
||||
French - translated by David Blanchet
|
||||
Italian - translated by Antonio Colombo
|
||||
Russian - translated by Vassily Ragosin
|
||||
|
||||
The Unix Makefile installs the Italian manual pages in .../man/it/man1/.
|
||||
Other languages in similar places.
|
||||
The Unix Makefile installs the Italian manual pages in .../man/it/man1/,
|
||||
.../man/it.ISO8859-1/man1/ and .../man/it.UTF-8/man1/. There appears to be no
|
||||
standard for what encoding goes in the "it" directory, the 8-bit encoded file
|
||||
is used there as a best guess.
|
||||
Other languages are installed in similar places.
|
||||
|
||||
|
||||
Internal grep *new-vimgrep*
|
||||
@@ -388,8 +394,8 @@ New items in search patterns: ~
|
||||
|/\%U| \%U1234abcd search for character with 8 pos. hex number
|
||||
|/\]| [\U1234abcd] idem, in a colletion
|
||||
(The above partly by Ciaran McCreesh)
|
||||
|/[=| [[=a=]] an equivalence class (only for latin1 characters)
|
||||
|/[.| [[.a.]] a collation element (only works with single char)
|
||||
|/[[=| [[=a=]] an equivalence class (only for latin1 characters)
|
||||
|/[[.| [[.a.]] a collation element (only works with single char)
|
||||
|
||||
Nesting |/multi| items no longer is an error when an empty match is possible.
|
||||
|
||||
@@ -1026,4 +1032,14 @@ and reset it in nv_home().
|
||||
Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
|
||||
spaces inside backticks.
|
||||
|
||||
After this sequence of commands: Y V p gv: the wrong line is selected. Now
|
||||
let "gv" select the text that was put, since the original text is deleted.
|
||||
This should be the most useful thing to do.
|
||||
|
||||
":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
|
||||
an error message when the argument isn't recognized.
|
||||
|
||||
In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
|
||||
reallocating the buffer every time. (Alexei Alexandrov)
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
574
runtime/doc/vim-fr.1
Normal file
574
runtime/doc/vim-fr.1
Normal file
@@ -0,0 +1,574 @@
|
||||
.\" Traduction Lundi 7 ao<61>t 2000 par Richard Hitier
|
||||
.\" (richard.hitier@dial.oleane.com)
|
||||
.\" Mise <20> jour de la traduction par David Blanchet
|
||||
.\" (david.blanchet@free.fr) 2005-01-17
|
||||
.\"
|
||||
.TH VIM 1 "22 F<>vrier 2002"
|
||||
.SH NOM
|
||||
vim \- Vi IMproved, <20>diteur de texte pour programmeurs
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.B vim
|
||||
[options] [fichier ...]
|
||||
.br
|
||||
.B vim
|
||||
[options] \-
|
||||
.br
|
||||
.B vim
|
||||
[options] \-t marqueur
|
||||
.br
|
||||
.B vim
|
||||
[options] \-q [fichiererreurs]
|
||||
.PP
|
||||
.br
|
||||
.B ex
|
||||
.br
|
||||
.B view
|
||||
.br
|
||||
.B gvim
|
||||
.B gview
|
||||
.B evim
|
||||
.B eview
|
||||
.br
|
||||
.B rvim
|
||||
.B rview
|
||||
.B rgvim
|
||||
.B rgview
|
||||
.SH DESCRIPTION
|
||||
.B Vim
|
||||
est un <20>diteur de texte proposant une compatibilit<69> ascendante
|
||||
avec Vi. Il permet d'<27>diter n'importe quel type de texte brut.
|
||||
Il est particuli<6C>rement adapt<70> pour l'<27>dition des programmes.
|
||||
.PP
|
||||
Il comporte de nombreuses am<61>liorations par rapport <20> Vi : annulation sur
|
||||
plusieurs niveaux, fen<65>tres et tampons multiples, coloration syntaxique,
|
||||
<EFBFBD>dition en ligne de commande, compl<70>tement des noms de fichiers, aide en
|
||||
ligne, s<>lection visuelle, etc.
|
||||
Voir ":help vi_diff.txt" pour un r<>sum<75> des diff<66>rences entre
|
||||
.B Vim
|
||||
et Vi.
|
||||
.PP
|
||||
Pendant l'ex<65>cution de
|
||||
.B Vim
|
||||
\, une aide abondante est accessible au travers du syst<73>me d'aide
|
||||
en ligne, gr<67>ce <20> la commande ":help".
|
||||
Voir la section AIDE EN LIGNE plus bas.
|
||||
.PP
|
||||
Le plus souvent
|
||||
.B Vim
|
||||
est d<>marr<72> pour <20>diter un unique fichier avec la commande
|
||||
.PP
|
||||
vim fichier
|
||||
.PP
|
||||
Plus g<>n<EFBFBD>ralement,
|
||||
.B Vim
|
||||
est lanc<6E> avec :
|
||||
.PP
|
||||
vim [options] [listefichiers]
|
||||
.PP
|
||||
Si la listefichiers est omise, l'<27>diteur d<>marre avec un tampon vide.
|
||||
Autrement, l'une des quatre m<>thodes suivantes vous permettra de choisir
|
||||
un ou plusieurs fichiers <20> <20>diter.
|
||||
.TP 12
|
||||
fichier ...
|
||||
Une liste de noms de fichiers.
|
||||
Le premier sera le fichier courant et sera lu dans le tampon.
|
||||
Le curseur sera plac<61> sur la premi<6D>re ligne du tampon.
|
||||
Vous pouvez passer aux autres fichiers avec la commande ":next".
|
||||
Pour <20>diter un fichier d<>butant par un tiret, faites pr<70>c<EFBFBD>der la
|
||||
liste de fichiers par "\-\-".
|
||||
.TP
|
||||
\-
|
||||
Le fichier <20> <20>diter est lu sur l'entr<74>e standard (stdin). Les commandes sont
|
||||
lues depuis stderr, qui devrait <20>tre un terminal.
|
||||
.TP
|
||||
\-t {marqueur}
|
||||
Le fichier <20> <20>diter et la position initiale du curseur d<>pendent
|
||||
d'un "marqueur", qui est une sorte d'<27>tiquette.
|
||||
{marqueur} est recherch<63> dans le fichier des marqueurs, le fichier correspondant
|
||||
devient le fichier courant et la commande associ<63>e est ex<65>cut<75>e.
|
||||
Principalement utile pour les programmes en C ; dans ce cas, {marqueur}
|
||||
peut <20>tre le nom d'une fonction.
|
||||
Au final, le fichier contenant cette fonction devient le fichier
|
||||
courant et le curseur est plac<61> au d<>but de la fonction.
|
||||
Voir ":help tag\-commands".
|
||||
.TP
|
||||
\-q [fichiererreurs]
|
||||
D<EFBFBD>marre en mode Mise-au-point (QuickFix).
|
||||
Le fichier [fichiererreurs] est lu et la premi<6D>re erreur est affich<63>e.
|
||||
Si [fichiererreurs] est omis, le nom du fichier est lu dans
|
||||
l'option 'errorfile' ("AztecC.Err" par d<>faut sur Amiga, "errors.err" sur les
|
||||
autres syst<73>mes).
|
||||
La commande ":cn" permet de sauter aux erreurs suivantes.
|
||||
Voir ":help quickfix".
|
||||
.PP
|
||||
.B Vim
|
||||
se comporte diff<66>remment selon le nom de la commande (l'ex<65>cutable peut
|
||||
cependant <20>tre le m<>me fichier).
|
||||
.TP 10
|
||||
vim
|
||||
La fa<66>on "normale", le comportement par d<>faut.
|
||||
.TP
|
||||
ex
|
||||
D<EFBFBD>marre en mode Ex.
|
||||
La commande ":vi" permet de passer en mode Normal.
|
||||
Ce mode est <20>galement accessible avec l'argument "\-e".
|
||||
.TP
|
||||
view
|
||||
D<EFBFBD>marre en mode Lecture-Seule. Vous <20>tes prot<6F>g<EFBFBD> de l'<27>criture accidentelle
|
||||
des fichiers. Ce mode est <20>galement accessible avec l'argument "\-R".
|
||||
.TP
|
||||
gvim gview
|
||||
La version graphique.
|
||||
Ouvre une nouvelle fen<65>tre.
|
||||
<EFBFBD>galement accessible avec l'argument "\-g".
|
||||
.TP
|
||||
evim eview
|
||||
La version graphique en mode D<>butant (easy).
|
||||
Ouvre une nouvelle fen<65>tre.
|
||||
<EFBFBD>galement accessible avec l'argument "\-y".
|
||||
.TP
|
||||
rvim rview rgvim rgview
|
||||
Comme ci-dessus, mais avec des restrictions. Il vous sera impossible de
|
||||
lancer des commandes du shell, ou de suspendre
|
||||
.B Vim.
|
||||
<EFBFBD>galement accessible avec l'argument "\-Z".
|
||||
.SH OPTIONS
|
||||
Les options peuvent <20>tre sp<73>cifi<66>es dans n'importe quel ordre,
|
||||
avant ou apr<70>s les noms de fichiers. Les options sans arguments
|
||||
peuvent <20>tre combin<69>es apr<70>s un unique tiret.
|
||||
.TP 12
|
||||
+[num]
|
||||
Place le curseur sur la ligne "num" dans le premier fichier.
|
||||
Si "num" est omis, le curseur sera plac<61> sur la derni<6E>re ligne.
|
||||
.TP
|
||||
+/{motif}
|
||||
Place le curseur sur la premi<6D>re occurence de {motif} dans le premier fichier.
|
||||
Voir ":help search\-pattern" pour conna<6E>tre les motifs de recherches
|
||||
disponibles.
|
||||
.TP
|
||||
+{commande}
|
||||
.TP
|
||||
\-c {commande}
|
||||
Ex<EFBFBD>cute {commande} apr<70>s la lecture du premier fichier.
|
||||
{commande} est interpr<70>t<EFBFBD>e comme une commande Ex.
|
||||
Si la {commande} contient des espaces, elle doit <20>tre entour<75>e
|
||||
de doubles-apostrophes (cela d<>pend du shell utilis<69>).
|
||||
Exemple: Vim "+set si" main.c
|
||||
.br
|
||||
Note : vous pouvez utiliser jusqu'<27> 10 commandes "+" ou "\-c".
|
||||
.TP
|
||||
\-S {fichier}
|
||||
Source {fichier} apr<70>s la lecture du premier fichier.
|
||||
C'est <20>quivalent <20> \-c "source {fichier}".
|
||||
{fichier} ne peut pas d<>buter par un '\-'.
|
||||
Si {fichier} est omis, "Session.vim" est utilis<69> (cela ne fonctionne que si
|
||||
\-S est le dernier argument).
|
||||
.TP
|
||||
\-\-cmd {commande}
|
||||
Comme "\-c", mais la commande est ex<65>cut<75>e juste avant de traiter les fichiers
|
||||
vimrc.
|
||||
Vous pouvez utiliser jusqu'<27> 10 de ces commandes, ind<6E>pendamment des
|
||||
commandes "\-c".
|
||||
.TP
|
||||
\-A
|
||||
Si
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> compil<69> avec le support de la fonctionnalit<69> ARABIC pour l'<27>dition de
|
||||
fichiers de droite <20> gauche et les claviers arabes, cette option lance
|
||||
.B Vim
|
||||
en mode Arabe, c.-<2D>-d. que l'option 'arabic' est activ<69>e.
|
||||
Sinon, un message d'erreur est <20>mis et
|
||||
.B Vim
|
||||
quitte.
|
||||
.TP
|
||||
\-b
|
||||
Mode Binaire.
|
||||
Active plusieurs options pour permettre l'<27>dition
|
||||
d'un fichier binaire ou ex<65>cutable.
|
||||
.TP
|
||||
\-C
|
||||
Compatible. Active l'option 'compatible'.
|
||||
.B Vim
|
||||
se comportera alors quasiment comme Vi, m<>me s'il existe un fichier .vimrc.
|
||||
.TP
|
||||
\-d
|
||||
D<EFBFBD>marre en mode Diff.
|
||||
Deux ou trois noms de fichiers doivent <20>tre sp<73>cifi<66>s.
|
||||
.B Vim
|
||||
ouvrira alors tous les fichiers et affichera leurs diff<66>rences.
|
||||
Fonctionne comme vimdiff(1).
|
||||
.TP
|
||||
\-d {p<>riph}
|
||||
Ouvre {p<>riph} pour l'utiliser comme terminal.
|
||||
Uniquement sur Amiga.
|
||||
Exemple:
|
||||
"\-d con:20/30/600/150".
|
||||
.TP
|
||||
\-D
|
||||
Debogage. Passe en mode D<>bogage lors de l'ex<65>cution de la premi<6D>re commande
|
||||
d'un script.
|
||||
.TP
|
||||
\-e
|
||||
D<EFBFBD>marre
|
||||
.B Vim
|
||||
en mode Ex, comme si l'ex<65>cutable s'appelait "ex".
|
||||
.TP
|
||||
\-E
|
||||
D<EFBFBD>marre
|
||||
.B Vim
|
||||
en mode Ex am<61>lior<6F>, comme si l'ex<65>cutable "exim" avait <20>t<EFBFBD> invoqu<71>.
|
||||
.TP
|
||||
\-f
|
||||
Premier-plan (Foreground). Pour la version graphique,
|
||||
.B Vim
|
||||
ne forke pas et ne se d<>tache pas du shell dans lequel il a <20>t<EFBFBD> invoqu<71>.
|
||||
Sur Amiga,
|
||||
.B Vim
|
||||
n'est pas relanc<6E> pour ouvrir une nouvelle fen<65>tre.
|
||||
Cette option est utile quand
|
||||
.B Vim
|
||||
est ex<65>cut<75> par un programme qui attend la fin de la session d'<27>dition
|
||||
(par exemple mail).
|
||||
Sur Amiga, les commandes ":sh" et ":!" ne fonctionneront pas.
|
||||
.TP
|
||||
\-\-nofork
|
||||
Premier-plan (Foreground). Pour la version graphique,
|
||||
.B Vim
|
||||
ne forkera pas et ne se d<>tachera pas du shell dans lequel il a <20>t<EFBFBD> lanc<6E>.
|
||||
.TP
|
||||
\-F
|
||||
Si
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> compil<69> avec le support de la fonctionnalit<69> FKMAP pour l'<27>dition de
|
||||
fichiers de droite <20> gauche et les claviers farsi, cette option lance
|
||||
.B Vim
|
||||
en mode Farsi, c.-<2D>-d. avec les options 'fkmap' et 'rightleft' activ<69>es.
|
||||
Sinon, un message d'erreur est <20>mis et
|
||||
.B Vim
|
||||
quitte.
|
||||
.TP
|
||||
\-g
|
||||
Si
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> compil<69> avec le support de l'IHM graphique, cette option active
|
||||
l'IHM graphique. Si le support n'a pas <20>t<EFBFBD> compil<69>, un message d'erreur
|
||||
est <20>mis et
|
||||
.B Vim
|
||||
quitte.
|
||||
.TP
|
||||
\-h
|
||||
Donne une aide succinte sur les arguments et les options de la ligne de
|
||||
commande. Apr<70>s cela,
|
||||
.B Vim
|
||||
quitte.
|
||||
.TP
|
||||
\-H
|
||||
Si
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> compil<69> avec le support de la fonctionnalit<69> RIGHTLEFT pour l'<27>dition de
|
||||
fichiers de droite <20> gauche et les claviers h<>breu, cette option lance
|
||||
.B Vim
|
||||
en mode Hebreu, c.-<2D>-d. avec les options 'hkmap' et 'rightleft' activ<69>es.
|
||||
Sinon, un message d'erreur est <20>mis et
|
||||
.B Vim
|
||||
quitte.
|
||||
.TP
|
||||
\-i {viminfo}
|
||||
Lorsque l'utilisation d'un fichier viminfo est activ<69>e, cette option indique
|
||||
le nom de fichier <20> utiliser <20> la place de "~/.viminfo" par d<>faut.
|
||||
Il est possible d'emp<6D>cher l'utilisation d'un fichier ".viminfo", en
|
||||
sp<EFBFBD>cifiant le nom de fichier "NONE".
|
||||
.TP
|
||||
\-L
|
||||
Comme \-r.
|
||||
.TP
|
||||
\-l
|
||||
Mode Lisp.
|
||||
Active les options 'lisp' et 'showmatch'.
|
||||
.TP
|
||||
\-m
|
||||
Emp<EFBFBD>che la modification des fichiers.
|
||||
D<EFBFBD>sactive l'option 'write'.
|
||||
Vous pouvez toujours modifier le tampon, mais il vous sera impossible
|
||||
d'<27>crire le fichier.
|
||||
.TP
|
||||
\-M
|
||||
N'autorise aucune modification. les options 'modifiable' et 'write' sont
|
||||
desactiv<EFBFBD>es, de sorte que les changements ne sont pas autoris<69>s et que les
|
||||
fichiers ne peuvent pas <20>tre <20>crits. Note : ces options peuvent <20>tre activ<69>es
|
||||
pour autoriser les modifications.
|
||||
.TP
|
||||
\-N
|
||||
Mode Non-compatible. D<>sactive l'option 'compatible'.
|
||||
Cela am<61>liorera le comportement de
|
||||
.B Vim
|
||||
\, mais il sera moins conforme <20> celui de Vi, m<>me s'il n'existe aucun
|
||||
fichier ".vimrc".
|
||||
.TP
|
||||
\-n
|
||||
N'utilise pas de fichier d'<27>change (swapfile).
|
||||
Le recouvrement apr<70>s un plantage sera impossible.
|
||||
Utile pour <20>diter un fichier sur un support tr<74>s lent (disquette par ex.).
|
||||
<EFBFBD>galement activable avec ":set uc=0".
|
||||
Il est possible de l'annuler avec ":set uc=200".
|
||||
.TP
|
||||
\-nb
|
||||
Devient un serveur d'<27>dition pour NetBeans. Consulter la documentation <20> ce
|
||||
sujet pour davantage de d<>tails.
|
||||
.TP
|
||||
\-o[N]
|
||||
Ouvre N fen<65>tres les unes au-dessus des autres.
|
||||
Quand N est omis, ouvre une fen<65>tre pour chaque fichier.
|
||||
.TP
|
||||
\-O[N]
|
||||
Ouvre N fen<65>tres c<>te <20> c<>te.
|
||||
Quand N est omis, ouvre une fen<65>tre pour chaque fichier fichier.
|
||||
.TP
|
||||
\-R
|
||||
Mode Lecture-Seule.
|
||||
Active l'option 'readonly'.
|
||||
Vous pouvez toujours <20>diter le tampon, mais il vous sera impossible de
|
||||
d'<27>craser accidentellement un fichier.
|
||||
Si vous voulez <20>craser un fichier, ajoutez un point d'exclamation <20> la commande
|
||||
Ex, comme dans ":w!".
|
||||
L'option \-R impose l'option \-n (voir ci-dessus).
|
||||
L'option 'readonly' peut <20>tre d<>sactiv<69>e avec ":set noro".
|
||||
Voir ":help 'readonly'".
|
||||
.TP
|
||||
\-r
|
||||
Donne la liste des fichiers d'<27>change, avec des informations pour les utiliser
|
||||
<EFBFBD> des fins de recouvrement.
|
||||
.TP
|
||||
\-r {file}
|
||||
Mode Recouvrement.
|
||||
Utilise le fichier d'<27>change pour r<>couvrer d'une session d'<27>dition plant<6E>e.
|
||||
Le fichier d'<27>change est un fichier avec le m<>me nom que le fichier texte,
|
||||
suivi du suffixe ".swp".
|
||||
Voir ":help recovery".
|
||||
.TP
|
||||
\-s
|
||||
Mode Silencieux. Disponible uniquement quand
|
||||
.B Vim
|
||||
est lanc<6E> en tant que "ex" ou quand l'option "\-e" a <20>t<EFBFBD> sp<73>cifi<66>e avant
|
||||
l'option "\-s".
|
||||
.TP
|
||||
\-s {scriptEntr<74>e}
|
||||
Lit le fichier de script {scriptEntr<74>e}.
|
||||
Les caract<63>res du fichier sont interpr<70>t<EFBFBD>s comme si vous les tapiez.
|
||||
La commande ":source! {scriptEntr<74>e}" donne le m<>me r<>sultat.
|
||||
Si la fin du fichier est atteinte avant que l'<27>diteur quitte, les caract<63>res
|
||||
suivants sont lus depuis le clavier.
|
||||
.TP
|
||||
\-T {terminal}
|
||||
Indique <20>
|
||||
.B Vim
|
||||
le nom du terminal utilis<69>.
|
||||
Cela n'est requis que lorsque la d<>tection automatique <20>choue.
|
||||
Le {terminal} devrait <20>tre connu de
|
||||
.B Vim
|
||||
(int<6E>gr<67>) ou d<>fini dans le fichier termcap ou terminfo.
|
||||
.TP
|
||||
\-u {vimrc}
|
||||
Utilise les commandes du fichier {vimrc} pour les initialisations.
|
||||
Toutes les autres initialisations sont omises.
|
||||
<EFBFBD> utiliser pour <20>diter un type de fichiers particulier.
|
||||
Cela permet aussi d'omettre toute initialisation en sp<73>cifiant le nom de
|
||||
fichier "NONE".
|
||||
Voir ":help initialization" dans Vim pour davantage de d<>tails.
|
||||
.TP
|
||||
\-U {gvimrc}
|
||||
Utilise les commandes du fichier {gvimrc} pour l'initialisation de l'IHM
|
||||
graphique.
|
||||
Toutes les autres initialisations graphiques sont omises.
|
||||
Cela permet aussi d'omettre toute initialisation graphique en sp<73>cifiant le nom
|
||||
de fichier "NONE".
|
||||
Voir ":help gui\-init" dans Vim pour davantage de d<>tails.
|
||||
.TP
|
||||
\-V[N]
|
||||
Mode Verbeux.
|
||||
Donne des messages <20> propos des fichiers sourc<72>s, ainsi que sur la lecture
|
||||
et les <20>critures dans le fichier viminfo. le nombre optionnel N pr<70>cise la
|
||||
valeur de l'option 'verbose' (10 par d<>faut).
|
||||
.TP
|
||||
\-v
|
||||
D<EFBFBD>marre
|
||||
.B Vim
|
||||
en mode Vi, comme si l'ex<65>cutable s'appelait "vi". Cela n'a d'effet que si
|
||||
l'ex<65>cutable invoqu<71> est "ex".
|
||||
.TP
|
||||
\-w {scriptSortie}
|
||||
Tous les caract<63>res que vous tapez sont enregistr<74>s dans le fichier
|
||||
{scriptSortie}, jusqu'<27> ce que vous quittiez
|
||||
.B Vim.
|
||||
C'est utile quand vous voulez cr<63>er un fichier de script <20> utiliser avec
|
||||
"vim \-s" ou ":source!".
|
||||
Si le fichier {scriptSortie} existe, les caract<63>res sont ajout<75>s <20> la fin.
|
||||
.TP
|
||||
\-W {scriptSortie}
|
||||
Comme \-w, mais un fichier existant sera <20>cras<61>.
|
||||
.TP
|
||||
\-x
|
||||
Chiffre les fichiers lors de l'<27>criture. Une cl<63> de chiffrement sera demand<6E>e.
|
||||
.TP
|
||||
\-X
|
||||
Ne se connecte pas au serveur X. Acc<63>l<EFBFBD>re le temps de d<>marrage dans un
|
||||
terminal, mais le titre de la fen<65>tre et le presse-papier seront inaccessibles.
|
||||
.TP
|
||||
\-y
|
||||
D<EFBFBD>marre
|
||||
.B Vim
|
||||
en mode D<>butant (easy), comme si l'ex<65>cutable s'appelait "evim" ou "eview".
|
||||
Donne <20>
|
||||
.B Vim
|
||||
un comportement plus proche des <20>diteurs <20> cliquez-tapez <20>.
|
||||
.TP
|
||||
\-Z
|
||||
Mode restreint. Fonctionne comme si l'ex<65>cutable commen<65>ait par la lettre 'r'.
|
||||
.TP
|
||||
\-\-
|
||||
D<EFBFBD>limite la fin des options.
|
||||
Les arguments qui suivent seront consid<69>r<EFBFBD>s comme des noms de fichiers.
|
||||
Cela permet d'<27>diter des fichier d<>butant par un '\-'.
|
||||
.TP
|
||||
\-\-echo\-wid
|
||||
IHM graphique GTK uniquement : retourne la Window ID sur stdout.
|
||||
.TP
|
||||
\-\-help
|
||||
Donne un message d'aide et quitte, comme "\-h".
|
||||
.TP
|
||||
\-\-literal
|
||||
Prend les arguments de noms de fichiers litt<74>ralement, sans <20>tendre les
|
||||
jokers. N'a aucun effet sur Unix, o<> le shell <20>tend les jokers.
|
||||
.TP
|
||||
\-\-noplugin
|
||||
Ne charge pas les greffons. Implicite avec \-u NONE.
|
||||
.TP
|
||||
\-\-remote
|
||||
Se connecte <20> un serveur Vim et lui fait <20>diter les fichiers sp<73>cifi<66>s dans
|
||||
le reste des arguments. Si aucun serveur n'est trouv<75>, un avertissement est
|
||||
<EFBFBD>mis et les fichiers sont <20>dit<69>s dans le Vim courant.
|
||||
.TP
|
||||
\-\-remote\-expr {expr}
|
||||
Se connecte <20> un serveur Vim, y <20>value {expr} et affiche le r<>sultat sur la
|
||||
sortie standard (stdout).
|
||||
.TP
|
||||
\-\-remote\-send {touches}
|
||||
Se connecte <20> un serveur Vim et y envoie {touches}.
|
||||
.TP
|
||||
\-\-remote\-silent
|
||||
Comme \-\-remote, mais sans <20>mettre d'avertissement si aucun serveur n'est
|
||||
trouv<EFBFBD>.
|
||||
.TP
|
||||
\-\-remote\-wait
|
||||
Comme \-\-remote, mais Vim ne quitte pas tant que le fichier est en cours
|
||||
d'<27>dition.
|
||||
.TP
|
||||
\-\-remote\-wait\-silent
|
||||
Comme \-\-remote\-wait, mais sans <20>mettre d'avertissement si aucun serveur n'est
|
||||
trouv<EFBFBD>.
|
||||
.TP
|
||||
\-\-serverlist
|
||||
Donne la liste des noms de tous les serveurs Vim disponibles.
|
||||
.TP
|
||||
\-\-servername {nom}
|
||||
Utilise {nom} pour le nom de serveur. Ce nom est donn<6E> au Vim courant, <20> moins
|
||||
qu'il ne soit utilis<69> avec un argument \-\-remote. Dans ce cas, il s'agit du nom
|
||||
du serveur auquel se connecter.
|
||||
.TP
|
||||
\-\-socketid {id}
|
||||
IHM graphique GTK+ uniquement : utilise le m<>canisme GtkPlug pour faire
|
||||
fonctionner gvim dans une autre fen<65>tre.
|
||||
.TP
|
||||
\-\-version
|
||||
Affiche les informations sur la version puis quitte.
|
||||
.SH AIDE EN LIGNE
|
||||
Taper ":help" dans
|
||||
.B Vim
|
||||
pour commencer.
|
||||
Taper ":help sujet" pour obtenir de l'aide sur un sujet pr<70>cis.
|
||||
Par exemple : ":help ZZ" pour consulter l'aide sur la commande "ZZ".
|
||||
Utiliser <Tab> et CTRL\-D pour compl<70>ter les sujets (":help
|
||||
cmdline\-completion").
|
||||
Des marqueurs sont inclus dans l'aide et vous permettent de sauter d'un endroit
|
||||
<EFBFBD> un autre (comme des liens hypertextes, voir ":help").
|
||||
L'ensemble des fichiers de la documentation peut <20>tre consult<6C> de cette
|
||||
fa<EFBFBD>on, par exemple ":help syntax.txt".
|
||||
.SH FICHIERS
|
||||
.TP 15
|
||||
/usr/local/lib/vim/doc/*.txt
|
||||
Les fichiers de la documentation de
|
||||
.B Vim.
|
||||
Utiliser ":help doc\-file\-list" pour obtenir la liste compl<70>te.
|
||||
.TP
|
||||
/usr/local/lib/vim/doc/tags
|
||||
Le fichier des marqueurs utilis<69> pour trouver les informations dans les
|
||||
fichiers de la documentation.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/syntax.vim
|
||||
Initialisation de la syntaxe pour l'ensemble du syst<73>me.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/*.vim
|
||||
Fichiers de syntaxe pour diff<66>rents langages.
|
||||
.TP
|
||||
/usr/local/lib/vim/vimrc
|
||||
Initialisation de
|
||||
.B Vim
|
||||
pour l'ensemble du syst<73>me.
|
||||
.TP
|
||||
/usr/local/lib/vim/gvimrc
|
||||
Initialisation de gvim pour l'ensemble du syst<73>me.
|
||||
.TP
|
||||
/usr/local/lib/vim/optwin.vim
|
||||
Script utilis<69> pour la commande ":options", une mani<6E>re pratique de consulter
|
||||
et de modifier les options.
|
||||
.TP
|
||||
/usr/local/lib/vim/menu.vim
|
||||
Initialisation des menus de gvim pour l'ensemble du syst<73>me.
|
||||
.TP
|
||||
/usr/local/lib/vim/bugreport.vim
|
||||
Script pour g<>n<EFBFBD>rer un rapport de bogue. Voir ":help bugs".
|
||||
.TP
|
||||
/usr/local/lib/vim/filetype.vim
|
||||
Script pour d<>tecter le type d'un fichier d'apr<70>s son nom.
|
||||
Voir ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/scripts.vim
|
||||
Script pour d<>tecter le type d'un fichier d'apr<70>s son contenu.
|
||||
Voir ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/*.ps
|
||||
Fichiers utilis<69>s pour l'impression PostScript.
|
||||
.PP
|
||||
Pour disposer d'informations r<>centes, consulter le site Internet de VIM :
|
||||
.br
|
||||
<URL:http://www.vim.org/>
|
||||
.SH VOIR AUSSI
|
||||
vimtutor(1)
|
||||
.SH AUTEUR
|
||||
La majeure partie de
|
||||
.B Vim
|
||||
a <20>t<EFBFBD> <20>crite par Bram Moolenaar, avec l'aide de nombreux autres contributeurs.
|
||||
Voir ":help credits" dans
|
||||
.B Vim.
|
||||
.br
|
||||
.B Vim
|
||||
est bas<61> sur Stevie, r<>alis<69> par Tim Thompson,
|
||||
Tony Andrews et G.R. (Fred) Walter.
|
||||
Toutefois, pratiquement rien du code original ne subsiste.
|
||||
.SH BOGUES
|
||||
Probablement.
|
||||
Voir ":help todo" pour consulter la liste des probl<62>mes connus.
|
||||
.PP
|
||||
NOTE : Remarquez que bon nombre de points, qui pourraient <20>tre consid<69>r<EFBFBD>s comme
|
||||
des bugs par certains, sont en fait dus <20> une reproduction trop fid<69>le
|
||||
du comportement de Vi. Et si vous pensez que d'autres points sont des
|
||||
bugs "parce que Vi le fait diff<66>remment", vous devriez jeter un oeil
|
||||
attentif au fichier vi_diff.txt (ou taper ":help vi_diff.txt" dans Vim).
|
||||
Regardez aussi les options 'compatible' et 'coptions'.
|
||||
.SH TRADUCTION
|
||||
Cette page de manuel a <20>t<EFBFBD> traduite par Richard Hitier.
|
||||
<richard.hitier@dial.oleane.com> 2000-08-07.
|
||||
.br
|
||||
Cette page de manuel a <20>t<EFBFBD> mise <20> jour par David Blanchet.
|
||||
<david.blanchet@free.fr> 2005-01-17.
|
||||
0
runtime/doc/vim-fr.UTF-8.1
Normal file
0
runtime/doc/vim-fr.UTF-8.1
Normal file
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 7.0aa. Last change: 2005 Feb 18
|
||||
*windows.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -516,7 +516,7 @@ The minimal height and width of a window is set with 'winminheight' and
|
||||
24. :[N]sprevious [N] 34. :[N]sbprevious [N] split + to Nth previous arg/buf
|
||||
25. :srewind / :sfirst 35. :sbrewind / :sbfirst split + to first arg/buf
|
||||
26. :slast 36. :sblast split + to last arg/buf
|
||||
27. :sall 37: :sball edit all args/buffers
|
||||
27. :sall 37. :sball edit all args/buffers
|
||||
38. :sunhide edit all loaded buffers
|
||||
39. :[N]sbmod [N] split + to Nth modified buf
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*workshop.txt* For Vim version 7.0aa. Last change: 2004 Jan 08
|
||||
*workshop.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur
|
||||
|
||||
395
runtime/doc/xxd-fr.UTF-8.1
Normal file
395
runtime/doc/xxd-fr.UTF-8.1
Normal file
@@ -0,0 +1,395 @@
|
||||
.TH XXD 1 "août 1996" "Page de manuel pour xxd"
|
||||
.\"
|
||||
.\" 21st May 1996
|
||||
.\" Man page author:
|
||||
.\" Tony Nugent <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
||||
.\" Changes by Bram Moolenaar <Bram@vim.org>
|
||||
.\" French translation by David Blanchet <david.blanchet@free.fr> 2005-03
|
||||
.SH NOM
|
||||
.I xxd
|
||||
\- convertit en représentation hexadécimale et inversement.
|
||||
.SH SYNOPSIS
|
||||
.B xxd
|
||||
\-h[elp]
|
||||
.br
|
||||
.B xxd
|
||||
[options] [fichier_entree [fichier_sortie]]
|
||||
.br
|
||||
.B xxd
|
||||
\-r[evert] [options] [fichier_entree [fichier_sortie]]
|
||||
.SH DESCRIPTION
|
||||
.I xxd
|
||||
crée un fichier contenant la représentation hexadécimale d'un fichier
|
||||
binaire ou de l'entrée standard.
|
||||
Il peut également convertir un fichier de codes hexadécimaux en un fichier
|
||||
binaire.
|
||||
Comme
|
||||
.BR uuencode(1)
|
||||
et
|
||||
.BR uudecode(1)
|
||||
il permet la transmission de données binaires dans une représentation ASCII
|
||||
compatible avec le courrier électronique, mais a l'avantage de décoder la
|
||||
sortie standard.
|
||||
De plus, il peut être utilisé pour appliquer des rustines à des fichiers
|
||||
binaires.
|
||||
.SH OPTIONS
|
||||
Si aucun
|
||||
.I fichier_entree
|
||||
n'est spécifié, l'entrée standard est utilisée.
|
||||
Si
|
||||
.I fichier_entree
|
||||
correspond au caractère
|
||||
.RB '\-'
|
||||
\, l'entrée standard est employée comme source des données en entrée.
|
||||
Si aucun
|
||||
.I fichier_sortie
|
||||
n'est spécifié (ou qu'un caractère
|
||||
.RB '\-'
|
||||
est donné à sa place), le résultat est envoyé sur la sortie standard.
|
||||
.PP
|
||||
NOTE : un analyseur paresseux est utilisé. Il ne vérifie pas au-delà de la
|
||||
première lettre de l'option, à moins que cette dernière ne requiert un
|
||||
paramètre.
|
||||
L'espace entre l'option et son paramètre est optionnel.
|
||||
Les paramètres des options peuvent être spécifiés en notation décimale,
|
||||
hexadécimale ou octale.
|
||||
Ainsi
|
||||
.BR \-c8 ,
|
||||
.BR "\-c 8" ,
|
||||
.B \-c 010
|
||||
et
|
||||
.B \-cols 8
|
||||
sont tous équivalents.
|
||||
.TP
|
||||
.IR \-a " | " \-autoskip
|
||||
active la fonctionnalité "autoskip" : le caractère '*' remplace les lignes
|
||||
d'octets nuls. Désactivée par défaut.
|
||||
.TP
|
||||
.IR \-b " | " \-bits
|
||||
Convertit en binaires plutôt qu'en hexadécimal.
|
||||
Cette option écrit les octets comme une séquence de "1" et de "0" au lieu
|
||||
d'une conversion en hexadécimal traditionnel. Chaque ligne est précédée par un
|
||||
numéro de ligne en hexadécimal et suivie de la représentation ASCII (ou
|
||||
EBCDIC) correspondante. Les options \-r, \-p, \-i ne fonctionnent pas dans ce
|
||||
mode.
|
||||
.TP
|
||||
.IR "\-c cols " | " \-cols cols"
|
||||
place
|
||||
.RI < cols >
|
||||
octets par ligne. 16 par défaut (\-i : 12, \-ps : 30, \-b : 6). Maximum 256.
|
||||
.TP
|
||||
.IR \-E " | " \-EBCDIC
|
||||
Passe le codage des caractères de la colonne de droite de ASCII à EBCDIC.
|
||||
Cela ne change pas la représentation hexadécimale. Cette option est sans effet
|
||||
quand elle est utilisée avec \-r, \-p or \-i.
|
||||
.TP
|
||||
.IR "\-g octets " | " \-groupsize octets"
|
||||
Regroupe les octets (deux chiffres hexadécimaux ou huit chiffres binaires)
|
||||
par groupe de
|
||||
.RI < octets >
|
||||
\, séparés par des espaces blancs. Spécifiez
|
||||
.I \-g 0
|
||||
pour supprimer le regroupement.
|
||||
.RI < octets >
|
||||
vaut 2 par défaut dans le mode normal et \fI1\fP en
|
||||
représentation binaire. Le regroupement ne s'applique pas aux styles
|
||||
Postscript et Include.
|
||||
.TP
|
||||
.IR \-h " | " \-help
|
||||
Affiche un résumé des commandes disponibles et quitte. Aucune conversion n'est
|
||||
effectuée.
|
||||
.TP
|
||||
.IR \-i " | " \-include
|
||||
produit une sortie dans le style #include (fichier C à inclure). La définition
|
||||
complète d'un tableau statique est écrite et est nommée d'après le fichier
|
||||
d'origine, à moins que xxd lise depuis l'entrée standard.
|
||||
.TP
|
||||
.IR "\-l long " | " \-len long"
|
||||
Arrête après l'écriture de
|
||||
.RI < long >
|
||||
octets.
|
||||
.TP
|
||||
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
||||
Produit une conversion continue dans le style Postscript (postscript continuous
|
||||
hexdumd style).
|
||||
Également connu sous le nom de « conversion brute » (plain hexdump style).
|
||||
.TP
|
||||
.IR \-r " | " \-revert
|
||||
Opération inverse : convertit un fichier hexadécimal en un fichier binaire (ou
|
||||
applique une rustine à un fichier binaire).
|
||||
Si l'écriture n'a pas lieu sur la sortie standard, xxd écrit dans le fichier
|
||||
qu'il produit sans le tronquer. Utilisez la combinaison
|
||||
.I \-r \-p
|
||||
pour lire de l'hexadécimal brut sans information sur le numéro des lignes et
|
||||
sans format de colonnes particulier. Des espaces blancs et coupures de lignes
|
||||
supplémentaires sont autorisés à n'importe quel endroit.
|
||||
.TP
|
||||
.I \-seek décalage
|
||||
Utilisé après l'option
|
||||
.I \-r
|
||||
\: inverse la conversion en ajoutant
|
||||
.RI < décalage >
|
||||
aux positions dans le fichier données dans le code hexadécimal.
|
||||
.TP
|
||||
.I \-s [\+][\-]décalage
|
||||
Débute au
|
||||
.RI < décalage >
|
||||
absolu ou relatif dans fichier_entree.
|
||||
\fI\+ \fRindique que le décalage est relatif à la position courante dans
|
||||
l'entrée standard (sans effet si la lecture n'a pas lieu sur l'entrée
|
||||
standard). \fI\- \fRindique un décalage en caractères depuis la fin de
|
||||
l'entrée (utilisé avec \fI \+ \fR, désigne la position avant la position
|
||||
actuelle de l'entrée standard).
|
||||
Sans l'option \-s, xxd démarre à la position courante du fichier.
|
||||
.TP
|
||||
.I \-u
|
||||
Utilise des chiffres hexadécimaux majuscules. La casse par défaut est
|
||||
minuscule.
|
||||
.TP
|
||||
.IR \-v " | " \-version
|
||||
Affiche la version de xxd.
|
||||
.SH MISE EN GARDE
|
||||
.I xxd \-r
|
||||
effectue des opérations internes un peu obscures lors de l'évaluation
|
||||
des informations sur les numéros de lignes. Si le fichier de sortie est
|
||||
adressable, alors les numéros de lignes au début de chaque ligne d'hexadécimal
|
||||
peuvent être désordonnées, des lignes peuvent manquer ou se chevaucher. Dans
|
||||
ces cas, xxd utilisera lseek(2) pour déterminer la prochaine position. Si le
|
||||
fichier n'est pas adressable, seuls les vides sont autorisés, et ils seront
|
||||
comblés par des octets nuls.
|
||||
.PP
|
||||
.I xxd \-r
|
||||
ne génère aucune erreur lors de l'analyse. Le problème sont passés
|
||||
silencieusement.
|
||||
.PP
|
||||
Lors de l'édition de la représentation hexadécimale, veuillez noter que
|
||||
.I xxd \-r
|
||||
ignore tout ce qui se trouve sur la ligne après avoir lu suffisamment de
|
||||
données hexadécimales (voir l'option \-c). Cela signifie également que les
|
||||
modifications dans la colonne ASCII (ou EBCDIC) sont toujours ignorées. La
|
||||
conversion inverse de données hexadécimales brutes (postscript) avec xxd \-r
|
||||
\-p ne dépend pas d'un nombre correct de colonnes. Dans ce cas, tout ce qui
|
||||
ressemble à une paire de chiffres hexadécimaux est interprété.
|
||||
.PP
|
||||
Remarquez la différence entre
|
||||
.br
|
||||
\fI% xxd \-i fichier\fR
|
||||
.br
|
||||
et
|
||||
.br
|
||||
\fI% xxd \-i \< fichier\fR
|
||||
.PP
|
||||
.I xxd \-s \+seek
|
||||
peut différer de
|
||||
.I xxd \-s seek
|
||||
\, car lseek(2) est utilisé pour « revenir en arrière ». Le '+' fait une
|
||||
différence quand la source des données est l'entrée standard et si la position
|
||||
dans le fichier de l'entrée standard n'est pas au début du fichier lorsque xxd
|
||||
est démarré et qu'il reçoit ses données.
|
||||
L'exemple suivant peut vous aider à comprendre (ou bien vous perdre davantage
|
||||
encore !)...
|
||||
.PP
|
||||
Remettre l'entrée standard au départ avant de lire ; nécessaire car 'cat' a
|
||||
déjà lu jusqu'à la fin de l'entrée standard.
|
||||
.br
|
||||
\fI% sh \-c 'cat > donnees_binaires; xxd \-s 0 > donnees_hexa' < fichier\fR
|
||||
.PP
|
||||
Convertir à partir de la position 0x480 (= 1024 + 128) du fichier.
|
||||
Le symbole '+' signifie "relativement à la position actuelle', ainsi 128 est
|
||||
ajouté aux 1024 octets comptabilisés pour dd.
|
||||
.br
|
||||
\fI% sh \-c 'dd of=donnees_binaires bs=1k count=1; xxd \-s +128 >
|
||||
donnees_hexa' < fichier\fR
|
||||
.PP
|
||||
Convertir de fichier depuis la position 0x100 (= 1024 - 768) du fichier.
|
||||
.br
|
||||
\fI% sh \-c 'dd of=donnees_binaires bs=1k count=1; xxd \-s +\-768 >
|
||||
donnees_hexa' < fichier\fR
|
||||
.PP
|
||||
Toutefois, cette situation est peu fréquente et l'utilisation de '+' est
|
||||
rarement requise. L'auteur préfère surveiller les effets de xxd avec strace(1)
|
||||
ou truss(1) quand \-s est employé.
|
||||
.SH EXEMPLES
|
||||
Afficher la totalité du
|
||||
.B fichier
|
||||
sauf les trois premières lignes (0x30 octets en hexadécimal).
|
||||
.br
|
||||
\fI% xxd \-s 0x30 fichier\fR
|
||||
.PP
|
||||
afficher les trois dernières lignes (0x30 octets en hexadécimal) du
|
||||
.B fichier
|
||||
\.
|
||||
.br
|
||||
\fI% xxd \-s \-0x30 fichier\fR
|
||||
.PP
|
||||
.br
|
||||
Afficher 120 octets convertis en continu, avec 20 octets par ligne.
|
||||
.br
|
||||
\fI% xxd \-l 120 \-ps \-c 20 xxd\-fr.1\fR
|
||||
.br
|
||||
2e54482058584420312022616ffb742031393936
|
||||
.br
|
||||
22202250616765206465206d616e75656c20706f
|
||||
.br
|
||||
757220787864220a2e5c220a2e5c222032317374
|
||||
.br
|
||||
204d617920313939360a2e5c22204d616e207061
|
||||
.br
|
||||
676520617574686f723a0a2e5c2220202020546f
|
||||
.br
|
||||
6e79204e7567656e74203c746f6e79407363746e
|
||||
.br
|
||||
204e7567656e74203c746f6e79407363746e7567
|
||||
.br
|
||||
2e54482058584420312022417567757374203139
|
||||
.PP
|
||||
Convertir les 120 premiers octets de cette page de manuel avec 12 octets par
|
||||
ligne.
|
||||
.br
|
||||
\fI% xxd \-l 120 \-c 12 xxd\-fr.1\fR
|
||||
.br
|
||||
0000000: 2e54 4820 5858 4420 3120 2261 .TH XXD 1 "a
|
||||
.br
|
||||
000000c: 6ffb 7420 3139 3936 2220 2250 o.t 1996" "P
|
||||
.br
|
||||
0000018: 6167 6520 6465 206d 616e 7565 age de manue
|
||||
.br
|
||||
0000024: 6c20 706f 7572 2078 7864 220a l pour xxd".
|
||||
.br
|
||||
0000030: 2e5c 220a 2e5c 2220 3231 7374 .\"..\" 21st
|
||||
.br
|
||||
000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\
|
||||
.br
|
||||
0000048: 2220 4d61 6e20 7061 6765 2061 " Man page a
|
||||
.br
|
||||
0000054: 7574 686f 723a 0a2e 5c22 2020 uthor:..\"
|
||||
.br
|
||||
0000060: 2020 546f 6e79 204e 7567 656e Tony Nugen
|
||||
.br
|
||||
000006c: 7420 3c74 6f6e 7940 7363 746e t <tony@sctn
|
||||
.PP
|
||||
Afficher la date écrite au début du fichier xxd\-fr.1.
|
||||
.br
|
||||
\fI% xxd \-s 0x38 \-l 13 \-c 13 xxd.1\fR
|
||||
.br
|
||||
0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996
|
||||
.PP
|
||||
Copier
|
||||
.B fichier_entree
|
||||
vers
|
||||
.B fichier_sortie
|
||||
en ajoutant 100 octets de valeur 0x00 avant.
|
||||
.br
|
||||
\fI% xxd fichier_entree | xxd \-r \-s 100 \> fichier_sortie\fR
|
||||
.PP
|
||||
Patcher la date dans le fichier xxd.1
|
||||
.br
|
||||
\fI% echo '0000037: 3574 68' | xxd \-r \- xxd\-fr.1\fR
|
||||
.br
|
||||
\fI% xxd \-s 0x38 \-l 13 \-c 13 xxd\-fr.1\fR
|
||||
.br
|
||||
0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996
|
||||
.PP
|
||||
Créer un fichier de 65537 octets tous nuls (0x00),
|
||||
sauf le dernier qui vaut 'A' (0x41 en hexadécimal).
|
||||
.br
|
||||
\fI% echo '010000: 41' | xxd \-r \> fichier\fR
|
||||
.PP
|
||||
.br
|
||||
Convertir le fichier de l'exemple précédent avec la fonctionnalité "autoskip".
|
||||
.br
|
||||
\fI% xxd \-a \-c 12 fichier\fR
|
||||
.br
|
||||
0000000: 0000 0000 0000 0000 0000 0000 ............
|
||||
.br
|
||||
*
|
||||
.br
|
||||
000fffc: 0000 0000 40 ....A
|
||||
.PP
|
||||
Créer un fichier d'un octet, contenant seulement le caractère 'A'.
|
||||
Les nombres après '\-r \-s' s'ajoutent au numéros de lignes trouvées dans le
|
||||
fichier ; XXX in effects, les octets initiaux sont supprimés.
|
||||
.br
|
||||
\fI% echo '010000: 41' | xxd \-r \-s \-0x10000 \> fichier\fR
|
||||
.PP
|
||||
Utiliser xxd comme filtre dans un éditeur tel que
|
||||
.B vim(1)
|
||||
pour convertir une zone comprise entre les marques 'a' et 'z'.
|
||||
.br
|
||||
\fI:'a,'z!xxd\fR
|
||||
.PP
|
||||
Utiliser xxd comme filtre dans un éditeur tel que
|
||||
.B vim(1)
|
||||
pour récupérer une conversion binaire comprise entre les marques 'a' et 'z'.
|
||||
.br
|
||||
\fI:'a,'z!xxd \-r\fR
|
||||
.PP
|
||||
Utiliser xxd comme filtre dans un éditeur tel que
|
||||
.B vim(1)
|
||||
pour récupérer une ligne convertie. Placez le curseur sur la ligne et tapez :
|
||||
.br
|
||||
\fI!!xxd \-r\fR
|
||||
.PP
|
||||
Lire des caractères depuis une connexion série :
|
||||
.br
|
||||
\fI% xxd \-c1 < /dev/term/b &\fR
|
||||
.br
|
||||
\fI% stty < /dev/term/b \-echo \-opost \-isig \-icanon min 1\fR
|
||||
.br
|
||||
\fI% echo \-n foo > /dev/term/b\fR
|
||||
.SH VALEURS DE RETOUR
|
||||
Les erreurs suivantes sont rapportées :
|
||||
.TP
|
||||
0
|
||||
aucune erreur ne s'est produit.
|
||||
.TP
|
||||
\-1
|
||||
opération non supportée (
|
||||
.I xxd \-r \-i
|
||||
reste impossible).
|
||||
.TP
|
||||
1
|
||||
erreur lors de l'analyse des options.
|
||||
.TP
|
||||
2
|
||||
problème avec le fichier d'entrée.
|
||||
.TP
|
||||
3
|
||||
problème avec le fichier de sortie.
|
||||
.TP
|
||||
4, 5
|
||||
la position spécifiée n'est pas atteignable.
|
||||
.SH VOIR AUSSI
|
||||
uuencode(1), uudecode(1), patch(1)
|
||||
.SH AVERTISSEMENTS
|
||||
L'étrangeté de cet outil reflète celle du cerveau de ses créateurs.
|
||||
Utilisez cet outil à vos risques et périls. Dupliquez vos fichiers.
|
||||
Surveillez l'outil. Devenez un gourou.
|
||||
.SH VERSION
|
||||
Cette page de manuel documente la version 1.7 de xxd.
|
||||
.SH AUTEUR
|
||||
(c) 1990-1997 par Juergen Weigert
|
||||
.br
|
||||
<jnweiger@informatik.uni-erlangen.de>
|
||||
.LP
|
||||
"Distribute freely and credit me,
|
||||
.br
|
||||
make money and share with me,
|
||||
.br
|
||||
lose money and don't ask me."
|
||||
.PP
|
||||
Distribution libre en citant l'auteur,
|
||||
.br
|
||||
gagnez de l'argent, pensez à moi,
|
||||
.br
|
||||
perdez de l'argent, oubliez-moi.
|
||||
.PP
|
||||
Page de manuel débutée par Tony Nugent
|
||||
.br
|
||||
<tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au>
|
||||
.br
|
||||
Modifications mineures par Bram Moolenaar.
|
||||
Édité par Juergen Weigert.
|
||||
.SH TRADUCTION
|
||||
Cette page de manuel a été traduite par David Blanchet
|
||||
<david.blanchet@free.fr> 2004-12-24.
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2005 Mar 20
|
||||
" Last Change: 2005 Apr 13
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -1210,7 +1210,7 @@ au BufNewFile,BufRead .ratpoisonrc,ratpoisonrc setf ratpoison
|
||||
au BufNewFile,BufRead *\,v setf rcs
|
||||
|
||||
" Readline
|
||||
au BufNewFile,BufRead .inputrc setf readline
|
||||
au BufNewFile,BufRead .inputrc,inputrc setf readline
|
||||
|
||||
" Registry for MS-Windows
|
||||
au BufNewFile,BufRead *.reg
|
||||
@@ -1484,9 +1484,6 @@ au BufNewFile,BufRead *.sp,*.spice setf spice
|
||||
" Spyce
|
||||
au BufNewFile,BufRead *.spy,*.spi setf spyce
|
||||
|
||||
" Vim spell file
|
||||
au BufNewFile,BufRead *.spl setf vimspell
|
||||
|
||||
" Squid
|
||||
au BufNewFile,BufRead squid.conf setf squid
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: generic Changelog file
|
||||
" Language: C
|
||||
" Maintainer: noone
|
||||
" Last Change: 2005 Mar 28
|
||||
" Last Change: 2005 Mar 29
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
|
||||
BIN
runtime/spell/en.latin1.spl
Normal file
BIN
runtime/spell/en.latin1.spl
Normal file
Binary file not shown.
189382
runtime/spell/en.spl
189382
runtime/spell/en.spl
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim help file
|
||||
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
||||
" Last Change: 2004 May 17
|
||||
" Last Change: 2005 Mar 31
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -111,9 +111,9 @@ syn match helpTodo "\t[* ]Todo\t\+[a-z].*"
|
||||
|
||||
|
||||
" Additionally load a language-specific syntax file "help_ab.vim".
|
||||
let i = match(expand("%"), '\.\a\ax$')
|
||||
if i > 0
|
||||
exe "runtime syntax/help_" . strpart(expand("%"), i + 1, 2) . ".vim"
|
||||
let s:i = match(expand("%"), '\.\a\ax$')
|
||||
if s:i > 0
|
||||
exe "runtime syntax/help_" . strpart(expand("%"), s:i + 1, 2) . ".vim"
|
||||
endif
|
||||
|
||||
syn sync minlines=40
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Icewm Menu
|
||||
" Maintainer: James Mahler <jmahler@purdue.edu>
|
||||
" Last Change: Tue Dec 9 21:08:22 EST 2003
|
||||
" Maintainer: James Mahler <James.Mahler@gmail.com>
|
||||
" Last Change: Fri Apr 1 15:13:48 EST 2005
|
||||
" Extensions: ~/.icewm/menu
|
||||
" Comment: Icewm is a lightweight window manager. This adds syntax
|
||||
" highlighting when editing your user's menu file (~/.icewm/menu).
|
||||
@@ -9,7 +9,7 @@
|
||||
" clear existing syntax
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("bLcurrent_syntax")
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim spell file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2005 Mar 24
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn match vimspellError ".*"
|
||||
syn match vimspellRegion "^---$"
|
||||
syn match vimspellRegion "^\(-\l\l\)\+$"
|
||||
syn match vimspellOK "^!\=[>+]\=[[:alpha:]].*"
|
||||
syn match vimspellOK "^!\=+\S*"
|
||||
syn match vimspellError "\s\+$"
|
||||
syn match vimspellOK "^$"
|
||||
syn match vimspellComment "^#.*"
|
||||
|
||||
" Define the default highlighting.
|
||||
" Only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_diff_syntax_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
|
||||
HiLink vimspellComment Comment
|
||||
HiLink vimspellRegion DiffAdd
|
||||
HiLink vimspellError Error
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "vimspell"
|
||||
|
||||
" vim: ts=8 sw=2
|
||||
@@ -996,6 +996,7 @@ doESCkey:
|
||||
if (*curbuf->b_p_tsr == NUL && *p_tsr == NUL)
|
||||
{
|
||||
ctrl_x_mode = 0;
|
||||
edit_submode = NULL;
|
||||
msg_attr((char_u *)_("'thesaurus' option is empty"),
|
||||
hl_attr(HLF_E));
|
||||
if (emsg_silent == 0)
|
||||
@@ -1216,6 +1217,7 @@ doESCkey:
|
||||
if (*curbuf->b_p_dict == NUL && *p_dict == NUL)
|
||||
{
|
||||
ctrl_x_mode = 0;
|
||||
edit_submode = NULL;
|
||||
msg_attr((char_u *)_("'dictionary' option is empty"),
|
||||
hl_attr(HLF_E));
|
||||
if (emsg_silent == 0)
|
||||
|
||||
@@ -95,7 +95,7 @@ static char *e_listidx = N_("E684: list index out of range: %ld");
|
||||
static char *e_undefvar = N_("E121: Undefined variable: %s");
|
||||
static char *e_missbrac = N_("E111: Missing ']'");
|
||||
static char *e_listarg = N_("E686: Argument of %s must be a List");
|
||||
static char *e_listdictarg = N_("E712: Argument of %s must be a List or Dictionaary");
|
||||
static char *e_listdictarg = N_("E712: Argument of %s must be a List or Dictionary");
|
||||
static char *e_emptykey = N_("E713: Cannot use empty key for Dictionary");
|
||||
static char *e_listreq = N_("E714: List required");
|
||||
static char *e_dictreq = N_("E715: Dictionary required");
|
||||
|
||||
@@ -523,6 +523,8 @@ EX(CMD_mkexrc, "mkexrc", ex_mkrc,
|
||||
BANG|FILE1|TRLBAR|CMDWIN),
|
||||
EX(CMD_mksession, "mksession", ex_mkrc,
|
||||
BANG|FILE1|TRLBAR),
|
||||
EX(CMD_mkspell, "mkspell", ex_mkspell,
|
||||
BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
||||
EX(CMD_mkvimrc, "mkvimrc", ex_mkrc,
|
||||
BANG|FILE1|TRLBAR|CMDWIN),
|
||||
EX(CMD_mkview, "mkview", ex_mkrc,
|
||||
|
||||
@@ -1586,6 +1586,31 @@ get_arglist(gap, str)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#if defined(FEAT_QUICKFIX) || (defined(FEAT_SYN_HL) && defined(FEAT_MBYTE)) \
|
||||
|| defined(PROTO)
|
||||
/*
|
||||
* Parse a list of arguments (file names), expand them and return in
|
||||
* "fnames[fcountp]".
|
||||
* Return FAIL or OK.
|
||||
*/
|
||||
int
|
||||
get_arglist_exp(str, fcountp, fnamesp)
|
||||
char_u *str;
|
||||
int *fcountp;
|
||||
char_u ***fnamesp;
|
||||
{
|
||||
garray_T ga;
|
||||
int i;
|
||||
|
||||
if (get_arglist(&ga, str) == FAIL)
|
||||
return FAIL;
|
||||
i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
|
||||
fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
|
||||
ga_clear(&ga);
|
||||
return i;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_GUI) || defined(FEAT_CLIENTSERVER) || defined(PROTO)
|
||||
/*
|
||||
* Redefine the argument list.
|
||||
@@ -2375,11 +2400,13 @@ ex_runtime(eap)
|
||||
cmd_runtime(eap->arg, eap->forceit);
|
||||
}
|
||||
|
||||
static void source_callback __ARGS((char_u *fname));
|
||||
static void source_callback __ARGS((char_u *fname, void *cookie));
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
source_callback(fname)
|
||||
source_callback(fname, cookie)
|
||||
char_u *fname;
|
||||
void *cookie;
|
||||
{
|
||||
(void)do_source(fname, FALSE, FALSE);
|
||||
}
|
||||
@@ -2395,21 +2422,22 @@ cmd_runtime(name, all)
|
||||
char_u *name;
|
||||
int all;
|
||||
{
|
||||
return do_in_runtimepath(name, all, source_callback);
|
||||
return do_in_runtimepath(name, all, source_callback, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Find "name" in 'runtimepath'. When found, call the "callback" function for
|
||||
* it.
|
||||
* Find "name" in 'runtimepath'. When found, invoke the callback function for
|
||||
* it: callback(fname, "cookie")
|
||||
* When "all" is TRUE repeat for all matches, otherwise only the first one is
|
||||
* used.
|
||||
* Returns OK when at least one match found, FAIL otherwise.
|
||||
*/
|
||||
int
|
||||
do_in_runtimepath(name, all, callback)
|
||||
do_in_runtimepath(name, all, callback, cookie)
|
||||
char_u *name;
|
||||
int all;
|
||||
void (*callback)__ARGS((char_u *fname));
|
||||
void (*callback)__ARGS((char_u *fname, void *ck));
|
||||
void *cookie;
|
||||
{
|
||||
char_u *rtp;
|
||||
char_u *np;
|
||||
@@ -2465,7 +2493,7 @@ do_in_runtimepath(name, all, callback)
|
||||
{
|
||||
for (i = 0; i < num_files; ++i)
|
||||
{
|
||||
(*callback)(files[i]);
|
||||
(*callback)(files[i], cookie);
|
||||
did_one = TRUE;
|
||||
if (!all)
|
||||
break;
|
||||
@@ -4763,7 +4791,7 @@ static void prt_real_bits __ARGS((double real, int precision, int *pinteger, int
|
||||
static void prt_write_real __ARGS((double val, int prec));
|
||||
static void prt_def_var __ARGS((char *name, double value, int prec));
|
||||
static void prt_flush_buffer __ARGS((void));
|
||||
static void prt_resource_name __ARGS((char_u *filename));
|
||||
static void prt_resource_name __ARGS((char_u *filename, void *cookie));
|
||||
static int prt_find_resource __ARGS((char *name, struct prt_ps_resource_S *resource));
|
||||
static int prt_open_resource __ARGS((struct prt_ps_resource_S *resource));
|
||||
static int prt_check_resource __ARGS((struct prt_ps_resource_S *resource, char_u *version));
|
||||
@@ -5152,12 +5180,14 @@ prt_flush_buffer()
|
||||
}
|
||||
}
|
||||
|
||||
static char_u *resource_filename;
|
||||
|
||||
static void
|
||||
prt_resource_name(filename)
|
||||
prt_resource_name(filename, cookie)
|
||||
char_u *filename;
|
||||
void *cookie;
|
||||
{
|
||||
char_u *resource_filename = cookie;
|
||||
|
||||
if (STRLEN(filename) >= MAXPATHL)
|
||||
*resource_filename = NUL;
|
||||
else
|
||||
@@ -5177,9 +5207,9 @@ prt_find_resource(name, resource)
|
||||
add_pathsep(buffer);
|
||||
STRCAT(buffer, name);
|
||||
STRCAT(buffer, ".ps");
|
||||
resource_filename = resource->filename;
|
||||
*resource_filename = NUL;
|
||||
return (do_in_runtimepath(buffer, FALSE, prt_resource_name)
|
||||
resource->filename[0] = NUL;
|
||||
return (do_in_runtimepath(buffer, FALSE, prt_resource_name,
|
||||
resource->filename)
|
||||
&& resource->filename[0] != NUL);
|
||||
}
|
||||
|
||||
@@ -5980,7 +6010,7 @@ mch_print_init(psettings, jobname, forceit)
|
||||
|
||||
if (!mbfont_opts[OPT_MBFONT_REGULAR].present)
|
||||
{
|
||||
EMSG(_("E675: No default font specfifed for multi-byte printing."));
|
||||
EMSG(_("E675: No default font specified for multi-byte printing."));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
/* Magic value for algorithm that walks through the array. */
|
||||
#define PERTURB_SHIFT 5
|
||||
|
||||
static int hash_may_resize __ARGS((hashtab_T *ht));
|
||||
static int hash_may_resize __ARGS((hashtab_T *ht, int minitems));
|
||||
|
||||
#if 0 /* not used */
|
||||
#if defined(FEAT_SYN_HL) || defined(PROTO)
|
||||
/*
|
||||
* Create an empty hash table.
|
||||
* Returns NULL when out of memory.
|
||||
@@ -189,7 +189,7 @@ hash_add_item(ht, hi, key, hash)
|
||||
hash_T hash;
|
||||
{
|
||||
/* If resizing failed before and it fails again we can't add an item. */
|
||||
if (ht->ht_error && hash_may_resize(ht) == FAIL)
|
||||
if (ht->ht_error && hash_may_resize(ht, 0) == FAIL)
|
||||
return FAIL;
|
||||
|
||||
++ht->ht_used;
|
||||
@@ -199,7 +199,7 @@ hash_add_item(ht, hi, key, hash)
|
||||
hi->hi_hash = hash;
|
||||
|
||||
/* When the space gets low may resize the array. */
|
||||
return hash_may_resize(ht);
|
||||
return hash_may_resize(ht, 0);
|
||||
}
|
||||
|
||||
#if 0 /* not used */
|
||||
@@ -233,7 +233,7 @@ hash_remove(ht, hi)
|
||||
{
|
||||
--ht->ht_used;
|
||||
hi->hi_key = HI_KEY_REMOVED;
|
||||
hash_may_resize(ht);
|
||||
hash_may_resize(ht, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -248,6 +248,20 @@ hash_lock(ht)
|
||||
++ht->ht_locked;
|
||||
}
|
||||
|
||||
/*
|
||||
* Lock a hashtable at the specified number of entries.
|
||||
* Caller must make sure no more than "size" entries will be added.
|
||||
* Must call hash_unlock() later.
|
||||
*/
|
||||
void
|
||||
hash_lock_size(ht, size)
|
||||
hashtab_T *ht;
|
||||
int size;
|
||||
{
|
||||
(void)hash_may_resize(ht, size);
|
||||
++ht->ht_locked;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unlock a hashtable: allow ht_array changes again.
|
||||
* Table will be resized (shrink) when necessary.
|
||||
@@ -258,7 +272,7 @@ hash_unlock(ht)
|
||||
hashtab_T *ht;
|
||||
{
|
||||
--ht->ht_locked;
|
||||
(void)hash_may_resize(ht);
|
||||
(void)hash_may_resize(ht, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -267,8 +281,9 @@ hash_unlock(ht)
|
||||
* Returns OK or FAIL (out of memory).
|
||||
*/
|
||||
static int
|
||||
hash_may_resize(ht)
|
||||
hash_may_resize(ht, minitems)
|
||||
hashtab_T *ht;
|
||||
int minitems; /* minimal number of items */
|
||||
{
|
||||
hashitem_T temparray[HT_INIT_SIZE];
|
||||
hashitem_T *oldarray, *newarray;
|
||||
@@ -291,16 +306,19 @@ hash_may_resize(ht)
|
||||
EMSG("hash_may_resize(): table completely filled");
|
||||
#endif
|
||||
|
||||
if (minitems == 0)
|
||||
{
|
||||
/* Return quickly for small tables with at least two NULL items. NULL
|
||||
* items are required for the lookup to decide a key isn't there. */
|
||||
if (ht->ht_filled < HT_INIT_SIZE - 1 && ht->ht_array == ht->ht_smallarray)
|
||||
if (ht->ht_filled < HT_INIT_SIZE - 1
|
||||
&& ht->ht_array == ht->ht_smallarray)
|
||||
return OK;
|
||||
|
||||
/*
|
||||
* Grow or refill the array when it's more than 2/3 full (including
|
||||
* removed items, so that they get cleaned up).
|
||||
* Shrink the array when it's less than 1/5 full. When growing it is at
|
||||
* least 1/4 full (avoids repeated grow-shrink operations)
|
||||
* Shrink the array when it's less than 1/5 full. When growing it is
|
||||
* at least 1/4 full (avoids repeated grow-shrink operations)
|
||||
*/
|
||||
oldsize = ht->ht_mask + 1;
|
||||
if (ht->ht_filled * 3 < oldsize * 2 && ht->ht_used > oldsize / 5)
|
||||
@@ -310,6 +328,15 @@ hash_may_resize(ht)
|
||||
minsize = ht->ht_used * 2; /* it's big, don't make too much room */
|
||||
else
|
||||
minsize = ht->ht_used * 4; /* make plenty of room */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Use specified size. */
|
||||
if (minitems < ht->ht_used) /* just in case... */
|
||||
minitems = ht->ht_used;
|
||||
minsize = minitems * 3 / 2; /* array is up to 2/3 full */
|
||||
}
|
||||
|
||||
newsize = HT_INIT_SIZE;
|
||||
while (newsize < minsize)
|
||||
{
|
||||
|
||||
@@ -711,7 +711,7 @@ main
|
||||
#endif
|
||||
case 'M': /* "-M" no changes or writing of files */
|
||||
reset_modifiable();
|
||||
/* FALLTRHOUGH */
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case 'm': /* "-m" no writing of files */
|
||||
p_write = FALSE;
|
||||
@@ -859,7 +859,7 @@ main
|
||||
argv_idx = -1;
|
||||
break;
|
||||
}
|
||||
/*FALLTRHOUGH*/
|
||||
/*FALLTHROUGH*/
|
||||
case 'S': /* "-S {file}" execute Vim script */
|
||||
case 'i': /* "-i {viminfo}" use for viminfo */
|
||||
#ifndef FEAT_DIFF
|
||||
@@ -1011,7 +1011,7 @@ scripterror:
|
||||
argv_idx = -1;
|
||||
break;
|
||||
}
|
||||
/*FALLTRHOUGH*/
|
||||
/*FALLTHROUGH*/
|
||||
case 'W': /* "-W {scriptout}" overwrite script file */
|
||||
if (scriptout != NULL)
|
||||
goto scripterror;
|
||||
|
||||
@@ -3627,7 +3627,7 @@ error:
|
||||
|
||||
if (flags & PUT_CURSLINE)
|
||||
{
|
||||
/* ":put": put cursor on last inserte line */
|
||||
/* ":put": put cursor on last inserted line */
|
||||
curwin->w_cursor.lnum = lnum;
|
||||
beginline(BL_WHITE | BL_FIX);
|
||||
}
|
||||
|
||||
@@ -3001,10 +3001,6 @@ set_init_1()
|
||||
# if defined(WIN3264) && defined(FEAT_MBYTE)
|
||||
/* $HOME may have characters in active code page. */
|
||||
init_homedir();
|
||||
# endif
|
||||
#ifdef FEAT_SYN_HL
|
||||
/* Need to reload spell dictionaries */
|
||||
spell_reload();
|
||||
# endif
|
||||
}
|
||||
else
|
||||
|
||||
3522
src/po/it.po
3522
src/po/it.po
File diff suppressed because it is too large
Load Diff
@@ -37,6 +37,7 @@ int check_changed_any __ARGS((int hidden));
|
||||
int check_fname __ARGS((void));
|
||||
int buf_write_all __ARGS((buf_T *buf, int forceit));
|
||||
int get_arglist __ARGS((garray_T *gap, char_u *str));
|
||||
int get_arglist_exp __ARGS((char_u *str, int *fcountp, char_u ***fnamesp));
|
||||
void set_arglist __ARGS((char_u *str));
|
||||
void check_arg_idx __ARGS((win_T *win));
|
||||
void ex_args __ARGS((exarg_T *eap));
|
||||
@@ -53,7 +54,7 @@ void ex_listdo __ARGS((exarg_T *eap));
|
||||
void ex_compiler __ARGS((exarg_T *eap));
|
||||
void ex_runtime __ARGS((exarg_T *eap));
|
||||
int cmd_runtime __ARGS((char_u *name, int all));
|
||||
int do_in_runtimepath __ARGS((char_u *name, int all, void (*callback)(char_u *fname)));
|
||||
int do_in_runtimepath __ARGS((char_u *name, int all, void (*callback)(char_u *fname, void *cookie), void *cookie));
|
||||
void ex_options __ARGS((exarg_T *eap));
|
||||
void ex_source __ARGS((exarg_T *eap));
|
||||
linenr_T *source_breakpoint __ARGS((void *cookie));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* hashtable.c */
|
||||
hashtab_T *hash_create __ARGS((void));
|
||||
void hash_init __ARGS((hashtab_T *ht));
|
||||
void hash_clear __ARGS((hashtab_T *ht));
|
||||
hashitem_T *hash_find __ARGS((hashtab_T *ht, char_u *key));
|
||||
@@ -7,6 +8,7 @@ int hash_add __ARGS((hashtab_T *ht, char_u *key));
|
||||
int hash_add_item __ARGS((hashtab_T *ht, hashitem_T *hi, char_u *key, hash_T hash));
|
||||
void hash_remove __ARGS((hashtab_T *ht, hashitem_T *hi));
|
||||
void hash_lock __ARGS((hashtab_T *ht));
|
||||
void hash_lock_size __ARGS((hashtab_T *ht, int size));
|
||||
void hash_unlock __ARGS((hashtab_T *ht));
|
||||
hash_T hash_hash __ARGS((char_u *key));
|
||||
/* vim: set ft=c : */
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/* spell.c */
|
||||
int spell_check __ARGS((win_T *wp, char_u *ptr, int *attrp));
|
||||
int spell_check __ARGS((win_T *wp, char_u *line, char_u *ptr, int *attrp));
|
||||
int spell_move_to __ARGS((int dir, int allwords));
|
||||
char_u *did_set_spelllang __ARGS((buf_T *buf));
|
||||
void spell_reload __ARGS((void));
|
||||
void ex_mkspell __ARGS((exarg_T *eap));
|
||||
/* vim: set ft=c : */
|
||||
|
||||
6
src/ui.c
6
src/ui.c
@@ -2800,7 +2800,11 @@ mouse_comp_pos(win, rowp, colp, lnump)
|
||||
{
|
||||
#ifdef FEAT_DIFF
|
||||
/* Don't include filler lines in "count" */
|
||||
if (win->w_p_diff && !hasFoldingWin(win, lnum, NULL, NULL, TRUE, NULL))
|
||||
if (win->w_p_diff
|
||||
# ifdef FEAT_FOLDING
|
||||
&& !hasFoldingWin(win, lnum, NULL, NULL, TRUE, NULL)
|
||||
# endif
|
||||
)
|
||||
{
|
||||
if (lnum == win->w_topline)
|
||||
row -= win->w_topfill;
|
||||
|
||||
Reference in New Issue
Block a user