Changeset 2077

Show
Ignore:
Timestamp:
11/28/07 03:00:43 (14 months ago)
Author:
otsune
Message:

dotfiles/vimperator/otsune-vimperatorrc: add custom js

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/vimperator/otsune-vimperatorrc

    r1238 r2077  
    4040map _ ma 
    4141map } `a 
     42 
     43" custom js 
     44javascript <<EOF 
     45/* Default <C-c> mapping is dump. I want it to be copy! */ 
     46var copy_map = new Map( 
     47        vimperator.modes.NORMAL,  
     48        ["<C-c>"],  
     49        function() { copyToClipboard(window.content.document.getSelection()); },  
     50        { short_help: "Copy", help: "Copy the current selected text" } 
     51        ); 
     52 
     53vimperator.mappings.add(copy_map) 
     54 
     55EOF