Changeset 8682
- Timestamp:
- 04/03/08 00:10:51 (8 months ago)
- Files:
-
- 1 modified
-
dotfiles/vimperator/teramako-vimperatorrc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vimperator/teramako-vimperatorrc
r8340 r8682 1 " For Vimperator 0. 5.31 " For Vimperator 0.6pre 2 2 3 3 set visualbell 4 set guioptions=b 4 set verbose=9 5 " set guioptions=mb 5 6 6 7 " j/k でのスクロールを 1行から 3行へ … … 17 18 map <A-M> :set guioptions-=m<CR> 18 19 20 map I <C-q> 21 19 22 " Add Mapping `C-c' copy or stop loading 20 23 javascript <<EOF 21 vimperator.mappings.add(new vimperator.Map(vimperator.modes.NORMAL, ['<C-c>'], 24 liberator.mappings.addUserMap([liberator.modes.NORMAL,liberator.modes.VISUAL], ['<C-c>'], 25 'Copy selected text or stop loading', 22 26 function() { 23 var sel = window.content.document.getSelection(); 27 //var sel = window.content.document.getSelection(); 28 var sel = liberator.buffer.getCurrentWord(); 24 29 if (sel) { 25 vimperator.copyToClipboard(sel);26 vimperator.echo('Yanked: '+sel);30 liberator.copyToClipboard(sel,true); 31 //echo('Yanked: '+sel); 27 32 } else { 28 33 BrowserStop(); 29 vimperator.echo('Stopped loading !');34 liberator.echo('Stopped loading !'); 30 35 } 31 },{32 shortHelp: 'Copy selected text or ',33 help: 'The currently selected text is copied to the system clipboard.<br/>' +34 'If selected text is none, stops loading the current web page.'35 36 } 36 ) );37 ); 37 38 EOF 38 39 39 40 " Add command `dominspector' 40 41 javascript <<EOF 41 vimperator.commands.add(new vimperator.Command(['dominspector'], 42 function(){ 43 inspectDOMDocument(content.document); 44 },{ 45 shortHelp: 'Open DOM Inspector', 46 help: 'Open DOM Inspector' 47 } 48 )); 42 commands.add(['dominspector'], 'Open DOM Inspector', function(){ inspectDOMDocument(content.document); }); 49 43 EOF 50 44 … … 61 55 EOF 62 56 63 echo " _vimperatorrc sourced"57 echo ".vimperatorrc sourced" 64 58 65 59 " vim:set sw=2 ts=2 sts=0 syntax=vimperator:
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)