Add a rough :tabdo command.

This commit is contained in:
Doug Kearns committed 2009-04-30 22:21:32 +10:00
1 parent cb74c7f40c
commit 2fdc555c75
4 files changed
+37 -7

No files matched your search

+16
View File
@@ -359,6 +359,22 @@ function Tabs() //{{{
literal: 0
});
commands.add(["tabd[o]", "bufd[o]"],
"Execute a command in each tab",
function (args)
{
for (let i = 0; i < tabs.count; i++)
{
tabs.select(i);
liberator.execute(args.string);
}
},
{
argCount: "1",
completer: function (context) completion.ex(context),
literal: 0
});
commands.add(["tabl[ast]", "bl[ast]"],
"Switch to the last tab",
function () tabs.select("$", false),