On Aug 4, 2:21 pm, googler <[email protected]> wrote:
> I want to define a command using ":command" and want to specify range
> as part of the command. For example, if my command is called MyCmd, I
> can run something like this - :100,150 MyCmd. Now, I see that there
> are some options regarding the default range vim chooses in the case I
> do not specify one. It can be the current line or the entire file.
> However, my requirement is a little different. In some cases, the user
> may not specify a range with this command. In those cases, I want the
> called function to know that no range has been passed and it will work
> a little differently in those cases (for example, it will choose the
> last highlighted region as the range). Can this be done? Thanks.

I didn't get any reply to this, so I just wanted to follow up in case
it wasn't noticed earlier. Thanks :)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to