Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
vim
module namespace. Some of the plugins are
loaded by default while others are not loaded until requested by :packadd.vim.g.editorconfig = false
let g:editorconfig = v:false
). It can also be disabled
per-buffer by setting the b:editorconfig buffer-local variable to false
.false
..editorconfig
file, and (optionally) a table containing all of the other
properties and their values (useful for properties which depend on other
properties). The value is always a string and must be coerced if necessary.
Example:require('editorconfig').properties.foo = function(bufnr, val, opts)
if opts.charset and opts.charset ~= "utf-8" then
error("foo can only be set when charset is utf-8", 0)
end
vim.b[bufnr].foo = val
end
"utf-8"
, "utf-8-bom"
, "latin1"
, "utf-16be"
, or
"utf-16le"
. Sets the 'fileencoding' and 'bomb' options."lf"
, "crlf"
, or "cr"
. These correspond to setting
'fileformat' to "unix", "dos", or "mac", respectively."true"
or "false"
to ensure the file always has a trailing newline as
its last byte. Sets the 'fixendofline' and 'endofline' options..editorconfig
files in parent
directories. This property must be at the top-level of the .editorconfig
file (i.e. it must not be within a glob section)."true"
, trailing whitespace is automatically removed when the
buffer is written.{file}
:TOhtml{file}
. If {file}
is not
given, a temporary file (created by tempname()) is used.{winid}
, {opt}
) tohtml.tohtml(){winid}
to HTML and returns the
output as a list of string.{winid}
(integer?
) Window to convert (defaults to current window)
{opt}
(table?
) Optional parameters.
{title}
(string|false
, default: buffer name) Title tag
to set in the generated HTML code.
{number_lines}
(boolean
, default: false
) Show line
numbers.
{font}
(string[]|string
, default: guifont
) Fonts to
use.
{width}
(integer
, default: 'textwidth' if non-zero or
window width otherwise) Width used for items which are
either right aligned or repeat a character infinitely.
{range}
(integer[]
, default: entire buffer) Range of
rows to use.
string[]
)