diff --git a/common/content/mappings.js b/common/content/mappings.js index 966200bb..d5e46f19 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -221,13 +221,16 @@ function Mappings() //{{{ return; } - // ?:\s+ <- don't remember; (...)? optional = rhs let [lhs, rhs] = args; if (!rhs) // list the mapping mappings.list(mode, expandLeader(lhs)); else { + // this matches Vim's behaviour + if (/^$/i.test(rhs)) + noremap = true; + for (let [,m] in Iterator(mode)) { mappings.addUserMap([m], [lhs],