Skip to content

Commit

Permalink
updated for version 7.0052
Browse files Browse the repository at this point in the history
  • Loading branch information
vimboss committed Feb 26, 2005
1 parent 883273d commit 90c1023
Show file tree
Hide file tree
Showing 57 changed files with 9,095 additions and 345 deletions.
24 changes: 14 additions & 10 deletions runtime/doc/change.txt
@@ -1,4 +1,4 @@
*change.txt* For Vim version 7.0aa. Last change: 2005 Feb 21
*change.txt* For Vim version 7.0aa. Last change: 2005 Feb 23


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -527,7 +527,7 @@ comment (starting with '"') after the ":!" command.

4.2 Substitute *:substitute*
*:s* *:su*
:[range]s[ubstitute]/{pattern}/{string}/[&][#][c][e][g][p][r][i][I] [count]
:[range]s[ubstitute]/{pattern}/{string}/[flags] [count]
For each line in [range] replace a match of {pattern}
with {string}.
For the {pattern} see |pattern|.
Expand All @@ -539,31 +539,31 @@ comment (starting with '"') after the ":!" command.
starting with the last line in [range]. When [range]
is omitted start in the current line.
Also see |cmdline-ranges|.
See |:s_flags| for the flags.
See |:s_flags| for [flags].

:[range]s[ubstitute] [#][c][e][g][p][r][i][I] [count]
:[range]&[&][#][c][e][g][p][r][i][I] [count] *:&*
:[range]s[ubstitute] [flags] [count]
:[range]&[&][flags] [count] *:&*
Repeat last :substitute with same search pattern and
substitute string, but without the same flags. You
may add extra flags (see |:s_flags|).
may add [flags], see |:s_flags|.
Note that after ":substitute" the '&' flag can't be
used, it's recognized as a pattern separator.
The space between ":substitute" and the 'c', 'g' and
'r' flags isn't required, but in scripts it's a good
idea to keep it to avoid confusion.

:[range]~[&][#][c][e][g][p][r][i][I] [count] *:~*
:[range]~[&][flags] [count] *:~*
Repeat last substitute with same substitute string
but with last used search pattern. This is like
":&r". See |:s_flags| for the flags.
":&r". See |:s_flags| for [flags].

*&*
*&*
& Synonym for ":s//~/" (repeat last substitute). Note
that the flags are not remembered, thus it might
actually work differently. You can use ":&&" to keep
the flags.

*g&*
*g&*
g& Synonym for ":%s//~/&" (repeat last substitute on all
lines with the same flags).
Mnemonic: global substitute. {not in Vi}
Expand Down Expand Up @@ -629,6 +629,10 @@ The flags that you can use for the substitute commands:
options are not used.
{not in Vi}

[n] Report the number of matches, do not actually substitute. The [c]
flag is ignored. The matches are reported as if 'report' is zero.
Useful to |count-items|.

[p] Print the line containing the last substitute.

[#] Like [p] and prepend the line number.
Expand Down
6 changes: 3 additions & 3 deletions runtime/doc/debugger.txt
@@ -1,4 +1,4 @@
*debugger.txt* For Vim version 7.0aa. Last change: 2005 Jan 29
*debugger.txt* For Vim version 7.0aa. Last change: 2005 Feb 23


VIM REFERENCE MANUAL by Gordon Prieur
Expand Down Expand Up @@ -90,8 +90,8 @@ was to allow Sun's Visual WorkShop debugger to display expression evaluations.
However, the feature was implemented in as general a manner as possible and
could be used for displaying other information as well.

The Balloon Evaluation has some settable parameters too. The font list and
colors can be set via X resources (XmNballoonEvalFontList,
The Balloon Evaluation has some settable parameters too. For Motif the font
list and colors can be set via X resources (XmNballoonEvalFontList,
XmNballoonEvalBackground, and XmNballoonEvalForeground).
The 'balloondelay' option sets the delay before an attempt is made to show a
balloon.
Expand Down
64 changes: 58 additions & 6 deletions runtime/doc/eval.txt
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.0aa. Last change: 2005 Feb 21
*eval.txt* For Vim version 7.0aa. Last change: 2005 Feb 26


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -961,7 +961,7 @@ variable internal variable
See below |internal-variables|.


function call *expr-function* *E116* *E117* *E118* *E119* *E120*
function call *expr-function* *E116* *E118* *E119* *E120*
-------------
function(expr1, ...) function call
See below |functions|.
Expand Down Expand Up @@ -1270,6 +1270,10 @@ v:prevcount The count given for the last but one Normal mode command.
:vmap % <Esc>:call MyFilter(v:prevcount)<CR>
< Read-only.

*v:profiling* *profiling-variable*
v:profiling Normally zero. Set to one after using ":profile start".
See |profiling|.

*v:progname* *progname-variable*
v:progname Contains the name (with path removed) with which Vim was
invoked. Allows you to do special initialisations for "view",
Expand Down Expand Up @@ -1396,6 +1400,7 @@ did_filetype() Number TRUE if FileType autocommand event used
diff_filler( {lnum}) Number diff filler lines about {lnum}
diff_hlID( {lnum}, {col}) Number diff highlighting at {lnum}/{col}
empty( {expr}) Number TRUE if {expr} is empty
errorlist() List list of quickfix items
escape( {string}, {chars}) String escape {chars} in {string} with '\'
eval( {string}) any evaluate {string} into its value
eventhandler( ) Number TRUE if inside an event handler
Expand Down Expand Up @@ -1965,6 +1970,28 @@ empty({expr}) *empty()*
For a long List this is much faster then comparing the length
with zero.

errorlist() *errorlist()*
Returns a list with all the current quickfix errors. Each
list item is a dictionary with these entries:
bufnr number of buffer that has the file name, use
bufname() to get the name
lnum line number in the buffer (first line is 1)
col column number (first column is 1)
vcol non-zero: column number is visual column
zero: column number is byte index
nr error number
text description of the error
type type of the error, 'E', '1', etc.
valid non-zero: recognized error message

Useful application: Find pattern matches in multiple files and
do something with them: >
:vimgrep /theword/jg *.c
:for d in errorlist()
: echo bufname(d.bufnr) ':' d.lnum '=' d.text
:endfor
escape({string}, {chars}) *escape()*
Escape the characters in {chars} that occur in {string} with a
backslash. Example: >
Expand Down Expand Up @@ -3031,7 +3058,14 @@ match({expr}, {pat}[, {start}[, {count}]]) *match()*
:echo match("testing", "ing") " results in 4
:echo match([1, 'x'], '\a') " results in 2
< See |string-match| for how {pat} is used.

*strpbrk()*
Vim doesn't have a strpbrk() function. But you can do: >
:let sepidx = match(line, '[.,;: \t]')
< *strcasestr()*
Vim doesn't have a strcasestr() function. But you can add
"\c" to the pattern to ignore case: >
:let idx = match(haystack, '\cneedle')
<
When {count} is given use the {count}'th match. When a match
is found in a String the search for the next one starts on
character further. Thus this example results in 1: >
Expand Down Expand Up @@ -3063,6 +3097,13 @@ matchend({expr}, {pat}[, {start}[, {count}]]) *matchend()*
the match. Example: >
:echo matchend("testing", "ing")
< results in "7".
*strspn()* *strcspn()*
Vim doesn't have a strspn() or strcspn() function, but you can
do it with matchend(): >
:let span = matchend(line, '[a-zA-Z]')
:let span = matchend(line, '[^a-zA-Z]')
< Except that -1 is returned when there are no matches.

The {start}, if given, has the same meaning as for match(). >
:echo matchend("testing", "ing", 2)
< results in "7". >
Expand Down Expand Up @@ -3620,7 +3661,10 @@ stridx({haystack}, {needle} [, {start}]) *stridx()*
:echo stridx("An Example", "Example") 3
:echo stridx("Starting point", "Start") 0
:echo stridx("Starting point", "start") -1
<
< *strstr()* *strchr()*
stridx() works similar to the C function strstr(). When used
with a single character it works similar to strchr().

*string()*
string({expr}) Return {expr} converted to a String. If {expr} is a Number,
String or a composition of them, then the result can be parsed
Expand Down Expand Up @@ -3673,7 +3717,10 @@ strridx({haystack}, {needle} [, {start}]) *strridx()*
If the {needle} is empty the length of {haystack} is returned.
See also |stridx()|. Examples: >
:echo strridx("an angry armadillo", "an") 3
<
< *strrchr()*
When used with a single character it works similar to the C
function strrchr().

strtrans({expr}) *strtrans()*
The result is a String, which is {expr} with all unprintable
characters translated into printable characters |'isprint'|.
Expand Down Expand Up @@ -3769,7 +3816,7 @@ system({expr} [, {input}]) *system()* *E677*
When {input} is given, this string is written to a file and
passed as stdin to the command. The string is written as-is,
you need to take care of using the correct line separators
yourself.
yourself. Pipes are not used.
Note: newlines in {expr} may cause the command to fail. The
characters in 'shellquote' and 'shellxquote' may also cause
trouble.
Expand Down Expand Up @@ -4081,6 +4128,7 @@ path_extra Compiled with up/downwards search in 'path' and 'tags'
perl Compiled with Perl interface.
postscript Compiled with PostScript file printing.
printer Compiled with |:hardcopy| support.
profile Compiled with |:profile| support.
python Compiled with Python interface.
qnx QNX version of Vim.
quickfix Compiled with |quickfix| support.
Expand Down Expand Up @@ -4384,6 +4432,8 @@ the "autoload" directory in 'runtimepath'.

Using an autocommand ~

This is introduced in the user manual, section |41.14|.

The autocommand is useful if you have a plugin that is a long Vim script file.
You can define the autocommand and quickly quit the script with |:finish|.
That makes Vim startup faster. The autocommand should then load the same file
Expand All @@ -4400,6 +4450,8 @@ The file "~/vim/bufnetfuncs.vim" should then define functions that start with

Using an autoload script ~
*autoload* *E746*
This is introduced in the user manual, section |41.15|.

Using a script in the "autoload" directory is simpler, but requires using
exactly the right file name. A function that can be autoloaded has a name
like this: >
Expand Down
16 changes: 15 additions & 1 deletion runtime/doc/indent.txt
@@ -1,4 +1,4 @@
*indent.txt* For Vim version 7.0aa. Last change: 2004 Sep 02
*indent.txt* For Vim version 7.0aa. Last change: 2005 Feb 24


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -485,6 +485,20 @@ to get do loops indented in .f90 files and left alone in Fortran files with
other extensions such as .for.


PYTHON *python-indent*

The amount of indent can be set for the following situations. The examples
given are de the defaults. Note that the variables are set to an expression,
so that you can change the value of 'shiftwidth' later.

Indent after an open paren: >
let g:pyindent_open_paren = '&sw * 2'
Indent after a nested paren: >
let g:pyindent_nested_paren = '&sw'
Indent for a continuation line: >
let g:pyindent_continue = '&sw * 2'
VERILOG *verilog-indent*

General block statements such as if, for, case, always, initial, function,
Expand Down
7 changes: 5 additions & 2 deletions runtime/doc/index.txt
@@ -1,4 +1,4 @@
*index.txt* For Vim version 7.0aa. Last change: 2005 Jan 31
*index.txt* For Vim version 7.0aa. Last change: 2005 Feb 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1258,10 +1258,13 @@ The commands are sorted on the non-optional part of their name.
|:options| :opt[ions] open the options-window
|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
|:ounmenu| :ounme[nu] remove menu for Operator-pending mode
|:print| :p[rint] print lines
|:pclose| :pc[lose] close preview window
|:pedit| :ped[it] edit file in the preview window
|:perl| :pe[rl] execute Perl command
|:print| :p[rint] print lines
|:profile| :prof[ile] profiling functions and scripts
|:promptfind| :pro[mtfind] open GUI dialog for searching
|:promptrepl| :promtr[epl] open GUI dialog for search/replace
|:perldo| :perld[o] execute Perl command for each line
|:pop| :po[p] jump to older entry in tag stack
|:popup| :pop[up] popup a menu by name
Expand Down
12 changes: 8 additions & 4 deletions runtime/doc/options.txt
@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.0aa. Last change: 2005 Feb 21
*options.txt* For Vim version 7.0aa. Last change: 2005 Feb 23


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -2986,7 +2986,8 @@ A jump table for the options with a short description can be found at |Q_op|.
font names a list can be specified, font names separated with commas.
The first valid font is used.

When 'guifontset' is not empty, 'guifont' is not used.
On systems where 'guifontset' is supported (X11) and 'guifontset' is
not empty, then 'guifont' is not used.

Spaces after a comma are ignored. To include a comma in a font name
precede it with a backslash. Setting an option requires an extra
Expand All @@ -3003,7 +3004,7 @@ A jump table for the options with a short description can be found at |Q_op|.
the case of X). The font names given should be "normal" fonts. Vim
will try to find the related bold and italic fonts.

For Win32, GTK and Photon only: >
For Win32, GTK, Mac OS and Photon: >
:set guifont=*
< will bring up a font requester, where you can pick the font you want.

Expand All @@ -3013,7 +3014,10 @@ A jump table for the options with a short description can be found at |Q_op|.
For the GTK+ 2 GUI the font name looks like this: >
:set guifont=Andale\ Mono\ 11
< That's all. XLFDs are no longer accepted.
*E236*

For Mac OSX you can use something like this: >
:set guifont=Monaco:h10
< *E236*
Note that the fonts must be mono-spaced (all characters have the same
width). An exception is GTK 2: all fonts are accepted, but
mono-spaced fonts look best.
Expand Down

0 comments on commit 90c1023

Please sign in to comment.