Created
April 4, 2012 18:46
-
-
Save emanon001/2304658 to your computer and use it in GitHub Desktop.
Vim script: kr4mb sample.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:kr4mb_identifier_aliases = { | |
\ 'to_dvorak': 'private.remap.device_kinesis_qwerty2dvorak_qwerty' | |
\ } | |
command! -nargs=0 DvorakEnable | |
\ KR4MBEnable to_dvorak | |
command! -nargs=0 DvorakDisable | |
\ KR4MBDisable to_dvorak | |
command! -nargs=0 DvorakToggle | |
\ KR4MBToggle to_dvorak | |
nnoremap : :<C-u>DvorakEnable<CR>: | |
cnoremap <silent> <Esc> <C-u>DvorakDisable<CR> | |
augroup kr4mb-dvorak | |
autocmd! | |
autocmd InsertEnter * call kr4mb#enable('to_dvorak') | |
autocmd InsertLeave * call kr4mb#disable('to_dvorak') | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment