1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 13:37:58 +01:00

saving abbreviations with :mkvimperatorrc works; also added :source! ~/.vimperatorrc.local to :mkv

This commit is contained in:
Martin Stubenschrott
2007-11-02 00:57:13 +00:00
parent baebe6978c
commit 5dac5326a5
3 changed files with 33 additions and 8 deletions

View File

@@ -394,7 +394,18 @@ vimperator.Editor = function() //{{{
}
// Abbreviations {{{
// TODO: won't save into vimperatorrc? with mkvimperatorrc
// FIXME: iabbr foo bar and cabbr foo abc can't exist at the same time.
this.abbreviations = {};
this.abbreviations.__iterator__ = function ()
{
var tmpCmd;
for (var item in abbrev)
{
tmpCmd = (abbrev[item][1] == "!") ? "abbreviate" : abbrev[item][1] + "abbrev";
yield (tmpCmd + " " + item + " " + abbrev[item][0] + "\n");
}
}
// filter is i, c or "!" (insert or command abbreviations or both)
this.listAbbreviations = function(filter, lhs)