From 6c0d3ec5aabaa2c000e148ab45db2009512afb10 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 22 Apr 2017 16:02:44 +0300 Subject: [PATCH] - Added post on how to correct the PocketCHIP keyboard mapping for Vim. --- content/pocketchip-xmodmap.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 content/pocketchip-xmodmap.rst diff --git a/content/pocketchip-xmodmap.rst b/content/pocketchip-xmodmap.rst new file mode 100644 index 0000000..a7c1745 --- /dev/null +++ b/content/pocketchip-xmodmap.rst @@ -0,0 +1,12 @@ +How to fix the PocketCHIP for Vim +################################# +:date: 2017-04-22 +:summary: How to fix the PocketCHIP for Vim + +I ordered me a PocketCHIp to have a cheap, portable Linux computer with a +physical keyboard with the added benefit if it running Debian out of the box. I +quickly discovered that in Vim the dash or minus key is not what you'd expect. A +quick search turned up that the key is mapped the numpad minus via +:code:`xmopmap`. To change the mapping to what is for me a better setting run +:code:`sed -i 's/KP_Subtract/minus/g' ~/.Xmodmap` and to apply the setting +afterward run :code:`xmodmap ~/.Xmodmap`. -- GitLab