1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/.vimperatorrc Tue Jan 26 23:09:28 2010 +0900
1.3 @@ -0,0 +1,80 @@
1.4 +set guioptions+=mT
1.5 +set titlestring=Firefox
1.6 +set hlsearch
1.7 +set wildoptions=auto
1.8 +set complete=sl
1.9 +set visualbell
1.10 +set visualbellstyle=display:none;
1.11 +set showstatuslinks=2
1.12 +
1.13 +map <C-c> Y
1.14 +map <C-9> :tablast<CR>
1.15 +map ,R :source ~/.vimperatorrc
1.16 +
1.17 +inoremap <C-v> <C-v><C-v>
1.18 +inoremap <C-q> <C-v>
1.19 +cnoremap <C-v> <C-v><C-v>
1.20 +cnoremap <C-q> <C-v>
1.21 +cmap <Up> <S-TAB>
1.22 +cmap <Down> <TAB>
1.23 +
1.24 +javascript <<EOM
1.25 +(function(){
1.26 + var feedPanel = document.createElement('statusbarpanel');
1.27 + var feedButton = document.getElementById('feed-button');
1.28 + feedPanel.setAttribute('id','feed-panel-clone');
1.29 + feedPanel.appendChild(feedButton.cloneNode(true));
1.30 + feedButton.parentNode.removeChild(feedButton);
1.31 + document.getElementById('status-bar').insertBefore(feedPanel,document.getElementById('security-button'));
1.32 +})();
1.33 +EOM
1.34 +
1.35 +
1.36 +" plugin/ime_controller.js
1.37 +let g:ex_ime_mode = "inactive"
1.38 +let g:textarea_ime_mode = "inactive"
1.39 +
1.40 +" plugin/copy.js
1.41 +map ,c :copy <SPC>
1.42 +javascript <<EOM
1.43 +(function(){
1.44 +function get_tus(w, d) {
1.45 + var win = new XPCNativeWrapper(w.content.window);
1.46 + var s = win.getSelection().getRangeAt(0).toString();
1.47 + var t = liberator.buffer.title;
1.48 + var u = liberator.buffer.URL;
1.49 + return [t, u, s];
1.50 +}
1.51 +liberator.globalVariables.copy_templates = [
1.52 + { label: 't', value: '%TITLE%' },
1.53 + { label: 'tu', value: '%TITLE% - %URL%' },
1.54 + { label: 'asin', custom: function(){
1.55 + return content.document.getElementById('ASIN').value;
1.56 + }},
1.57 + { label: 'wiki', custom: function() {
1.58 + var [t, u, s] = get_tus(window, document);
1.59 + s = s.replace(/\n/, "\n> ");
1.60 + return t + "\n- " + u + (s? ("\n> " + s): '');
1.61 + }},
1.62 + { label: 'my', custom: function() {
1.63 + var [t, u, s] = get_tus(window, document);
1.64 + s = s.replace(/\n/, "\n ");
1.65 + return t + ":\n - " + u + (s? ("\n >>\n " + s + "\n <<"): '');
1.66 + }},
1.67 + { label: 'datestr', custom: function() {
1.68 + return '[' + liberator.buffer.URL.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
1.69 + }},
1.70 +];
1.71 +})();
1.72 +EOM
1.73 +
1.74 +" plugin/feedSomeKeys.js
1.75 +autocmd LocationChange .* :fmapc
1.76 +js <<EOF
1.77 +autocommands.add('LocationChange',/reader\.livedoor\.com\/reader\//,
1.78 + 'js plugins.feedKey.setup("j k s a p v c <Space> <S-Space> z Z < > q w b i".split(/ +/));');
1.79 +autocommands.add('LocationChange',/mail\.google\.com\/mail\//,
1.80 + 'js plugins.feedKey.setup("j k p n e u o / <C-c>".split(/ +/));');
1.81 +EOF
1.82 +
1.83 +echo ".vimperatorrc loaded."