Permalink
Browse files

[vim keymap] Fix mapping :

  • Loading branch information...
1 parent 14eb2a3 commit cc6548d07e41d0c1d2de30d2b777a2b50e03c961 @mightyguava mightyguava committed with marijnh Dec 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 keymap/vim.js
View
@@ -2097,7 +2097,7 @@
map: function(lhs, rhs) {
if (lhs.charAt(0) == ':') {
var commandName = lhs.substring(1);
- if (rhs.charAt(0) == ':') {
+ if (rhs != ':' && rhs.charAt(0) == ':') {
// Ex to Ex mapping
this.commandMap_[commandName] = {
name: commandName,
@@ -2113,7 +2113,7 @@
};
}
} else {
- if (rhs.charAt(0) == ':') {
+ if (rhs != ':' && rhs.charAt(0) == ':') {
// Key to Ex mapping.
defaultKeymap.unshift({
keys: parseKeyString(lhs),

0 comments on commit cc6548d

Please sign in to comment.