Shingo@12: set guioptions+=mT
Shingo@12: set titlestring=Firefox
Shingo@12: set hlsearch
Shingo@12: set wildoptions=auto
Shingo@12: set complete=sl
Shingo@12: set visualbell
Shingo@12: set visualbellstyle=display:none;
Shingo@12: set showstatuslinks=2
Shingo@12: 
Shingo@12: map <C-c> Y
Shingo@12: map <C-9> :tablast<CR>
Shingo@12: map ,R :source ~/.vimperatorrc
Shingo@12: 
Shingo@12: inoremap <C-v>  <C-v><C-v>
Shingo@12: inoremap <C-q>  <C-v>
Shingo@12: cnoremap <C-v>  <C-v><C-v>
Shingo@12: cnoremap <C-q>  <C-v>
Shingo@12: cmap <Up> <S-TAB>
Shingo@12: cmap <Down> <TAB>
Shingo@12: 
Shingo@12: javascript <<EOM
Shingo@12: (function(){
Shingo@12:  var feedPanel = document.createElement('statusbarpanel');
Shingo@12:  var feedButton = document.getElementById('feed-button');
Shingo@12:  feedPanel.setAttribute('id','feed-panel-clone');
Shingo@12:  feedPanel.appendChild(feedButton.cloneNode(true));
Shingo@12:  feedButton.parentNode.removeChild(feedButton);
Shingo@12:  document.getElementById('status-bar').insertBefore(feedPanel,document.getElementById('security-button'));
Shingo@12: })();
Shingo@12: EOM
Shingo@12: 
Shingo@12: 
Shingo@12: " plugin/ime_controller.js 
Shingo@12: let g:ex_ime_mode = "inactive"
Shingo@12: let g:textarea_ime_mode = "inactive" 
Shingo@12: 
Shingo@12: " plugin/copy.js
Shingo@12: map ,c :copy <SPC>
Shingo@12: javascript <<EOM
Shingo@12: (function(){
Shingo@12: function get_tus(w, d) {
Shingo@14:     var t = content.document.title;
Shingo@14:     var u = content.location.href;
Shingo@14:     var s = content.window.getSelection().getRangeAt(0).toString();
Shingo@12:     return [t, u, s];
Shingo@12: }
Shingo@12: liberator.globalVariables.copy_templates = [
Shingo@12:    { label: 't',         value: '%TITLE%' },
Shingo@12:    { label: 'tu',        value: '%TITLE% - %URL%' },
Shingo@12:    { label: 'asin', custom: function(){
Shingo@12:        return content.document.getElementById('ASIN').value;
Shingo@12:    }}, 
Shingo@12:    { label: 'wiki', custom: function() {
Shingo@12:        var [t, u, s] = get_tus(window, document);
Shingo@12:        s = s.replace(/\n/, "\n> ");
Shingo@12:        return t + "\n- " + u + (s? ("\n> " + s): '');
Shingo@12:    }},
Shingo@12:    { label: 'my',  custom: function() {
Shingo@12:        var [t, u, s] = get_tus(window, document);
Shingo@12:        s = s.replace(/\n/, "\n  ");
Shingo@12:        return t + ":\n  - " + u + (s? ("\n  >>\n  " + s + "\n  <<"): '');
Shingo@12:    }},
Shingo@12:    { label: 'datestr',  custom: function() {
Shingo@14:        return '[' +  content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
Shingo@12:    }},
Shingo@12: ];
Shingo@12: })();
Shingo@12: EOM
Shingo@12: 
Shingo@12: " plugin/feedSomeKeys.js
Shingo@12: autocmd LocationChange .* :fmapc
Shingo@12: js <<EOF
Shingo@12: autocommands.add('LocationChange',/reader\.livedoor\.com\/reader\//,
Shingo@12:   'js plugins.feedKey.setup("j k s a p v c <Space> <S-Space> z Z < > q w b i".split(/ +/));');
Shingo@12: autocommands.add('LocationChange',/mail\.google\.com\/mail\//,
Shingo@12:   'js plugins.feedKey.setup("j k p n e u o / <C-c>".split(/ +/));');
Shingo@12: EOF
Shingo@12: 
Shingo@12: echo ".vimperatorrc loaded."