summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/change.txt5
-rw-r--r--runtime/doc/eval.txt20
-rw-r--r--runtime/doc/help.txt7
-rw-r--r--runtime/doc/intro.txt8
-rw-r--r--runtime/doc/options.txt8
-rw-r--r--runtime/doc/tabpage.txt4
-rw-r--r--runtime/doc/tags1
-rw-r--r--runtime/doc/todo.txt9
-rw-r--r--runtime/doc/usr_41.txt120
-rw-r--r--runtime/doc/version7.txt5
10 files changed, 138 insertions, 49 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index abb528ee1..4a321758e 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1,4 +1,4 @@
-*change.txt* For Vim version 7.0c. Last change: 2006 Mar 16
+*change.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1542,6 +1542,9 @@ found here: |sort()|.
< To sort on the text at virtual column 10 (thus
ignoring the difference between tabs and spaces): >
:sort /.*\%10v/
+< To sort on the first number in the line, no matter
+ what is in front of it: >
+ :sort /.*\ze\d/
<
Note that using ":sort" with ":global" doesn't sort the matching lines, it's
quite useless.
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 040007a15..711de353d 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.0c. Last change: 2006 Apr 06
+*eval.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1549,29 +1549,33 @@ eval( {string}) any evaluate {string} into its value
eventhandler( ) Number TRUE if inside an event handler
executable( {expr}) Number 1 if executable {expr} exists
exists( {expr}) Number TRUE if {expr} exists
+extend({expr1}, {expr2} [, {expr3}])
+ List/Dict insert items of {expr2} into {expr1}
expand( {expr}) String expand special keywords in {expr}
filereadable( {file}) Number TRUE if {file} is a readable file
+filewritable( {file}) Number TRUE if {file} is a writable file
filter( {expr}, {string}) List/Dict remove items from {expr} where
{string} is 0
finddir( {name}[, {path}[, {count}]])
- String Find directory {name} in {path}
+ String find directory {name} in {path}
findfile( {name}[, {path}[, {count}]])
- String Find file {name} in {path}
-filewritable( {file}) Number TRUE if {file} is a writable file
+ String find file {name} in {path}
fnamemodify( {fname}, {mods}) String modify file name
foldclosed( {lnum}) Number first line of fold at {lnum} if closed
foldclosedend( {lnum}) Number last line of fold at {lnum} if closed
foldlevel( {lnum}) Number fold level at {lnum}
foldtext( ) String line displayed for closed fold
+foldtextresult( {lnum}) String text for closed fold at {lnum}
foreground( ) Number bring the Vim window to the foreground
function( {name}) Funcref reference to function {name}
+garbagecollect() none free memory, breaking cyclic references
get( {list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
get( {dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
getbufline( {expr}, {lnum} [, {end}])
List lines {lnum} to {end} of buffer {expr}
+getbufvar( {expr}, {varname}) any variable {varname} in buffer {expr}
getchar( [expr]) Number get one character from the user
getcharmod( ) Number modifiers for the last typed character
-getbufvar( {expr}, {varname}) variable {varname} in buffer {expr}
getcmdline() String return the current command-line
getcmdpos() Number return cursor position in command-line
getcmdtype() String return the current command-line type
@@ -1590,7 +1594,7 @@ getreg( [{regname} [, 1]]) String contents of register
getregtype( [{regname}]) String type of register
getwinposx() Number X coord in pixels of GUI Vim window
getwinposy() Number Y coord in pixels of GUI Vim window
-getwinvar( {nr}, {varname}) variable {varname} in window {nr}
+getwinvar( {nr}, {varname}) any variable {varname} in window {nr}
glob( {expr}) String expand file wildcards in {expr}
globpath( {path}, {expr}) String do glob({expr}) for all dirs in {path}
has( {feature}) Number TRUE if feature {feature} supported
@@ -1611,6 +1615,7 @@ index( {list}, {expr} [, {start} [, {ic}]])
input( {prompt} [, {text} [, {completion}]])
String get input from the user
inputdialog( {p} [, {t} [, {c}]]) String like input() but in a GUI dialog
+inputlist( {textlist}) Number let the user pick from a choice list
inputrestore() Number restore typeahead
inputsave() Number save and clear typeahead
inputsecret( {prompt} [, {text}]) String like input() but hiding the text
@@ -1689,6 +1694,7 @@ setcmdpos( {pos}) Number set cursor position in command-line
setline( {lnum}, {line}) Number set line {lnum} to {line}
setloclist( {nr}, {list}[, {action}])
Number modify location list using {list}
+setpos( {expr}, {list}) none set the {expr} position to {list}
setqflist( {list}[, {action}]) Number modify quickfix list using {list}
setreg( {n}, {v}[, {opt}]) Number set register to value and type
setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val}
@@ -2730,7 +2736,7 @@ getfontname([{name}]) *getfontname()*
font name. If not then an empty string is returned.
Otherwise the actual font name is returned, or {name} if the
GUI does not support obtaining the real name.
- Only works when the GUI is running, thus not you your vimrc or
+ Only works when the GUI is running, thus not in your vimrc or
gvimrc file. Use the |GUIEnter| autocommand to use this
function just after the GUI has started.
Note that the GTK 2 GUI accepts any font name, thus checking
diff --git a/runtime/doc/help.txt b/runtime/doc/help.txt
index 229220f14..f6a9e2b20 100644
--- a/runtime/doc/help.txt
+++ b/runtime/doc/help.txt
@@ -171,6 +171,7 @@ Versions ~
|version4.txt| Differences between Vim version 3.0 and 4.x
|version5.txt| Differences between Vim version 4.6 and 5.x
|version6.txt| Differences between Vim version 5.7 and 6.x
+|version7.txt| Differences between Vim version 6.4 and 7.x
*sys-file-list*
Remarks about specific systems ~
|os_390.txt| OS/390 Unix
@@ -195,12 +196,6 @@ Standard plugins ~
|pi_zip.txt| Zip archive explorer
LOCAL ADDITIONS: *local-additions*
-|cecutil.txt| DrChip's Utilities Jun 11, 2004
-|example.txt| Example for a locally added help file
-|matchit.txt| Extended "%" matching
-|test.txt| Testing the hélp cömmånd nôw
-|typecorr.txt| Plugin for correcting typing mistakes
-|helpp.txt| Dummy line to avoid an error message
------------------------------------------------------------------------------
*bars* Bars example
diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt
index e9fe36937..d23fe7c55 100644
--- a/runtime/doc/intro.txt
+++ b/runtime/doc/intro.txt
@@ -1,4 +1,4 @@
-*intro.txt* For Vim version 7.0c. Last change: 2005 Sep 01
+*intro.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -94,13 +94,15 @@ mention that.
There are several mailing lists for Vim:
<vim@vim.org>
For discussions about using existing versions of Vim: Useful mappings,
- questions, answers, where to get a specific version, etc.
+ questions, answers, where to get a specific version, etc. There are
+ quite a few people watching this list and answering questions, also
+ for beginners. Don't hesitate to ask your question here.
<vim-dev@vim.org> *vim-dev* *vimdev*
For discussions about changing Vim: New features, porting, patches,
beta-test versions, etc.
<vim-announce@vim.org> *vim-announce*
Announcements about new versions of Vim; also for beta-test versions
- and ports to different systems.
+ and ports to different systems. This is a read-only list.
<vim-multibyte@vim.org> *vim-multibyte*
For discussions about using and improving the multi-byte aspects of
Vim.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index b04bb5562..1c5f5def5 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 7.0c. Last change: 2006 Apr 05
+*options.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1442,6 +1442,8 @@ A jump table for the options with a short description can be found at |Q_op|.
{not in Vi}
Number of screen lines to use for the command-line. Helps avoiding
|hit-enter| prompts.
+ The value of this option is stored with the tab page, so that each tab
+ page can have a different value.
*'cmdwinheight'* *'cwh'*
'cmdwinheight' 'cwh' number (default 7)
@@ -6522,8 +6524,8 @@ A jump table for the options with a short description can be found at |Q_op|.
'tagrelative' 'tr' boolean (Vim default: on, Vi default: off)
global
{not in Vi}
- If on and using a tag file in another directory, file names in that
- tag file are relative to the directory where the tag file is.
+ If on and using a tags file in another directory, file names in that
+ tags file are relative to the directory where the tags file is.
NOTE: This option is set to the Vi default value when 'compatible' is
set and to the Vim default value when 'compatible' is reset.
diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt
index 5439fd4db..55f12d9cc 100644
--- a/runtime/doc/tabpage.txt
+++ b/runtime/doc/tabpage.txt
@@ -1,4 +1,4 @@
-*tabpage.txt* For Vim version 7.0c. Last change: 2006 Apr 06
+*tabpage.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -205,6 +205,8 @@ files.
Variables local to a tab page start with "t:". |tabpage-variable|
+Currently there is only one option local to a tab page: 'cmdheight'.
+
The TabLeave and TabEnter autocommand events can be used to do something when
switching from one tab page to another. The exact order depends on what you
are doing. When creating a new tab page this works as if you create a new
diff --git a/runtime/doc/tags b/runtime/doc/tags
index 3daf3ba4d..4134a1da1 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -5611,6 +5611,7 @@ hebrew hebrew.txt /*hebrew*
hebrew.txt hebrew.txt /*hebrew.txt*
help various.txt /*help*
help-context help.txt /*help-context*
+help-tags tags 1
help-translated various.txt /*help-translated*
help-xterm-window various.txt /*help-xterm-window*
help.txt help.txt /*help.txt*
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index bf7f42881..8ddf52fa0 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.0c. Last change: 2006 Apr 07
+*todo.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -33,7 +33,7 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
Handle postponed prefix with COMPOUNDPERMITFLAG or COMPOUNDFORBIDFLAG.
WFP_COMPPERMIT and WFP_COMPFORBID
-":mkspell" still takes too long in Hungarian dictionary.
+":mkspell" still takes much too long in Hungarian dictionary.
Use ~/tmp/hungarian*.txt to test dictionary with.
@@ -1805,6 +1805,11 @@ Shared libraries:
Tags:
+9 With ":set tags=./tags,../tags" and a tag appears in both tags files it is
+ added twice. Requires figuring out the actual file name for each found
+ match. Remove tag_fname from the match and combine it with the fname in
+ the match (without expanding or other things that take time). When
+ 'tagrelative' is off tag_fname isn't needed at all.
7 Can CTRL-] (jump to tag) include a following "." and "->" to restrict the
number of possible matches? Check tags file for an item that has members.
(Flemming Madsen)
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 3ff134087..5b7fbb040 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -1,4 +1,4 @@
-*usr_41.txt* For Vim version 7.0c. Last change: 2006 Mar 24
+*usr_41.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM USER MANUAL - by Bram Moolenaar
@@ -577,15 +577,19 @@ used for. You can find an alphabetical list here: |functions|. Use CTRL-] on
the function name to jump to detailed help on it.
String manipulation:
- char2nr() get ASCII value of a character
nr2char() get a character by its ASCII value
+ char2nr() get ASCII value of a character
+ str2nr() convert a string to a number
+ printf() format a string according to % items
escape() escape characters in a string with a '\'
+ tr() translate characters from one set to another
strtrans() translate a string to make it printable
tolower() turn a string to lowercase
toupper() turn a string to uppercase
match() position where a pattern matches in a string
matchend() position where a pattern match ends in a string
matchstr() match of a pattern in a string
+ matchlist() like matchstr() and also return submatches
stridx() first index of a short string in a long string
strridx() last index of a short string in a long string
strlen() length of a string
@@ -594,6 +598,9 @@ String manipulation:
strpart() get part of a string
expand() expand special keywords
iconv() convert text from one encoding to another
+ byteidx() byte index of a character in a string
+ repeat() repeat a string multiple times
+ eval() evaluate a string expression
List manipulation:
get() get an item without error for wrong index
@@ -611,12 +618,14 @@ List manipulation:
reverse() reverse the order of a List
split() split a String into a List
join() join List items into a String
+ range() return a List with a sequence of numbers
string() String representation of a List
call() call a function with List as arguments
index() index of a value in a List
max() maximum value in a List
min() minimum value in a List
count() count number of times a value appears in a List
+ repeat() repeat a List multiple times
Dictionary manipulation:
get() get an entry without an error for a wrong key
@@ -637,15 +646,30 @@ Dictionary manipulation:
min() minimum value in a Dictionary
count() count number of times a value appears
-Working with text in the current buffer:
- byte2line() get line number at a specific byte count
- line2byte() byte count at a specific line
+Variables:
+ type() type of a variable
+ islocked() check if a variable is locked
+ function() get a Funcref for a function name
+ getbufvar() get a variable value from a specific buffer
+ setbufvar() set a variable in a specific buffer
+ getwinvar() get a variable value from a specific window
+ setwinvar() set a variable in a specific window
+ garbagecollect() possibly free memory
+
+Cursor and mark position:
col() column number of the cursor or a mark
virtcol() screen column of the cursor or a mark
line() line number of the cursor or mark
wincol() window column number of the cursor
winline() window line number of the cursor
cursor() position the cursor at a line/column
+ getpos() get position of cursor, mark, etc.
+ setpos() set position of cursor, mark, etc.
+ byte2line() get line number at a specific byte count
+ line2byte() byte count at a specific line
+ diff_filler() get the number of filler lines above a line
+
+Working with text in the current buffer:
getline() get a line or list of lines from the buffer
setline() replace a line in the buffer
append() append line or list of lines in the buffer
@@ -658,24 +682,27 @@ Working with text in the current buffer:
searchpos() find a match for a pattern
searchpair() find the other end of a start/skip/end
searchpairpos() find the other end of a start/skip/end
+ searchdecl() search for the declaration of a name
System functions and manipulation of files:
- browse() put up a file requester
glob() expand wildcards
globpath() expand wildcards in a number of directories
+ findfile() find a file in a list of directories
+ finddir() find a directory in a list of directories
resolve() find out where a shortcut points to
fnamemodify() modify a file name
+ pathshorten() shorten directory names in a path
+ simplify() simplify a path without changing its meaning
executable() check if an executable program exists
filereadable() check if a file can be read
filewritable() check if a file can be written to
- mkdir() create a new directory
+ getfperm() get the permissions of a file
+ getftype() get the kind of a file
isdirectory() check if a directory exists
- getcwd() get the current working directory
getfsize() get the size of a file
- getftime() get last modification time of a file
- localtime() get current time
- strftime() convert time to a string
+ getcwd() get the current working directory
tempname() get the name of a temporary file
+ mkdir() create a new directory
delete() delete a file
rename() rename a file
system() get the result of a shell command
@@ -683,6 +710,13 @@ System functions and manipulation of files:
readfile() read a file into a List of lines
writefile() write a List of lines into a file
+Date and Time:
+ getftime() get last modification time of a file
+ localtime() get current time in seconds
+ strftime() convert time to a string
+ reltime() get the current or elapsed time accurately
+ reltimestr() convert reltime() result to a string
+
Buffers, windows and the argument list:
argc() number of entries in the argument list
argidx() current position in the argument list
@@ -692,27 +726,52 @@ Buffers, windows and the argument list:
bufloaded() check if a buffer exists and is loaded
bufname() get the name of a specific buffer
bufnr() get the buffer number of a specific buffer
+ tabpagebuflist() return List of buffers in a tab page
+ tabpagenr() get the number of a tab page
+ tabpagewinnr() like winnr() for a specified tab page
winnr() get the window number for the current window
bufwinnr() get the window number of a specific buffer
winbufnr() get the buffer number of a specific window
getbufline() get a list of lines from the specified buffer
- getbufvar() get a variable value from a specific buffer
- setbufvar() set a variable in a specific buffer
- getwinvar() get a variable value from a specific window
- setwinvar() set a variable in a specific window
+
+Command line:
+ getcmdline() get the current command line
+ getcmdpos() get position of the cursor in the command line
+ setcmdpos() set position of the cursor in the command line
+ getcmdtype() return the current command-line type
+
+Quickfix and location lists:
+ getqflist() list of quickfix errors
+ setqflist() modify a quickfix list
+ getloclist() list of location list items
+ setloclist() modify a location list
+
+Insert mode completion:
+ complete() set found matches
+ complete_add() add to found matches
+ complete_check() check if completion should be aborted
+ pumvisible() check if the popup menu is displayed
Folding:
foldclosed() check for a closed fold at a specific line
foldclosedend() like foldclosed() but return the last line
foldlevel() check for the fold level at a specific line
foldtext() generate the line displayed for a closed fold
+ foldtextresult() get the text displayed for a closed fold
-Syntax highlighting:
+Syntax and highlighting:
hlexists() check if a highlight group exists
hlID() get ID of a highlight group
synID() get syntax ID at a specific position
synIDattr() get a specific attribute of a syntax ID
synIDtrans() get translated syntax ID
+ diff_hlID() get highlight ID for diff mode at a position
+ matcharg() get info about |:match| arguments
+
+Spelling:
+ spellbadword() locate badly spelled word at or after cursor
+ spellsuggest() return suggested spelling corrections
+ soundfold() return the sound-a-like equivalent of a word
History:
histadd() add an item to a history
@@ -721,15 +780,23 @@ History:
histnr() get highest index of a history list
Interactive:
+ browse() put up a file requester
+ browsedir() put up a directory requester
confirm() let the user make a choice
getchar() get a character from the user
getcharmod() get modifiers for the last typed character
input() get a line from the user
+ inputlist() let the user pick an entry from a list
inputsecret() get a line from the user without showing it
inputdialog() get a line from the user in a dialog
inputsave() save and clear typeahead
inputrestore() restore typeahead
+GUI:
+ getfontname() get name of current font being used
+ getwinposx() X position of the GUI Vim window
+ getwinposy() Y position of the GUI Vim window
+
Vim server:
serverlist() return the list of server names
remote_send() send command characters to a Vim server
@@ -740,8 +807,14 @@ Vim server:
foreground() move the Vim window to the foreground
remote_foreground() move the Vim server window to the foreground
+Window size and position:
+ winheight() get height of a specific window
+ winwidth() get width of a specific window
+ winrestcmd() return command to restore window sizes
+ winsaveview() get view of current window
+ winrestview() restore saved view of current window
+
Various:
- type() type of a variable
mode() get current editing mode
visualmode() last visual mode used
hasmapto() check if a mapping exists
@@ -749,23 +822,20 @@ Various:
maparg() get rhs of a mapping
exists() check if a variable, function, etc. exists
has() check if a feature is supported in Vim
- getqflist() list of quickfix errors
- getloclist() list of location list items
+ changenr() return number of most recent change
cscope_connection() check if a cscope connection exists
did_filetype() check if a FileType autocommand was used
eventhandler() check if invoked by an event handler
- getwinposx() X position of the GUI Vim window
- getwinposy() Y position of the GUI Vim window
- winheight() get height of a specific window
- winwidth() get width of a specific window
+
libcall() call a function in an external library
libcallnr() idem, returning a number
+
getreg() get contents of a register
getregtype() get type of a register
- setqflist() modify a quickfix list
- setloclist() modify a location list
setreg() set contents and type of a register
+
taglist() get list of matching tags
+ tagfiles() get a list of tags files
==============================================================================
*41.7* Defining a function
diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt
index 1cac881cf..8bd9dad1f 100644
--- a/runtime/doc/version7.txt
+++ b/runtime/doc/version7.txt
@@ -1,4 +1,4 @@
-*version7.txt* For Vim version 7.0c. Last change: 2006 Apr 07
+*version7.txt* For Vim version 7.0c. Last change: 2006 Apr 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2411,4 +2411,7 @@ needed on the spell file.
glob('/dir/\$ABC/*') didn't work.
+When using several tab pages and changing 'cmdheight' the display could become
+messed up. Now store the value of 'cmdheight' separately for each tab page.
+
vim:tw=78:ts=8:ft=help:norl: