VIM: built-in functions

Ascii Value of a Character : <code>char2nr()</code> ---- opposite: <code>nr2char</code>
line("$")
line("'t")
line(".")

col(...)

Setting the cursor:

cursor(line, column)
See also getpos() (which returns a list)

Asking the user

echo confirm("is this ok?", "&Yes\n&No")
Make "No" the default choice
echo confirm("is this ok?", "&Yes\n&No\n&Don't know", 2)

List / Directory Commands

add()
filter()
empty()
remove()
copy()
deepcopy()
count()
get()
index()
insert()
items()   " dict only
join()    " list only
keys()    " dict only
values()  " dict only
len()
map()
max()
min()
range()   " list only
remove()
repeat()  " also for strings
reverse()
sort()
split()   " returns a list
function()
getbufvar()
setbufvar()
getline()
setline()
getbufline()
getchar()     "checks also for mouse clicks
gecharmod()
input()
inputsecret()
inputdialog()
inputlist()
inputsave()
inputrestore()
getcmdline(),
getcmdpos(),
getcmdtype()
setcmdpos()
getreg()
setreg()
getregtype()
remote_expr()
remote_foreground()
remote_peek()
remote_read()
remote_send()
server2client()
serverlist()

results matching ""

    No results matching ""