doc: Lua [ci skip] #11378

- Rework :help lua-commands
- Rename if_lua.txt => lua.txt
This commit is contained in:
Justin M. Keyes
2019-11-17 19:06:59 -08:00
committed by GitHub
parent 54402d6b8f
commit af53a0c012
12 changed files with 1063 additions and 992 deletions

View File

@@ -167,8 +167,7 @@ end
---
--- Example: To remove ANSI color codes when pasting:
--- <pre>
--- vim.paste = (function()
--- local overridden = vim.paste
--- vim.paste = (function(overridden)
--- return function(lines, phase)
--- for i,line in ipairs(lines) do
--- -- Scrub ANSI color codes from paste input.
@@ -176,7 +175,7 @@ end
--- end
--- overridden(lines, phase)
--- end
--- end)()
--- end)(vim.paste)
--- </pre>
---
--@see |paste|