Skip to content

Instantly share code, notes, and snippets.

@nhanb
Created January 29, 2015 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhanb/b2ace236ed04e90e78c1 to your computer and use it in GitHub Desktop.
Save nhanb/b2ace236ed04e90e78c1 to your computer and use it in GitHub Desktop.
From d976a64f560510125bfddf02bd892d42bc94e5b5 Mon Sep 17 00:00:00 2001
From: nhanb <nhan@nerdyweekly.com>
Date: Thu, 29 Jan 2015 21:42:52 +0700
Subject: [PATCH] add 'j' to WordBreakSyms
I type in VNI style so `j` doesn't need to be processed by unikey at
all. Making `j` a WordBreakSym prevents unikey from hijacking my `jj`
keymap in vim.
---
src/unikey-im.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/unikey-im.cpp b/src/unikey-im.cpp
index 126e329..7573763 100644
--- a/src/unikey-im.cpp
+++ b/src/unikey-im.cpp
@@ -85,7 +85,7 @@ static const unsigned char WordBreakSyms[] =
',', ';', ':', '.', '\"', '\'', '!', '?', ' ',
'<', '>', '=', '+', '-', '*', '/', '\\',
'_', '~', '`', '@', '#', '$', '%', '^', '&', '(', ')', '{', '}', '[', ']',
- '|'
+ '|', 'j'
};
static const unsigned char WordAutoCommit[] =
--
1.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment