違反ヒントはありません

そもさんせっぱちょーちょーはっし

なんとなく .vimperatorrc

年の瀬だからバックアップがてら

"2.4pre (created: 2010/09/22 19:04:22)

set runtimepath=/Users/USERNAME/.vimperator
source! ~/.vimperatorrc.local

javascript <<EOM
// for liberator.echo()
let (echo_old = liberator.echo) {
    liberator.echo = function(str, flags) {
        liberator.log("echo: " + str, 0);
        return echo_old(str, flags);
    }
}

// for liberator.echoerr()
let (echoerr_old = liberator.echoerr) {
    liberator.echoerr = function(str, flags) {
        liberator.log("echoerr: " + str, 0);
        return echoerr_old(str, flags);
    }
}

// for liberator.echomsg() (only for Vimperator 2.0pre or later)
let (echomsg_old = liberator.echomsg) {
    liberator.echomsg = function(str, flags) {
        liberator.log("echomsg: " + str, 0);
        return echomsg_old(str, flags);
    }
}
EOM


set go=mT
set showstatuslinks=2
set visualbell
set wildoptions=auto
set complete=sl
set focuscontent

" hint style
highlight! Hint font-family: "Bitstream Vera Sans Mono",monaco,monospace; font-size: 16px; font-weight: bold; color: white; background-color: green; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 2px; line-height: 1em;

highlight Bell display:none

:let g:hintsio="iO"
:let g:hintchars="HJKLASDFGYUIOPQWERTNMZXCVB" 
:let g:ex_ime_mode="inactive"
:let g:textarea_ime_mode="inactive" 

" feedSomeKeys_2
autocmd LocationChange .* :fmapc

"" copy.js
javascript <<EOM
liberator.globalVariables.copy_templates = [
   { label: 'titleAndURL',    value: '%TITLE% %URL%' },
   { label: 'titleLfURL',     value: '%TITLE%\n%URL%', map: '<C-C>' },
   { label: 'title',          value: '%TITLE%' },
   { label: 'hatena',         value: '[%URL%:title=%TITLE%]' },
   { label: 'hatenacite',     value: '>%URL%:title=%TITLE%>\n%SEL%\n<<' },
   { label: 'markdown',       value: '[%TITLE%](%URL% "%TITLE%")' },
   { label: 'anchor', value: '<a href="%URL%">%TITLE%</a>' },
   { label: 'htmlblockquote', value: '<blockquote cite="%URL%" title="%TITLE%">%HTMLSEL%</blockquote>' },
   { label: 'twitter',       value: " :%TITLE% %URL%" },
];
EOM

" LDR
autocmd LocationChange 'reader\.livedoor\.com/reader' :fmap j k s a p o v c <Space> <S-Space> Z z b < >
autocmd DOMLoad 'reader\.livedoor\.com/reader' :js
noremap ZZ <NOP>

" Mapping Command
map <C-m> :copy markdown
map <C-h> :copy hatena
map <C-t> :copy twitter
map <C-w> :copy anchor
map <C-8> :open javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://ngsw.jp/wp-admin/press-this.php',l=d.location,e=encodeURIComponent,u=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=4';a=function(){if(!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570'))l.href=u;};if%20(/Firefox/.test(navigator.userAgent))%20setTimeout(a,%200);%20else%20a();void(0)
imap <C-f> <Right>
cmap <C-f> <Right>
map <C-q> :mapc<CR>:cmapc<CR>:imapc<CR>:source ~/.vimperatorrc<CR>
echo ".vimperatorrc done"
" vim: set ft=vimperator: