submode.vim を利用して huerotation.vim の調整を行う
submode.vim を使えば便利かなーと思ったので練習がてらちょっと書いてみました。
submode.vim に関しては下記のサイトが参考になります。
[ソース]
" <Space>hrjjjkkkk... で調整 let g:rotate_hue_step = 20 call submode#enter_with('rotate_hue', 'n', 's', '<Space>hrk', ':call RotateHue(g:rotate_hue_step)<CR>') call submode#map('rotate_hue', 'n', 's', 'k', ':call RotateHue(g:rotate_hue_step)<CR>') call submode#enter_with('rotate_hue', 'n', 's', '<Space>hrj', ':call RotateHue(-g:rotate_hue_step)<CR>') call submode#map('rotate_hue', 'n', 's', 'j', ':call RotateHue(-g:rotate_hue_step)<CR>')
べんり。