Skip to content

Instantly share code, notes, and snippets.

@dinhtungdu
Last active December 7, 2016 05:10
Show Gist options
  • Save dinhtungdu/e5a5a0ebb31a7978efe336aae4752161 to your computer and use it in GitHub Desktop.
Save dinhtungdu/e5a5a0ebb31a7978efe336aae4752161 to your computer and use it in GitHub Desktop.
Key remapping for VIM and tmux user on Ubuntu
#!/usr/bin/env bash
if [ -s ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap
fi
clear Lock
keycode 66 = Escape NoSymbol Escape # This map Cap Lock key to ESC
keycode 9 = grave asciitilde grave asciitilde # This map ESC on 60% layout to backtick key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment