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
// ==UserScript== | |
// @name Github WIP pull request | |
// @namespace https://github.com/emanon001/ | |
// @description Github での WIP pull request 運用を便利にするあれこれ | |
// @include https://github.com/*/pull/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== | |
this.$ = this.jQuery = jQuery.noConflict(true); |
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
// ==UserScript== | |
// @name Sponichi image easy access | |
// @namespace https://github.com/emanon001/ | |
// @description スポニチの画像表示用Flash をクリックすると、実際の画像リンクを開く | |
// @include http://www.sponichi.co.jp/*/gazo/*.html | |
// ==/UserScript== | |
(function () { | |
"use strict"; |
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
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> |
OlderNewer