1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 18:44:12 +01:00

add filename completion to :mkvimperatorrc

This commit is contained in:
Doug Kearns
2008-10-02 04:52:09 +00:00
parent b7267adb21
commit 48885a5f1a

View File

@@ -256,7 +256,18 @@ liberator.IO = function () //{{{
line += "\nsource! " + filename + ".local\n";
line += "\n\" vim: set ft=vimperator:";
liberator.io.writeFile(file, line);
try
{
liberator.io.writeFile(file, line);
}
catch (e)
{
liberator.echoerr("E190: Cannot open \"" + filename + "\" for writing");
liberator.log("Could not write to " + file.path + ": " + e.message); // XXX
}
},
{
completer: function (filter) liberator.completion.file(filter, true)
});
liberator.commands.add(["ru[ntime]"],