diff options
author | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-03 07:07:51 +0600 |
---|---|---|
committer | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-11 01:01:03 +0600 |
commit | e1edc079dd0d0cb4a53e5998086568cf9d10a26a (patch) | |
tree | eb60874111545e69847809a765c8dc6921e37aa2 /runtime/doc/repeat.txt | |
parent | 92b6b3764cf75d01bcbf04fcf598140fc01e7902 (diff) | |
download | rneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.tar.gz rneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.tar.bz2 rneovim-e1edc079dd0d0cb4a53e5998086568cf9d10a26a.zip |
refactor(source): Move lua file detection to do_source
So now :source can run lua files too :)
* feat: Add support for :[ranged]source for lua files
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r-- | runtime/doc/repeat.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index c7806398d8..6755747dcf 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -172,9 +172,11 @@ Using Vim scripts *using-scripts* For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|. *:so* *:source* *load-vim-script* -:so[urce] {file} Read Ex commands from {file}. These are commands that - start with a ":". +:so[urce] {file} Runs vim or lua {file} Triggers the |SourcePre| autocommand. + + Note: Only files ending with `.lua` is sourced as + lua file. Anything else is assumed to be vimscript. *:source!* :so[urce]! {file} Read Vim commands from {file}. These are commands that are executed from Normal mode, like you type |