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
augroup syntax-highlight-extension | |
autocmd! | |
autocmd Syntax vim call s:set_syntax_of_user_defined_commands() | |
augroup END | |
function! s:set_syntax_of_user_defined_commands() | |
redir => _ | |
silent! command | |
redir END |
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
" Commands | |
command! -nargs=0 -bang Vai | |
\ call s:vai.vavai('<bang>' == '!') | |
" Variables | |
let s:vai = {} |
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 s:current_prefix_key = '' | |
command! -nargs=1 PrefixKeyMappingStart | |
\ let s:current_prefix_key = <q-args> | |
command! -nargs=0 PrefixKeyMappingEnd | |
\ let s:current_prefix_key = '' | |
function! s:create_prefix_key_mapping_commands() | |
let base_commands = ['map', 'nmap', 'vmap', 'xmap', 'smap', 'omap', | |
\ 'imap', 'lmap', 'cmap'] | |
let command_prefix = 'P' |
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
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>PI_Engineering</vendorname> | |
<vendorid>0x05f3</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>Kinesis_Keyboard</productname> | |
<productid>0x0007</productid> | |
</deviceproductdef> |
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
" 抽象的なプレフィックスキーを定義する | |
nnoremap <SID>[Tag] <Nop> | |
nnoremap <silent> <SID>[Tag]<Space> <C-]> | |
nnoremap <silent> <SID>[Tag]j :<C-u>tag<CR> | |
nnoremap <silent> <SID>[Tag]k :<C-u>pop<CR> | |
nnoremap <silent> <SID>[Tag]s :<C-u>tags<CR> | |
nnoremap <silent> <SID>[Tag]n :tnext<CR> | |
nnoremap <silent> <SID>[Tag]p :tprevious<CR> | |
nnoremap <silent> <SID>[Tag]f :tfirst<CR> |
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
" 実際に打鍵するプレフィックスキーを <C-t> に変更する | |
nnoremap <script> <C-t> <SID>[Tag] |
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
PrefixedMapBegin <SID>[Tag] | |
" {map-command} {map-arguments} <Nop> | |
" -> {map-command} {map-arguments} {prefix-key} <Nop> | |
nnoremap <Nop> | |
" {map-command} {map-arguments} {lhs} {rhs} | |
" -> {map-command} {map-arguments} {prefix-key}{lhs} {rhs} | |
nnoremap <silent> <Space> <C-]> | |
nnoremap <silent> j :<C-u>tag<CR> | |
nnoremap <silent> k :<C-u>pop<CR> | |
nnoremap <silent> s :<C-u>tags<CR> |
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
" ユーザ定義コマンドが使えるようにプラグインの読み込みを行なう。 | |
call prefixedmap#load() | |
PrefixedMapBegin <SID>[Tag] | |
Pnnoremap <Nop> | |
Pnnoremap <silent> <Space> <C-]> | |
Pnnoremap <silent> j :<C-u>tag<CR> | |
Pnnoremap <silent> k :<C-u>pop<CR> | |
Pnnoremap <silent> s :<C-u>tags<CR> | |
Pnnoremap <silent> n :tnext<CR> |
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 |
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
function! any_plugin#util#define_boolean(scope) | |
let a:scope.FALSE = 0 | |
let a:scope.TRUE = !a:scope.FALSE | |
endfunction |
OlderNewer