vim-patch:7.4.1728

patch 7.4.1728
Problem:    The help for functions require a space after the "(".
Solution:   Make CTRL-] on a function name ignore the arguments. (Hirohito
            Higashi)

81edd171a9
This commit is contained in:
Michael Ennen 2016-05-09 23:37:51 -07:00 committed by James McCoy
parent 850f91c51c
commit c3c409c70f
4 changed files with 281 additions and 265 deletions

View File

@ -1776,374 +1776,373 @@ See |function-list| for a list grouped by what the function is used for.
USAGE RESULT DESCRIPTION ~ USAGE RESULT DESCRIPTION ~
abs( {expr}) Float or Number absolute value of {expr} abs({expr}) Float or Number absolute value of {expr}
acos( {expr}) Float arc cosine of {expr} acos({expr}) Float arc cosine of {expr}
add( {list}, {item}) List append {item} to |List| {list} add({list}, {item}) List append {item} to |List| {list}
and( {expr}, {expr}) Number bitwise AND and({expr}, {expr}) Number bitwise AND
append( {lnum}, {string}) Number append {string} below line {lnum} append({lnum}, {string}) Number append {string} below line {lnum}
append( {lnum}, {list}) Number append lines {list} below line {lnum} append({lnum}, {list}) Number append lines {list} below line {lnum}
argc() Number number of files in the argument list argc() Number number of files in the argument list
argidx() Number current index in the argument list argidx() Number current index in the argument list
arglistid( [{winnr} [, {tabnr}]]) arglistid([{winnr} [, {tabnr}]]) Number argument list id
Number argument list id argv({nr}) String {nr} entry of the argument list
argv( {nr}) String {nr} entry of the argument list argv() List the argument list
argv( ) List the argument list assert_equal({exp}, {act} [, {msg}]) none assert {exp} equals {act}
assert_equal( {exp}, {act} [, {msg}]) none assert {exp} equals {act}
assert_exception({error} [, {msg}]) none assert {error} is in v:exception assert_exception({error} [, {msg}]) none assert {error} is in v:exception
assert_false( {actual} [, {msg}]) none assert {actual} is false assert_false({actual} [, {msg}]) none assert {actual} is false
assert_true( {actual} [, {msg}]) none assert {actual} is true assert_true({actual} [, {msg}]) none assert {actual} is true
asin( {expr}) Float arc sine of {expr} asin({expr}) Float arc sine of {expr}
atan( {expr}) Float arc tangent of {expr} atan({expr}) Float arc tangent of {expr}
atan2( {expr}, {expr}) Float arc tangent of {expr1} / {expr2} atan2({expr}, {expr}) Float arc tangent of {expr1} / {expr2}
browse( {save}, {title}, {initdir}, {default}) browse({save}, {title}, {initdir}, {default})
String put up a file requester String put up a file requester
browsedir( {title}, {initdir}) String put up a directory requester browsedir({title}, {initdir}) String put up a directory requester
bufexists( {expr}) Number TRUE if buffer {expr} exists bufexists({expr}) Number TRUE if buffer {expr} exists
buflisted( {expr}) Number TRUE if buffer {expr} is listed buflisted({expr}) Number TRUE if buffer {expr} is listed
bufloaded( {expr}) Number TRUE if buffer {expr} is loaded bufloaded({expr}) Number TRUE if buffer {expr} is loaded
bufname( {expr}) String Name of the buffer {expr} bufname({expr}) String Name of the buffer {expr}
bufnr( {expr} [, {create}]) Number Number of the buffer {expr} bufnr({expr} [, {create}]) Number Number of the buffer {expr}
bufwinnr( {expr}) Number window number of buffer {expr} bufwinnr({expr}) Number window number of buffer {expr}
byte2line( {byte}) Number line number at byte count {byte} byte2line({byte}) Number line number at byte count {byte}
byteidx( {expr}, {nr}) Number byte index of {nr}'th char in {expr} byteidx({expr}, {nr}) Number byte index of {nr}'th char in {expr}
byteidxcomp( {expr}, {nr}) Number byte index of {nr}'th char in {expr} byteidxcomp({expr}, {nr}) Number byte index of {nr}'th char in {expr}
call( {func}, {arglist} [, {dict}]) call({func}, {arglist} [, {dict}])
any call {func} with arguments {arglist} any call {func} with arguments {arglist}
ceil( {expr}) Float round {expr} up ceil({expr}) Float round {expr} up
changenr() Number current change number changenr() Number current change number
char2nr( {expr}[, {utf8}]) Number ASCII/UTF8 value of first char in {expr} char2nr({expr}[, {utf8}]) Number ASCII/UTF8 value of first char in {expr}
cindent( {lnum}) Number C indent for line {lnum} cindent({lnum}) Number C indent for line {lnum}
clearmatches() none clear all matches clearmatches() none clear all matches
col( {expr}) Number column nr of cursor or mark col({expr}) Number column nr of cursor or mark
complete( {startcol}, {matches}) none set Insert mode completion complete({startcol}, {matches}) none set Insert mode completion
complete_add( {expr}) Number add completion match complete_add({expr}) Number add completion match
complete_check() Number check for key typed during completion complete_check() Number check for key typed during completion
confirm( {msg} [, {choices} [, {default} [, {type}]]]) confirm({msg} [, {choices} [, {default} [, {type}]]])
Number number of choice picked by user Number number of choice picked by user
copy( {expr}) any make a shallow copy of {expr} copy({expr}) any make a shallow copy of {expr}
cos( {expr}) Float cosine of {expr} cos({expr}) Float cosine of {expr}
cosh( {expr}) Float hyperbolic cosine of {expr} cosh({expr}) Float hyperbolic cosine of {expr}
count( {list}, {expr} [, {ic} [, {start}]]) count({list}, {expr} [, {ic} [, {start}]])
Number count how many {expr} are in {list} Number count how many {expr} are in {list}
cscope_connection( [{num} , {dbpath} [, {prepend}]]) cscope_connection([{num} , {dbpath} [, {prepend}]])
Number checks existence of cscope connection Number checks existence of cscope connection
cursor( {lnum}, {col} [, {off}]) cursor({lnum}, {col} [, {off}])
Number move cursor to {lnum}, {col}, {off} Number move cursor to {lnum}, {col}, {off}
cursor( {list}) Number move cursor to position in {list} cursor({list}) Number move cursor to position in {list}
deepcopy( {expr} [, {noref}]) any make a full copy of {expr} deepcopy({expr} [, {noref}]) any make a full copy of {expr}
delete( {fname} [, {flags}]) Number delete the file or directory {fname} delete({fname} [, {flags}]) Number delete the file or directory {fname}
dictwatcheradd( {dict}, {pattern}, {callback}) dictwatcheradd({dict}, {pattern}, {callback})
Start watching a dictionary Start watching a dictionary
dictwatcherdel( {dict}, {pattern}, {callback}) dictwatcherdel({dict}, {pattern}, {callback})
Stop watching a dictionary Stop watching a dictionary
did_filetype() Number TRUE if FileType autocommand event used did_filetype() Number TRUE if FileType autocommand event used
diff_filler( {lnum}) Number diff filler lines about {lnum} diff_filler({lnum}) Number diff filler lines about {lnum}
diff_hlID( {lnum}, {col}) Number diff highlighting at {lnum}/{col} diff_hlID({lnum}, {col}) Number diff highlighting at {lnum}/{col}
empty( {expr}) Number TRUE if {expr} is empty empty({expr}) Number TRUE if {expr} is empty
escape( {string}, {chars}) String escape {chars} in {string} with '\' escape({string}, {chars}) String escape {chars} in {string} with '\'
eval( {string}) any evaluate {string} into its value eval({string}) any evaluate {string} into its value
eventhandler( ) Number TRUE if inside an event handler eventhandler() Number TRUE if inside an event handler
executable( {expr}) Number 1 if executable {expr} exists executable({expr}) Number 1 if executable {expr} exists
exepath( {expr}) String full path of the command {expr} exepath({expr}) String full path of the command {expr}
exists( {expr}) Number TRUE if {expr} exists exists({expr}) Number TRUE if {expr} exists
extend( {expr1}, {expr2} [, {expr3}]) extend({expr1}, {expr2} [, {expr3}])
List/Dict insert items of {expr2} into {expr1} List/Dict insert items of {expr2} into {expr1}
exp( {expr}) Float exponential of {expr} exp({expr}) Float exponential of {expr}
expand( {expr} [, {nosuf} [, {list}]]) expand({expr} [, {nosuf} [, {list}]])
any expand special keywords in {expr} any expand special keywords in {expr}
feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer feedkeys({string} [, {mode}]) Number add key sequence to typeahead buffer
filereadable( {file}) Number TRUE if {file} is a readable file filereadable({file}) Number TRUE if {file} is a readable file
filewritable( {file}) Number TRUE if {file} is a writable file filewritable({file}) Number TRUE if {file} is a writable file
filter( {expr}, {string}) List/Dict remove items from {expr} where filter({expr}, {string}) List/Dict remove items from {expr} where
{string} is 0 {string} is 0
finddir( {name}[, {path}[, {count}]]) finddir({name}[, {path}[, {count}]])
String find directory {name} in {path} String find directory {name} in {path}
findfile( {name}[, {path}[, {count}]]) findfile({name}[, {path}[, {count}]])
String find file {name} in {path} String find file {name} in {path}
float2nr( {expr}) Number convert Float {expr} to a Number float2nr({expr}) Number convert Float {expr} to a Number
floor( {expr}) Float round {expr} down floor({expr}) Float round {expr} down
fmod( {expr1}, {expr2}) Float remainder of {expr1} / {expr2} fmod({expr1}, {expr2}) Float remainder of {expr1} / {expr2}
fnameescape( {fname}) String escape special characters in {fname} fnameescape({fname}) String escape special characters in {fname}
fnamemodify( {fname}, {mods}) String modify file name fnamemodify({fname}, {mods}) String modify file name
foldclosed( {lnum}) Number first line of fold at {lnum} if closed foldclosed({lnum}) Number first line of fold at {lnum} if closed
foldclosedend( {lnum}) Number last 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} foldlevel({lnum}) Number fold level at {lnum}
foldtext( ) String line displayed for closed fold foldtext() String line displayed for closed fold
foldtextresult( {lnum}) String text for closed fold at {lnum} foldtextresult({lnum}) String text for closed fold at {lnum}
foreground( ) Number bring the Vim window to the foreground foreground() Number bring the Vim window to the foreground
function( {name}) Funcref reference to function {name} function({name}) Funcref reference to function {name}
garbagecollect( [{atexit}]) none free memory, breaking cyclic references garbagecollect([{atexit}]) none free memory, breaking cyclic references
get( {list}, {idx} [, {def}]) any get item {idx} from {list} or {def} get({list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
get( {dict}, {key} [, {def}]) any get item {key} from {dict} or {def} get({dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
getbufline( {expr}, {lnum} [, {end}]) getbufline({expr}, {lnum} [, {end}])
List lines {lnum} to {end} of buffer {expr} List lines {lnum} to {end} of buffer {expr}
getbufvar( {expr}, {varname} [, {def}]) getbufvar({expr}, {varname} [, {def}])
any variable {varname} in buffer {expr} any variable {varname} in buffer {expr}
getchar( [expr]) Number get one character from the user getchar([expr]) Number get one character from the user
getcharmod( ) Number modifiers for the last typed character getcharmod() Number modifiers for the last typed character
getcharsearch() Dict last character search getcharsearch() Dict last character search
getcmdline() String return the current command-line getcmdline() String return the current command-line
getcmdpos() Number return cursor position in command-line getcmdpos() Number return cursor position in command-line
getcmdtype() String return current command-line type getcmdtype() String return current command-line type
getcmdwintype() String return current command-line window type getcmdwintype() String return current command-line window type
getcurpos() List position of the cursor getcurpos() List position of the cursor
getcwd( [{scope}]) String the current working directory getcwd([{scope}]) String the current working directory
getfontname( [{name}]) String name of font being used getfontname([{name}]) String name of font being used
getfperm( {fname}) String file permissions of file {fname} getfperm({fname}) String file permissions of file {fname}
getfsize( {fname}) Number size in bytes of file {fname} getfsize({fname}) Number size in bytes of file {fname}
getftime( {fname}) Number last modification time of file getftime({fname}) Number last modification time of file
getftype( {fname}) String description of type of file {fname} getftype({fname}) String description of type of file {fname}
getline( {lnum}) String line {lnum} of current buffer getline({lnum}) String line {lnum} of current buffer
getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer getline({lnum}, {end}) List lines {lnum} to {end} of current buffer
getloclist( {nr}) List list of location list items getloclist({nr}) List list of location list items
getmatches() List list of current matches getmatches() List list of current matches
getpid() Number process ID of Vim getpid() Number process ID of Vim
getpos( {expr}) List position of cursor, mark, etc. getpos({expr}) List position of cursor, mark, etc.
getqflist() List list of quickfix items getqflist() List list of quickfix items
getreg( [{regname} [, 1 [, {list}]]]) getreg([{regname} [, 1 [, {list}]]])
String or List contents of register String or List contents of register
getregtype( [{regname}]) String type of register getregtype([{regname}]) String type of register
gettabvar( {nr}, {varname} [, {def}]) gettabvar({nr}, {varname} [, {def}])
any variable {varname} in tab {nr} or {def} any variable {varname} in tab {nr} or {def}
gettabwinvar( {tabnr}, {winnr}, {name} [, {def}]) gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
any {name} in {winnr} in tab page {tabnr} any {name} in {winnr} in tab page {tabnr}
getwinposx() Number X coord in pixels of GUI Vim window getwinposx() Number X coord in pixels of GUI Vim window
getwinposy() Number Y coord in pixels of GUI Vim window getwinposy() Number Y coord in pixels of GUI Vim window
getwinvar( {nr}, {varname} [, {def}]) getwinvar({nr}, {varname} [, {def}])
any variable {varname} in window {nr} any variable {varname} in window {nr}
glob( {expr} [, {nosuf} [, {list} [, {alllinks}]]]) glob({expr} [, {nosuf} [, {list} [, {alllinks}]]])
any expand file wildcards in {expr} any expand file wildcards in {expr}
glob2regpat( {expr}) String convert a glob pat into a search pat glob2regpat({expr}) String convert a glob pat into a search pat
globpath( {path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]]) globpath({path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
String do glob({expr}) for all dirs in {path} String do glob({expr}) for all dirs in {path}
has( {feature}) Number TRUE if feature {feature} supported has({feature}) Number TRUE if feature {feature} supported
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key} has_key({dict}, {key}) Number TRUE if {dict} has entry {key}
haslocaldir() Number TRUE if current window executed |:lcd| haslocaldir() Number TRUE if current window executed |:lcd|
hasmapto( {what} [, {mode} [, {abbr}]]) hasmapto({what} [, {mode} [, {abbr}]])
Number TRUE if mapping to {what} exists Number TRUE if mapping to {what} exists
histadd( {history},{item}) String add an item to a history histadd({history},{item}) String add an item to a history
histdel( {history} [, {item}]) String remove an item from a history histdel({history} [, {item}]) String remove an item from a history
histget( {history} [, {index}]) String get the item {index} from a history histget({history} [, {index}]) String get the item {index} from a history
histnr( {history}) Number highest index of a history histnr({history}) Number highest index of a history
hlexists( {name}) Number TRUE if highlight group {name} exists hlexists({name}) Number TRUE if highlight group {name} exists
hlID( {name}) Number syntax ID of highlight group {name} hlID({name}) Number syntax ID of highlight group {name}
hostname() String name of the machine Vim is running on hostname() String name of the machine Vim is running on
iconv( {expr}, {from}, {to}) String convert encoding of {expr} iconv({expr}, {from}, {to}) String convert encoding of {expr}
indent( {lnum}) Number indent of line {lnum} indent({lnum}) Number indent of line {lnum}
index( {list}, {expr} [, {start} [, {ic}]]) index({list}, {expr} [, {start} [, {ic}]])
Number index in {list} where {expr} appears Number index in {list} where {expr} appears
input( {prompt} [, {text} [, {completion}]]) input({prompt} [, {text} [, {completion}]])
String get input from the user String get input from the user
inputdialog( {p} [, {t} [, {c}]]) String like input() but in a GUI dialog inputdialog({p} [, {t} [, {c}]]) String like input() but in a GUI dialog
inputlist( {textlist}) Number let the user pick from a choice list inputlist({textlist}) Number let the user pick from a choice list
inputrestore() Number restore typeahead inputrestore() Number restore typeahead
inputsave() Number save and clear typeahead inputsave() Number save and clear typeahead
inputsecret( {prompt} [, {text}]) inputsecret({prompt} [, {text}])
String like input() but hiding the text String like input() but hiding the text
insert( {list}, {item} [, {idx}]) insert({list}, {item} [, {idx}])
List insert {item} in {list} [before {idx}] List insert {item} in {list} [before {idx}]
invert( {expr}) Number bitwise invert invert({expr}) Number bitwise invert
isdirectory( {directory}) Number TRUE if {directory} is a directory isdirectory({directory}) Number TRUE if {directory} is a directory
islocked( {expr}) Number TRUE if {expr} is locked islocked({expr}) Number TRUE if {expr} is locked
items( {dict}) List key-value pairs in {dict} items({dict}) List key-value pairs in {dict}
jobclose( {job}[, {stream}]) Number Closes a job stream(s) jobclose({job}[, {stream}]) Number Closes a job stream(s)
jobpid( {job}) Number Returns pid of a job. jobpid({job}) Number Returns pid of a job.
jobresize( {job}, {width}, {height}) jobresize({job}, {width}, {height})
Number Resize {job}'s pseudo terminal window Number Resize {job}'s pseudo terminal window
jobsend( {job}, {data}) Number Writes {data} to {job}'s stdin jobsend({job}, {data}) Number Writes {data} to {job}'s stdin
jobstart( {cmd}[, {opts}]) Number Spawns {cmd} as a job jobstart({cmd}[, {opts}]) Number Spawns {cmd} as a job
jobstop( {job}) Number Stops a job jobstop({job}) Number Stops a job
jobwait( {ids}[, {timeout}]) Number Wait for a set of jobs jobwait({ids}[, {timeout}]) Number Wait for a set of jobs
join( {list} [, {sep}]) String join {list} items into one String join({list} [, {sep}]) String join {list} items into one String
json_decode( {expr}) any Convert {expr} from JSON json_decode({expr}) any Convert {expr} from JSON
json_encode( {expr}) String Convert {expr} to JSON json_encode({expr}) String Convert {expr} to JSON
keys( {dict}) List keys in {dict} keys({dict}) List keys in {dict}
len( {expr}) Number the length of {expr} len({expr}) Number the length of {expr}
libcall( {lib}, {func}, {arg}) String call {func} in library {lib} with {arg} libcall({lib}, {func}, {arg}) String call {func} in library {lib} with {arg}
libcallnr( {lib}, {func}, {arg}) Number idem, but return a Number libcallnr({lib}, {func}, {arg}) Number idem, but return a Number
line( {expr}) Number line nr of cursor, last line or mark line({expr}) Number line nr of cursor, last line or mark
line2byte( {lnum}) Number byte count of line {lnum} line2byte({lnum}) Number byte count of line {lnum}
lispindent( {lnum}) Number Lisp indent for line {lnum} lispindent({lnum}) Number Lisp indent for line {lnum}
localtime() Number current time localtime() Number current time
log( {expr}) Float natural logarithm (base e) of {expr} log({expr}) Float natural logarithm (base e) of {expr}
log10( {expr}) Float logarithm of Float {expr} to base 10 log10({expr}) Float logarithm of Float {expr} to base 10
map( {expr}, {string}) List/Dict change each item in {expr} to {expr} map({expr}, {string}) List/Dict change each item in {expr} to {expr}
maparg( {name}[, {mode} [, {abbr} [, {dict}]]]) maparg({name}[, {mode} [, {abbr} [, {dict}]]])
String or Dict String or Dict
rhs of mapping {name} in mode {mode} rhs of mapping {name} in mode {mode}
mapcheck( {name}[, {mode} [, {abbr}]]) mapcheck({name}[, {mode} [, {abbr}]])
String check for mappings matching {name} String check for mappings matching {name}
match( {expr}, {pat}[, {start}[, {count}]]) match({expr}, {pat}[, {start}[, {count}]])
Number position where {pat} matches in {expr} Number position where {pat} matches in {expr}
matchadd( {group}, {pattern}[, {priority}[, {id}]]) matchadd({group}, {pattern}[, {priority}[, {id}]])
Number highlight {pattern} with {group} Number highlight {pattern} with {group}
matchaddpos( {group}, {list}[, {priority}[, {id}]]) matchaddpos({group}, {list}[, {priority}[, {id}]])
Number highlight positions with {group} Number highlight positions with {group}
matcharg( {nr}) List arguments of |:match| matcharg({nr}) List arguments of |:match|
matchdelete( {id}) Number delete match identified by {id} matchdelete({id}) Number delete match identified by {id}
matchend( {expr}, {pat}[, {start}[, {count}]]) matchend({expr}, {pat}[, {start}[, {count}]])
Number position where {pat} ends in {expr} Number position where {pat} ends in {expr}
matchlist( {expr}, {pat}[, {start}[, {count}]]) matchlist({expr}, {pat}[, {start}[, {count}]])
List match and submatches of {pat} in {expr} List match and submatches of {pat} in {expr}
matchstr( {expr}, {pat}[, {start}[, {count}]]) matchstr({expr}, {pat}[, {start}[, {count}]])
String {count}'th match of {pat} in {expr} String {count}'th match of {pat} in {expr}
max( {list}) Number maximum value of items in {list} max({list}) Number maximum value of items in {list}
min( {list}) Number minimum value of items in {list} min({list}) Number minimum value of items in {list}
mkdir( {name} [, {path} [, {prot}]]) mkdir({name} [, {path} [, {prot}]])
Number create directory {name} Number create directory {name}
mode( [expr]) String current editing mode mode([expr]) String current editing mode
msgpackdump( {list}) List dump a list of objects to msgpack msgpackdump({list}) List dump a list of objects to msgpack
msgpackparse( {list}) List parse msgpack to a list of objects msgpackparse({list}) List parse msgpack to a list of objects
nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} nextnonblank({lnum}) Number line nr of non-blank line >= {lnum}
nr2char( {expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr} nr2char({expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr}
or( {expr}, {expr}) Number bitwise OR or({expr}, {expr}) Number bitwise OR
pathshorten( {expr}) String shorten directory names in a path pathshorten({expr}) String shorten directory names in a path
pow( {x}, {y}) Float {x} to the power of {y} pow({x}, {y}) Float {x} to the power of {y}
prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} prevnonblank({lnum}) Number line nr of non-blank line <= {lnum}
printf( {fmt}, {expr1}...) String format text printf({fmt}, {expr1}...) String format text
pumvisible() Number whether popup menu is visible pumvisible() Number whether popup menu is visible
pyeval( {expr}) any evaluate |Python| expression pyeval({expr}) any evaluate |Python| expression
py3eval( {expr}) any evaluate |python3| expression py3eval({expr}) any evaluate |python3| expression
range( {expr} [, {max} [, {stride}]]) range({expr} [, {max} [, {stride}]])
List items from {expr} to {max} List items from {expr} to {max}
readfile( {fname} [, {binary} [, {max}]]) readfile({fname} [, {binary} [, {max}]])
List get list of lines from file {fname} List get list of lines from file {fname}
reltime( [{start} [, {end}]]) List get time value reltime([{start} [, {end}]]) List get time value
reltimefloat( {time}) Float turn the time value into a Float reltimefloat({time}) Float turn the time value into a Float
reltimestr( {time}) String turn time value into a String reltimestr({time}) String turn time value into a String
remote_expr( {server}, {string} [, {idvar}]) remote_expr({server}, {string} [, {idvar}])
String send expression String send expression
remote_foreground( {server}) Number bring Vim server to the foreground remote_foreground({server}) Number bring Vim server to the foreground
remote_peek( {serverid} [, {retvar}]) remote_peek({serverid} [, {retvar}])
Number check for reply string Number check for reply string
remote_read( {serverid}) String read reply string remote_read({serverid}) String read reply string
remote_send( {server}, {string} [, {idvar}]) remote_send({server}, {string} [, {idvar}])
String send key sequence String send key sequence
remove( {list}, {idx} [, {end}]) any remove items {idx}-{end} from {list} remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list}
remove( {dict}, {key}) any remove entry {key} from {dict} remove({dict}, {key}) any remove entry {key} from {dict}
rename( {from}, {to}) Number rename (move) file from {from} to {to} rename({from}, {to}) Number rename (move) file from {from} to {to}
repeat( {expr}, {count}) String repeat {expr} {count} times repeat({expr}, {count}) String repeat {expr} {count} times
resolve( {filename}) String get filename a shortcut points to resolve({filename}) String get filename a shortcut points to
reverse( {list}) List reverse {list} in-place reverse({list}) List reverse {list} in-place
round( {expr}) Float round off {expr} round({expr}) Float round off {expr}
rpcnotify( {channel}, {event}[, {args}...]) rpcnotify({channel}, {event}[, {args}...])
Sends a |msgpack-rpc| notification to {channel} Sends a |msgpack-rpc| notification to {channel}
rpcrequest( {channel}, {method}[, {args}...]) rpcrequest({channel}, {method}[, {args}...])
Sends a |msgpack-rpc| request to {channel} Sends a |msgpack-rpc| request to {channel}
rpcstart( {prog}[, {argv}]) Spawns {prog} and opens a |msgpack-rpc| channel rpcstart({prog}[, {argv}]) Spawns {prog} and opens a |msgpack-rpc| channel
rpcstop( {channel}) Closes a |msgpack-rpc| {channel} rpcstop({channel}) Closes a |msgpack-rpc| {channel}
screenattr( {row}, {col}) Number attribute at screen position screenattr({row}, {col}) Number attribute at screen position
screenchar( {row}, {col}) Number character at screen position screenchar({row}, {col}) Number character at screen position
screencol() Number current cursor column screencol() Number current cursor column
screenrow() Number current cursor row screenrow() Number current cursor row
search( {pattern} [, {flags} [, {stopline} [, {timeout}]]]) search({pattern} [, {flags} [, {stopline} [, {timeout}]]])
Number search for {pattern} Number search for {pattern}
searchdecl( {name} [, {global} [, {thisblock}]]) searchdecl({name} [, {global} [, {thisblock}]])
Number search for variable declaration Number search for variable declaration
searchpair( {start}, {middle}, {end} [, {flags} [, {skip} [...]]]) searchpair({start}, {middle}, {end} [, {flags} [, {skip} [...]]])
Number search for other end of start/end pair Number search for other end of start/end pair
searchpairpos( {start}, {middle}, {end} [, {flags} [, {skip} [...]]]) searchpairpos({start}, {middle}, {end} [, {flags} [, {skip} [...]]])
List search for other end of start/end pair List search for other end of start/end pair
searchpos( {pattern} [, {flags} [, {stopline} [, {timeout}]]]) searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]])
List search for {pattern} List search for {pattern}
server2client( {clientid}, {string}) server2client({clientid}, {string})
Number send reply string Number send reply string
serverlist() String get a list of available servers serverlist() String get a list of available servers
setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} setbufvar({expr}, {varname}, {val}) set {varname} in buffer {expr} to {val}
setcharsearch( {dict}) Dict set character search from {dict} setcharsearch({dict}) Dict set character search from {dict}
setcmdpos( {pos}) Number set cursor position in command-line setcmdpos({pos}) Number set cursor position in command-line
setline( {lnum}, {line}) Number set line {lnum} to {line} setline({lnum}, {line}) Number set line {lnum} to {line}
setloclist( {nr}, {list}[, {action}[, {title}]]) setloclist({nr}, {list}[, {action}[, {title}]])
Number modify location list using {list} Number modify location list using {list}
setmatches( {list}) Number restore a list of matches setmatches({list}) Number restore a list of matches
setpos( {expr}, {list}) Number set the {expr} position to {list} setpos({expr}, {list}) Number set the {expr} position to {list}
setqflist( {list}[, {action}[, {title}]] setqflist({list}[, {action}[, {title}]]
Number modify quickfix list using {list} Number modify quickfix list using {list}
setreg( {n}, {v}[, {opt}]) Number set register to value and type setreg({n}, {v}[, {opt}]) Number set register to value and type
settabvar( {nr}, {varname}, {val}) set {varname} in tab page {nr} to {val} settabvar({nr}, {varname}, {val}) set {varname} in tab page {nr} to {val}
settabwinvar( {tabnr}, {winnr}, {varname}, {val}) set {varname} in window settabwinvar({tabnr}, {winnr}, {varname}, {val}) set {varname} in window
{winnr} in tab page {tabnr} to {val} {winnr} in tab page {tabnr} to {val}
setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val} setwinvar({nr}, {varname}, {val}) set {varname} in window {nr} to {val}
sha256( {string}) String SHA256 checksum of {string} sha256({string}) String SHA256 checksum of {string}
shellescape( {string} [, {special}]) shellescape({string} [, {special}])
String escape {string} for use as shell String escape {string} for use as shell
command argument command argument
shiftwidth() Number effective value of 'shiftwidth' shiftwidth() Number effective value of 'shiftwidth'
simplify( {filename}) String simplify filename as much as possible simplify({filename}) String simplify filename as much as possible
sin( {expr}) Float sine of {expr} sin({expr}) Float sine of {expr}
sinh( {expr}) Float hyperbolic sine of {expr} sinh({expr}) Float hyperbolic sine of {expr}
sort( {list} [, {func} [, {dict}]]) sort({list} [, {func} [, {dict}]])
List sort {list}, using {func} to compare List sort {list}, using {func} to compare
soundfold( {word}) String sound-fold {word} soundfold({word}) String sound-fold {word}
spellbadword() String badly spelled word at cursor spellbadword() String badly spelled word at cursor
spellsuggest( {word} [, {max} [, {capital}]]) spellsuggest({word} [, {max} [, {capital}]])
List spelling suggestions List spelling suggestions
split( {expr} [, {pat} [, {keepempty}]]) split({expr} [, {pat} [, {keepempty}]])
List make |List| from {pat} separated {expr} List make |List| from {pat} separated {expr}
sqrt( {expr}) Float square root of {expr} sqrt({expr}) Float square root of {expr}
str2float( {expr}) Float convert String to Float str2float({expr}) Float convert String to Float
str2nr( {expr} [, {base}]) Number convert String to Number str2nr({expr} [, {base}]) Number convert String to Number
strchars( {expr} [, {skipcc}]) Number character length of the String {expr} strchars({expr} [, {skipcc}]) Number character length of the String {expr}
strdisplaywidth( {expr} [, {col}]) Number display length of the String {expr} strdisplaywidth({expr} [, {col}]) Number display length of the String {expr}
strftime( {format}[, {time}]) String time in specified format strftime({format}[, {time}]) String time in specified format
stridx( {haystack}, {needle}[, {start}]) stridx({haystack}, {needle}[, {start}])
Number index of {needle} in {haystack} Number index of {needle} in {haystack}
string( {expr}) String String representation of {expr} value string({expr}) String String representation of {expr} value
strlen( {expr}) Number length of the String {expr} strlen({expr}) Number length of the String {expr}
strpart( {src}, {start}[, {len}]) strpart({src}, {start}[, {len}])
String {len} characters of {src} at {start} String {len} characters of {src} at {start}
strridx( {haystack}, {needle} [, {start}]) strridx({haystack}, {needle} [, {start}])
Number last index of {needle} in {haystack} Number last index of {needle} in {haystack}
strtrans( {expr}) String translate string to make it printable strtrans({expr}) String translate string to make it printable
strwidth( {expr}) Number display cell length of the String {expr} strwidth({expr}) Number display cell length of the String {expr}
submatch( {nr}[, {list}]) String or List submatch({nr}[, {list}]) String or List
specific match in ":s" or substitute() specific match in ":s" or substitute()
substitute( {expr}, {pat}, {sub}, {flags}) substitute({expr}, {pat}, {sub}, {flags})
String all {pat} in {expr} replaced with {sub} String all {pat} in {expr} replaced with {sub}
synID( {lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} synID({lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col}
synIDattr( {synID}, {what} [, {mode}]) synIDattr({synID}, {what} [, {mode}])
String attribute {what} of syntax ID {synID} String attribute {what} of syntax ID {synID}
synIDtrans( {synID}) Number translated syntax ID of {synID} synIDtrans({synID}) Number translated syntax ID of {synID}
synconcealed( {lnum}, {col}) List info about concealing synconcealed({lnum}, {col}) List info about concealing
synstack( {lnum}, {col}) List stack of syntax IDs at {lnum} and {col} synstack({lnum}, {col}) List stack of syntax IDs at {lnum} and {col}
system( {cmd} [, {input}]) String output of shell command/filter {cmd} system({cmd} [, {input}]) String output of shell command/filter {cmd}
systemlist( {cmd} [, {input}]) List output of shell command/filter {cmd} systemlist({cmd} [, {input}]) List output of shell command/filter {cmd}
tabpagebuflist( [{arg}]) List list of buffer numbers in tab page tabpagebuflist([{arg}]) List list of buffer numbers in tab page
tabpagenr( [{arg}]) Number number of current or last tab page tabpagenr([{arg}]) Number number of current or last tab page
tabpagewinnr( {tabarg}[, {arg}]) tabpagewinnr({tabarg}[, {arg}])
Number number of current window in tab page Number number of current window in tab page
taglist( {expr}) List list of tags matching {expr} taglist({expr}) List list of tags matching {expr}
tagfiles() List tags files used tagfiles() List tags files used
tempname() String name for a temporary file tempname() String name for a temporary file
tan( {expr}) Float tangent of {expr} tan({expr}) Float tangent of {expr}
tanh( {expr}) Float hyperbolic tangent of {expr} tanh({expr}) Float hyperbolic tangent of {expr}
tolower( {expr}) String the String {expr} switched to lowercase tolower({expr}) String the String {expr} switched to lowercase
toupper( {expr}) String the String {expr} switched to uppercase toupper({expr}) String the String {expr} switched to uppercase
tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr} tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
to chars in {tostr} to chars in {tostr}
trunc( {expr}) Float truncate Float {expr} trunc({expr}) Float truncate Float {expr}
type( {name}) Number type of variable {name} type({name}) Number type of variable {name}
undofile( {name}) String undo file name for {name} undofile({name}) String undo file name for {name}
undotree() List undo file tree undotree() List undo file tree
uniq( {list} [, {func} [, {dict}]]) uniq({list} [, {func} [, {dict}]])
List remove adjacent duplicates from a list List remove adjacent duplicates from a list
values( {dict}) List values in {dict} values({dict}) List values in {dict}
virtcol( {expr}) Number screen column of cursor or mark virtcol({expr}) Number screen column of cursor or mark
visualmode( [expr]) String last visual mode used visualmode([expr]) String last visual mode used
wildmenumode() Number whether 'wildmenu' mode is active wildmenumode() Number whether 'wildmenu' mode is active
winbufnr( {nr}) Number buffer number of window {nr} winbufnr({nr}) Number buffer number of window {nr}
wincol() Number window column of the cursor wincol() Number window column of the cursor
winheight( {nr}) Number height of window {nr} winheight({nr}) Number height of window {nr}
winline() Number window line of the cursor winline() Number window line of the cursor
winnr( [{expr}]) Number number of current window winnr([{expr}]) Number number of current window
winrestcmd() String returns command to restore window sizes winrestcmd() String returns command to restore window sizes
winrestview( {dict}) none restore view of current window winrestview({dict}) none restore view of current window
winsaveview() Dict save view of current window winsaveview() Dict save view of current window
winwidth( {nr}) Number width of window {nr} winwidth({nr}) Number width of window {nr}
wordcount() Dict get byte/char/word statistics wordcount() Dict get byte/char/word statistics
writefile( {list}, {fname} [, {flags}]) writefile({list}, {fname} [, {flags}])
Number write list of lines to file {fname} Number write list of lines to file {fname}
xor( {expr}, {expr}) Number bitwise XOR xor({expr}, {expr}) Number bitwise XOR
abs({expr}) *abs()* abs({expr}) *abs()*
Return the absolute value of {expr}. When {expr} evaluates to Return the absolute value of {expr}. When {expr} evaluates to
@ -5780,7 +5779,7 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *searchpos()*
< In this example "submatch" is 2 when a lowercase letter is < In this example "submatch" is 2 when a lowercase letter is
found |/\l|, 3 when an uppercase letter is found |/\u|. found |/\l|, 3 when an uppercase letter is found |/\u|.
server2client( {clientid}, {string}) *server2client()* server2client({clientid}, {string}) *server2client()*
Send a reply string to {clientid}. The most recent {clientid} Send a reply string to {clientid}. The most recent {clientid}
that sent a string can be retrieved with expand("<client>"). that sent a string can be retrieved with expand("<client>").
{only available when compiled with the |+clientserver| feature} {only available when compiled with the |+clientserver| feature}
@ -6302,7 +6301,7 @@ sqrt({expr}) *sqrt()*
"nan" may be different, it depends on system libraries. "nan" may be different, it depends on system libraries.
str2float( {expr}) *str2float()* str2float({expr}) *str2float()*
Convert String {expr} to a Float. This mostly works the same Convert String {expr} to a Float. This mostly works the same
as when using a floating point number in an expression, see as when using a floating point number in an expression, see
|floating-point-format|. But it's a bit more permissive. |floating-point-format|. But it's a bit more permissive.
@ -6316,7 +6315,7 @@ str2float( {expr}) *str2float()*
let f = str2float(substitute(text, ',', '', 'g')) let f = str2float(substitute(text, ',', '', 'g'))
str2nr( {expr} [, {base}]) *str2nr()* str2nr({expr} [, {base}]) *str2nr()*
Convert string {expr} to a number. Convert string {expr} to a number.
{base} is the conversion base, it can be 2, 8, 10 or 16. {base} is the conversion base, it can be 2, 8, 10 or 16.
When {base} is omitted base 10 is used. This also means that When {base} is omitted base 10 is used. This also means that

View File

@ -4487,6 +4487,12 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
*d++ = *s; *d++ = *s;
// If tag contains "({" or "([", tag terminates at the "(".
// This is for help on functions, e.g.: abs({expr}).
if (*s == '(' && (s[1] == '{' || s[1] =='[')) {
break;
}
/* /*
* If tag starts with ', toss everything after a second '. Fixes * If tag starts with ', toss everything after a second '. Fixes
* CTRL-] on 'option'. (would include the trailing '.'). * CTRL-] on 'option'. (would include the trailing '.').

View File

@ -27,4 +27,14 @@ func Test_help_tagjump()
call assert_equal("help", &filetype) call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'buflisted'\\*") call assert_true(getline('.') =~ "\\*'buflisted'\\*")
helpclose helpclose
exec "help! abs({expr})"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*abs()\*')
helpclose
exec "help! arglistid([{winnr})"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*arglistid()\*')
helpclose
endfunc endfunc

View File

@ -76,6 +76,7 @@ static int included_patches[] = {
1757, 1757,
1755, 1755,
1753, 1753,
1728,
1654, 1654,
1652, 1652,
1643, 1643,