On Wed, September 30, 2009 11:13 am, Jan Kaspar wrote:
> On Wed, Sep 30, 2009 at 10:44 AM, Christian Brabandt
>> :com! -complete=file TabEdit :exe ( tabpagenr() - 1 ) . "tabedit " .
>> <q-args>
>> (one line)
>
> Cool! I had to add -narg option:
>
> com! -narg=1 -complete=file TabEdit :exe ( tabpagenr() - 1 ) . "tabedit "

You mean -nargs?`
Actually I think -nargs=? is even better, as it behaves like :tabedit
does. (e.g. if you do not specify a file name, it will open a new empty
buffer).

regards,
Christian
-- 
:wq!


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

Reply via email to