Skip to content
Browse files

Merge branch 'master' of github.com:kmnk/config

  • Loading branch information...
2 parents 5e67323 + b06e2c4 commit 14233d0eee7f1cfc6df5f1a348e4f95284908582 @kmnk committed Oct 12, 2012
View
33 dotfiles/dot.keyremap4macbook
@@ -37,15 +37,6 @@
<autogen>--KeyToKey-- KeyCode::JIS_COLON, KeyCode::KEY_7, ModifierFlag::SHIFT_L</autogen>
</item>
<item>
- <name>OneShotModifier Setting</name>
- <item>
- <name>LeftControl</name>
- <appendix>OneShot LeftControl send Escape</appendix>
- <identifier>remap.kmnk_oneshotmodifier_control_l</identifier>
- <autogen>--KeyOverlaidModifier-- KeyCode::CONTROL_L, KeyCode::CONTROL_L, KeyCode::ESCAPE</autogen>
- </item>
- </item>
- <item>
<name>Extend Binds</name>
<item>
<name>Move Keys not for human</name>
@@ -65,9 +56,11 @@
<!-- eisuu -->
<autogen>--KeyToKey-- KeyCode::JIS_EISUU, ModifierFlag::SHIFT_L, KeyCode::JIS_HAT, ModifierFlag::SHIFT_L</autogen>
<autogen>--KeyToKey-- KeyCode::JIS_EISUU, ModifierFlag::CONTROL_L, KeyCode::JIS_HAT</autogen>
+ <autogen>--KeyToKey-- KeyCode::JIS_EISUU, ModifierFlag::COMMAND_L, KeyCode::A, ModifierFlag::OPTION_L</autogen>
<!-- kana -->
<autogen>--KeyToKey-- KeyCode::JIS_KANA, ModifierFlag::SHIFT_L, KeyCode::JIS_UNDERSCORE</autogen>
<autogen>--KeyToKey-- KeyCode::JIS_KANA, ModifierFlag::CONTROL_L, KeyCode::MINUS</autogen>
+ <autogen>--KeyToKey-- KeyCode::JIS_KANA, ModifierFlag::COMMAND_L, KeyCode::C, ModifierFlag::OPTION_L</autogen>
<!-- right command -->
<autogen>--KeyToKey-- KeyCode::COMMAND_R, ModifierFlag::SHIFT_L, KeyCode::SEMICOLON, ModifierFlag::SHIFT_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, ModifierFlag::CONTROL_L, KeyCode::MINUS, ModifierFlag::SHIFT_L</autogen>
@@ -97,6 +90,28 @@
<autogen>--KeyToKey-- KeyCode::DOT, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L, KeyCode::FORWARD_DELETE</autogen>
</item>
</item>
+ <item>
+ <name>OneShotModifier Setting</name>
+ <item>
+ <name>LeftControl</name>
+ <appendix>OneShot LeftControl send Escape</appendix>
+ <identifier>remap.kmnk_oneshotmodifier_control_l</identifier>
+ <autogen>--KeyOverlaidModifier-- KeyCode::CONTROL_L, KeyCode::CONTROL_L, KeyCode::ESCAPE</autogen>
+ </item>
+ <item>
+ <name>RightCommand</name>
+ <appendix>OneShot RightCommand send Option</appendix>
+ <identifier>remap.kmnk_oneshotmodifier_option</identifier>
+ <autogen>--KeyOverlaidModifier-- KeyCode::COMMAND_R, KeyCode::COMMAND_L, KeyCode::X, ModifierFlag::OPTION_L</autogen>
+ </item>
+ <item>
+ <name>EISUU and KANA</name>
+ <appendix>OneShot EISUU and KANA send Command</appendix>
+ <identifier>remap.kmnk_oneshotmodifier_eisuu_and_kana</identifier>
+ <autogen>--KeyOverlaidModifier-- KeyCode::JIS_EISUU, KeyCode::COMMAND_L, KeyCode::JIS_EISUU</autogen>
+ <autogen>--KeyOverlaidModifier-- KeyCode::JIS_KANA, KeyCode::COMMAND_L, KeyCode::JIS_KANA</autogen>
+ </item>
+ </item>
</item>
</root>
<!-- vim: set expandtab tabstop=2 softtabstop=2 shiftwidth=2 : -->
View
11 vim/dot.vim/templates/vim/base-script.vim
@@ -1,14 +1,23 @@
" File: {{_name_}}.vim
" Author: {{_input_:user-name}} <{{_input_:user-email}}>
" Version: 0.1.0
-" License:
+" License: MIT Licence
let s:save_cpo = &cpo
set cpo&vim
+" variables {{{
+" }}}
+
{{_cursor_}}
+
+
+" local functions {{{
+" }}}
+
+
let &cpo = s:save_cpo
unlet s:save_cpo
" __END__
View
11 vim/dot.vim/templates/vim/snip-context-getter.vim
@@ -0,0 +1,11 @@
+" context getter {{{
+function! s:get_SID()
+ return matchstr(expand('<sfile>'), '<SNR>\d\+_')
+endfunction
+let s:SID = s:get_SID()
+delfunction s:get_SID
+
+function! {{_expr_:substitute(substitute(expand('%:r'), '.*autoload[/]', '', 'g'), '[/]', '#', 'g')}}#__context__()
+ return { 'sid': s:SID, 'scope': s: }
+endfunction
+"}}}

0 comments on commit 14233d0

Please sign in to comment.
Something went wrong with that request. Please try again.