- can override settings by edit "/etc/wsl.conf"
- normally this file is not exists at first
$ sudo vi /etc/wsl.conf
[interop]
appendWindowsPath = false
# Some of this adapted from BoppreH's answer here:http://stackoverflow.com/questions/9817531/applying-low-level-keyboard-hooks-with-python-and-setwindowshookexa | |
import ctypes | |
from ctypes import wintypes | |
from collections import namedtuple | |
KeyEvents=namedtuple("KeyEvents",(['event_type', 'key_code', | |
'scan_code', 'alt_pressed', | |
'time'])) | |
handlers=[] |
#Giant dictonary to hold key name and VK value | |
VK_CODE = {'backspace':0x08, | |
'tab':0x09, | |
'clear':0x0C, | |
'enter':0x0D, | |
'shift':0x10, | |
'ctrl':0x11, | |
'alt':0x12, | |
'pause':0x13, | |
'caps_lock':0x14, |
// float->half variants. | |
// by Fabian "ryg" Giesen. | |
// | |
// I hereby place this code in the public domain, as per the terms of the | |
// CC0 license: | |
// | |
// https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// float_to_half_full: This is basically the ISPC stdlib code, except | |
// I preserve the sign of NaNs (any good reason not to?) |
" place it in ~/.vim/after/syntax/python.vim | |
" we need the conceal feature (vim ≥ 7.3) | |
if !has('conceal') | |
finish | |
endif | |
" remove the keywords. we'll re-add them below | |
syntax clear pythonOperator | |
syntax keyword pythonOperator is |