Mercurial > vim
comparison runtime/doc/if_lua.txt @ 25881:2ee0425960fe v8.2.3474
patch 8.2.3474: some places use "Vimscript" instead of "Vim script"
Commit: https://github.com/vim/vim/commit/965d2edbce1a8ccba96925be5ac4575981f68949
Author: h-east <h.east.727@gmail.com>
Date: Mon Oct 4 21:51:57 2021 +0100
patch 8.2.3474: some places use "Vimscript" instead of "Vim script"
Problem: Some places use "Vimscript" instead of "Vim script".
Solution: Consistently use "Vim script". (Hirohito Higashi, closes https://github.com/vim/vim/issues/8910)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Oct 2021 23:00:05 +0200 |
parents | 29ec2c198c8d |
children | f8116058ca76 |
comparison
equal
deleted
inserted
replaced
25880:9c221ad9634a | 25881:2ee0425960fe |
---|---|
225 patch - latest patch included. | 225 patch - latest patch included. |
226 | 226 |
227 *lua-vim-variables* | 227 *lua-vim-variables* |
228 The Vim editor global dictionaries |g:| |w:| |b:| |t:| |v:| can be accessed | 228 The Vim editor global dictionaries |g:| |w:| |b:| |t:| |v:| can be accessed |
229 from Lua conveniently and idiomatically by referencing the `vim.*` Lua tables | 229 from Lua conveniently and idiomatically by referencing the `vim.*` Lua tables |
230 described below. In this way you can easily read and modify global Vimscript | 230 described below. In this way you can easily read and modify global Vim script |
231 variables from Lua. | 231 variables from Lua. |
232 | 232 |
233 Example: > | 233 Example: > |
234 | 234 |
235 vim.g.foo = 5 -- Set the g:foo Vimscript variable. | 235 vim.g.foo = 5 -- Set the g:foo Vim script variable. |
236 print(vim.g.foo) -- Get and print the g:foo Vimscript variable. | 236 print(vim.g.foo) -- Get and print the g:foo Vim script variable. |
237 vim.g.foo = nil -- Delete (:unlet) the Vimscript variable. | 237 vim.g.foo = nil -- Delete (:unlet) the Vim script variable. |
238 | 238 |
239 vim.g *vim.g* | 239 vim.g *vim.g* |
240 Global (|g:|) editor variables. | 240 Global (|g:|) editor variables. |
241 Key with no value returns `nil`. | 241 Key with no value returns `nil`. |
242 | 242 |