Last active
November 2, 2016 08:20
-
-
Save hiterm/4ee9406e88a2c782c2d0b05b04ed3560 to your computer and use it in GitHub Desktop.
KeyhacのMacVim用設定ファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import datetime | |
import subprocess | |
from keyhac import * | |
def configure(keymap): | |
# -------------------------------------------------------------------- | |
# Text editer setting for editting config.py file | |
# Setting with program file path (Simple usage) | |
if 1: | |
# keymap.editor = "TextEdit" | |
#keymap.editor = "Sublime Text 2" | |
keymap.editor = "MacVim" | |
# -------------------------------------------------------------------- | |
# Customizing the display | |
# Font | |
keymap.setFont( "Osaka-Mono", 16 ) | |
# Theme | |
keymap.setTheme("black") | |
# -------------------------------------------------------------------- | |
# MacVim key customization | |
if 1: | |
keymap_macvim = keymap.defineWindowKeymap( app_name="org.vim.MacVim" ) | |
keymap_macvim[ "Esc" ] = "(102)", "Esc" | |
keymap_macvim[ "LCtrl-CloseBracket" ] = "(102)", "Esc" | |
if 1: | |
keymap_iterm2 = keymap.defineWindowKeymap( app_name="com.googlecode.iterm2" ) | |
keymap_iterm2[ "Esc" ] = "(102)", "Esc" | |
keymap_iterm2[ "LCtrl-CloseBracket" ] = "(102)", "Esc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment