buffer source not showing up in : type cmdline when enabled #1996
-
In my local text = vim.fn.getcmdline()
if
text:match("^[: ]*%%?%s*s%s*%W")
or text:match("^[: ]*'<,'>%s*s%s*%W")
or text:match("^[: ]*%d+%s*,%s*%d+%s*s%s*%W")
then
return { "buffer" } -- substitute command
end the idea being that when I use the substitute command, text from the buffer would be suggested instead of nothing (as it was with the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You're lucky, this has been implemented in v1.4.0, just turn on See also issue #1625 |
Beta Was this translation helpful? Give feedback.
You're lucky, this has been implemented in v1.4.0, just turn on
sources.providers.buffer.opts.enable_in_ex_commands
.See also issue #1625