On Wed, Sep 30, 2009 at 10:44 AM, Christian Brabandt <[email protected]>wrote:
> > On Wed, September 30, 2009 10:27 am, Jan Kaspar wrote: > > would you know of a simple way how to edit a file in a new tab before the > > current one. Just like :tabe, but to place the new tab before rather than > > after the current tabe. > > untested: > :com! -complete=file TabEdit :exe ( tabpagenr() - 1 ) . "tabedit " . > <q-args> > (one line) > > and then use :TabEdit > Cool! I had to add -narg option: com! -narg=1 -complete=file TabEdit :exe ( tabpagenr() - 1 ) . "tabedit " . <q-args> and then it works just as expected. Thanks, Kašpi. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
