Skip to content

Commit b45f94d

Browse files
mightyguavamarijnh
authored andcommitted
[vim keymap] Fix mapping :
1 parent a37002d commit b45f94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keymap/vim.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@
21782178
map: function(lhs, rhs) {
21792179
if (lhs.charAt(0) == ':') {
21802180
var commandName = lhs.substring(1);
2181-
if (rhs.charAt(0) == ':') {
2181+
if (rhs != ':' && rhs.charAt(0) == ':') {
21822182
// Ex to Ex mapping
21832183
this.commandMap_[commandName] = {
21842184
name: commandName,
@@ -2194,7 +2194,7 @@
21942194
};
21952195
}
21962196
} else {
2197-
if (rhs.charAt(0) == ':') {
2197+
if (rhs != ':' && rhs.charAt(0) == ':') {
21982198
// Key to Ex mapping.
21992199
defaultKeymap.unshift({
22002200
keys: parseKeyString(lhs),

0 commit comments

Comments
 (0)