diff options
-rw-r--r-- | runtime/doc/lua.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/ui.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 300d809854..e8543b5ece 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2638,6 +2638,8 @@ vim.ui.open({path}, {opt}) *vim.ui.open()* `explorer.exe`, Linux `xdg-open`, …), or returns (but does not show) an error message on failure. + Can also be invoked with `:Open`. *:Open* + Expands "~/" and environment variables in filesystem paths. Examples: >lua diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua index cd159f0172..ae6138770a 100644 --- a/runtime/lua/vim/ui.lua +++ b/runtime/lua/vim/ui.lua @@ -108,6 +108,8 @@ end --- Opens `path` with the system default handler (macOS `open`, Windows `explorer.exe`, Linux --- `xdg-open`, …), or returns (but does not show) an error message on failure. --- +--- Can also be invoked with `:Open`. [:Open]() +--- --- Expands "~/" and environment variables in filesystem paths. --- --- Examples: |