On Mon, 2 Sep 2019, Tony Mechelynck wrote:
I just noticed that hitting : without a command name is a valid
ex-command which does nothing (other than going to a range if there is
one). I propose to document it, see attached patch.
The range (if present) can IIUC be any valid range, not just an
absolute line number but also e.g. a relative line number or even a
search command. If there is not even a range, then no error is given
and nothing happens, just like when reading an empty line in a sourced
script.
I don't know of what use it would be to type : with neither a range
nor a command, but who knows? OTOH it "makes logical" what happens
when typing :1234 (go to line 1234) or even :1000;/sometext (go to the
first line containing "sometext" after line 1000); and IIUC the "Vim
philosophy" is that every feature should be documented, and to my mind
"this isn't a bug, it's a feature". ;-)
i do have a use case for this feature and do employ it.
after invoking a map, the sequence of operations in the map may leave
some output in the command line window and require hitting the enter
key to continue. adding a ':<cr>' to the map will clear the command
line and allow subsequent actions to continue without interactive input.
thank you, tony, for the documentation suggestion.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/alpine.DEB.2.21.1909021444420.18979%40ckhb02.