Create a gist now

Instantly share code, notes, and snippets.

@htlsne /config.py
Last active Nov 2, 2016

What would you like to do?
KeyhacのMacVim用設定ファイル
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