improve multiline vim.cmd() example

references #81
This commit is contained in:
Timothée Sterle 2021-09-17 19:17:47 +02:00
parent 9e5ebc9184
commit 0406898fb1
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

View File

@ -495,11 +495,13 @@ Alias for `vim.api.nvim_exec()`. Only the command argument is needed, `output` i
```lua
vim.cmd('buffers')
vim.cmd([[
let g:multiline =<< EOF
foo
bar
baz
EOF
let g:multiline_list = [
\ 1,
\ 2,
\ 3,
\ ]
echo g:multiline_list
]])
```