Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

Karabinerでカーソル移動をh、j、k、lにする(備忘録)

$
0
0

private.xmlに以下を追記

Fnキーを押してh、j、k、lを押すとカーソル移動イベントになる

<item>
    <name>Fn vim</name>
    <identifier>private.fnvim</identifier>
    <autogen>
        __KeyToKey__
        KeyCode::K, ModifierFlag::FN,
        KeyCode::CURSOR_UP
    </autogen>
    <autogen>
        __KeyToKey__
        KeyCode::J, ModifierFlag::FN,
        KeyCode::CURSOR_DOWN
    </autogen>
    <autogen>
        __KeyToKey__
        KeyCode::H, ModifierFlag::FN,
        KeyCode::CURSOR_LEFT
    </autogen>
    <autogen>
        __KeyToKey__
        KeyCode::L, ModifierFlag::FN,
        KeyCode::CURSOR_RIGHT
    </autogen>
</item>

Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>