Show
Ignore:
Timestamp:
12/27/07 23:24:31 (11 months ago)
Author:
kana
Message:

lang/vim/cygclip:
* Modify to define the default key mappings as the plugin is loaded.
* Add the way to suppress this behavior.

Location:
lang/vim/cygclip/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/vim/cygclip/trunk/doc/cygclip.txt

    r3580 r3641  
    11*cygclip.txt*   pseudo clipboard register for non-GUI version of Vim on Cygwin 
    22 
    3 Version 0.0 
     3Version 0.1 
    44Copyright (C) 2007 kana <http://nicht.s8.xrea.com> 
    55License: MIT license (see <http://www.opensource.org/licenses/mit-license>) 
     
    3939         
    4040 
     41                                           *g:cygclip_no_default_key_mappings* 
    4142                                                *Cygclip_DefaultKeymappings()* 
    42 cygclip provides Cygclip_DefaultKeymappings() to define some useful key 
    43 mappings which are similar to Vim's default key mappings to yank/put. 
    44 Call it from your |vimrc|. 
     43The following key mappings will be defined automatically (via 
     44Cygclip_DefaultKeymappings()).  If you don't want to define these default key 
     45mappings, define g:cygclip_no_default_key_mappings with any value before this 
     46plugin is loaded. 
    4547 
    46         Normal mode and Visual mode: 
     48        Normal mode and Visual mode ~ 
    4749 
    4850                "+y{motion}     "*y{motion}     (Normal mode only) 
     
    5557                "+gP            "*gP 
    5658 
    57         Insert mode and Command-line mode: 
     59        Insert mode and Command-line mode ~ 
    5860 
    5961                <C-r>+          <C-r>* 
     
    7274different from the ordinary one. 
    7375 
     76(c) This plugin just provide pseudo clipboard register for ordinary editing. 
     77So |getreg()|, |setreg()|, |expr-register| and other interface on clipboard 
     78register are not supported. 
     79 
    7480 
    7581 
     
    7783============================================================================== 
    7884CHANGELOG                                               *cygclip-changelog* 
     85 
     860.1     2007-12-27T22:47:34+09:00 
     87        - Modify to automatically define the default key mappings as this 
     88          plugin is loaded.  See |g:cygclip_no_default_key_mappings| for how 
     89          to suppress this behavior. 
    7990 
    80910.0     2007-08-13 
  • lang/vim/cygclip/trunk/plugin/cygclip.vim

    r3580 r3641  
    11" cygclip - pseude clipboard register for non-GUI version of Vim on Cygwin 
    2 " Version: 0.0 
     2" Version: 0.1 
    33" Copyright: Copyright (C) 2007 kana <http://nicht.s8.xrea.com/> 
    44" License: MIT license (see <http://www.opensource.org/licenses/mit-license>) 
     
    6464  cmap <C-r>+  <Plug>Cygclip_insert 
    6565endfunction 
     66 
     67 
     68if !exists('g:cygclip_no_default_key_mappings') 
     69  call Cygclip_DefaultKeymappings() 
     70endif 
    6671 
    6772