Skip to content- Sources: primary
- Summary: A commit by Justin M. Keyes lets the three API functions take a String that C splits at newlines without copying, about 2x faster than vim.split() and about 20% faster than a prebuilt table. The parameters are renamed to lines and text, docs add api-string and api-lines definitions, and runtime code such as man.lua, vim.net and vim.snippet now passes strings directly.
- Why it matters: Plugin authors can drop vim.split() before buffer writes for a measurable speedup, while api_info now reports the parameter type as Object.