docs: misc

Co-authored-by: Jan Weinkauff <jan@weinkauff.cloud>
Co-authored-by: MeanderingProgrammer <meanderingprogrammer@gmail.com>
Co-authored-by: Yochem van Rosmalen <git@yochem.nl>
Co-authored-by: phanium <91544758+phanen@users.noreply.github.com>
This commit is contained in:
dundargoc
2025-05-18 16:09:30 +02:00
committed by Christian Clason
parent 1deba926c4
commit 4367441213
9 changed files with 38 additions and 18 deletions

View File

@@ -3511,7 +3511,7 @@ M.funcs = {
Examples: >vim
let bufmodified = getbufvar(1, "&mod")
echo "todo myvar = " .. getbufvar("todo", "myvar")
<
]=],
name = 'getbufvar',
params = { { 'buf', 'integer|string' }, { 'varname', 'string' }, { 'def', 'any' } },
@@ -5047,7 +5047,7 @@ M.funcs = {
Examples: >vim
let list_is_on = getwinvar(2, '&list')
echo "myvar = " .. getwinvar(1, 'myvar')
<
]=],
name = 'getwinvar',
params = { { 'winnr', 'integer' }, { 'varname', 'string' }, { 'def', 'any' } },
@@ -5821,7 +5821,7 @@ M.funcs = {
Example: >vim
let color = inputlist(['Select color:', '1. red',
\ '2. green', '3. blue'])
<
]=],
name = 'inputlist',
params = { { 'textlist', 'string[]' } },
@@ -6400,7 +6400,7 @@ M.funcs = {
object code must be compiled as position-independent ('PIC').
Examples: >vim
echo libcall("libc.so", "getenv", "HOME")
<
]=],
name = 'libcall',
params = { { 'libname', 'string' }, { 'funcname', 'string' }, { 'argument', 'any' } },
@@ -10256,7 +10256,7 @@ M.funcs = {
You can also change the type of a register by appending
nothing: >vim
call setreg('a', '', 'al')
<
]=],
name = 'setreg',
params = { { 'regname', 'string' }, { 'value', 'any' }, { 'options', 'string' } },
@@ -10356,7 +10356,7 @@ M.funcs = {
Examples: >vim
call setwinvar(1, "&list", 0)
call setwinvar(2, "myvar", "foobar")
<
]=],
name = 'setwinvar',
params = { { 'nr', 'integer' }, { 'varname', 'string' }, { 'val', 'any' } },
@@ -10861,7 +10861,7 @@ M.funcs = {
" Remove all the placed signs from all the buffers
call sign_unplace('*')
<
]=],
name = 'sign_unplace',
params = { { 'group', 'string' }, { 'dict', 'vim.fn.sign_unplace.dict' } },
@@ -11572,7 +11572,7 @@ M.funcs = {
echo strftime("%H:%M") " 11:55
echo strftime("%c", getftime("file.c"))
" Show mod time of file.c.
<
]=],
name = 'strftime',
params = { { 'format', 'string' }, { 'time', 'number' } },
@@ -11961,6 +11961,7 @@ M.funcs = {
let &directory = '.'
let swapfiles = swapfilelist()
let &directory = save_dir
<
]=],
name = 'swapfilelist',
params = {},