Add section on :luafile

This commit is contained in:
Timothée Sterle 2020-07-22 23:29:07 +02:00
parent f224b353ce
commit 5a612e7476
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

View File

@ -138,6 +138,18 @@ See also:
### :luafile ### :luafile
This command sources a lua file.
```vim
:luafile ~/foo/bar/baz/myluafile.lua
```
It is analogous to the `:source` command for .vim files or the built-in `dofile()` function in Lua.
See also:
- `:help :luafile`
### luaeval() ### luaeval()
### v:lua ### v:lua