.vimperatorrc
changeset 19 bec059009ba7
parent 14 16fe27af1a8b
child 20 d9bc81689061
equal deleted inserted replaced
1:5df249c6df16 2:44caff75701c
     2 set titlestring=Firefox
     2 set titlestring=Firefox
     3 set hlsearch
     3 set hlsearch
     4 set wildoptions=auto
     4 set wildoptions=auto
     5 set complete=sl
     5 set complete=sl
     6 set visualbell
     6 set visualbell
     7 set visualbellstyle=display:none;
     7 "set visualbellstyle=display:none;
     8 set showstatuslinks=2
     8 set showstatuslinks=2
     9 
     9 
    10 map <C-c> Y
    10 map <C-c> Y
    11 map <C-9> :tablast<CR>
    11 map <C-9> :tablast<CR>
    12 map ,R :source ~/.vimperatorrc
    12 map ,R :source ~/.vimperatorrc
       
    13 map d <C-w>
    13 
    14 
    14 inoremap <C-v>  <C-v><C-v>
    15 inoremap <C-v>  <C-v><C-v>
    15 inoremap <C-q>  <C-v>
    16 inoremap <C-q>  <C-v>
    16 cnoremap <C-v>  <C-v><C-v>
    17 cnoremap <C-v>  <C-v><C-v>
    17 cnoremap <C-q>  <C-v>
    18 cnoremap <C-q>  <C-v>
    33 " plugin/ime_controller.js 
    34 " plugin/ime_controller.js 
    34 let g:ex_ime_mode = "inactive"
    35 let g:ex_ime_mode = "inactive"
    35 let g:textarea_ime_mode = "inactive" 
    36 let g:textarea_ime_mode = "inactive" 
    36 
    37 
    37 " plugin/copy.js
    38 " plugin/copy.js
    38 map ,c :copy <SPC>
    39 map ,c :copy<Space>
    39 javascript <<EOM
    40 javascript <<EOM
    40 (function(){
    41 (function(){
    41 function get_tus(w, d) {
    42 function get_tus(w, d) {
    42     var t = content.document.title;
    43     var t = content.document.title;
    43     var u = content.location.href;
    44     var u = content.location.href;
    67 })();
    68 })();
    68 EOM
    69 EOM
    69 
    70 
    70 " plugin/feedSomeKeys.js
    71 " plugin/feedSomeKeys.js
    71 autocmd LocationChange .* :fmapc
    72 autocmd LocationChange .* :fmapc
    72 js <<EOF
    73 autocmd LocationChange http://(reader\.livedoor\.com|fastladder\.com|0\.0\.0\.0\:3000)/reader/ :fmap j k s a p v c z Z b i r < > o,vj J,<Space> K,<S-Space> q w g u 
    73 autocommands.add('LocationChange',/reader\.livedoor\.com\/reader\//,
    74 autocmd LocationChange mail\.google\.com/(mail|a)/ :fmap -d 4 c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc <C-c>
    74   'js plugins.feedKey.setup("j k s a p v c <Space> <S-Space> z Z < > q w b i".split(/ +/));');
    75 
    75 autocommands.add('LocationChange',/mail\.google\.com\/mail\//,
    76 "js <<EOF
    76   'js plugins.feedKey.setup("j k p n e u o / <C-c>".split(/ +/));');
    77 "autocommands.add('LocationChange',/reader\.livedoor\.com\/reader\//,
    77 EOF
    78 "  'js plugins.feedKey.setup("j k s a p v c <Space> <S-Space> z Z < > q w b i".split(/ +/));');
       
    79 "autocommands.add('LocationChange',/mail\.google\.com\/mail\//,
       
    80 "  'js plugins.feedKey.setup("j k p n e u o / <C-c>".split(/ +/));');
       
    81 "EOF
    78 
    82 
    79 echo ".vimperatorrc loaded."
    83 echo ".vimperatorrc loaded."
       
    84