Thanks all.
I got it working what I wanted by copying the mswin.vim file and stripping it to what I wanted. When you don't understand vim-scripting as I do then good copying is beter then bad designing .

Rgds,
Eric


"---<START>
" kMinus and CTRL-X and SHIFT-Del are Cut
vnoremap <kMinus>    "+x
vnoremap <S-Del>     "+x
vnoremap <C-X>       "+x

" kMultiply and CTRL-C and CTRL-Insert are Copy
vnoremap <kMultiply> "+y
vnoremap <C-Insert>  "+y
vnoremap <C-C>       "+y

" kPlus and CTRL-V and SHIFT-Insert are Paste
map <kPlus>                  "+gP
map <S-Insert>       "+gP
map <C-V>            "+gP

cmap <kPlus>         <C-R>+
cmap <S-Insert>      <C-R>+
cmap <C-V>                   <C-R>+

" Pasting blockwise and linewise selections is not possible in Insert and
" Visual mode without the +virtualedit feature.  They are pasted as if they
" were characterwise instead.
" Uses the paste.vim autoload script.

exe 'inoremap <script> <kPlus>' paste#paste_cmd['i']
exe 'vnoremap <script> <kPlus>' paste#paste_cmd['v']
exe 'inoremap <script> <C-V>' paste#paste_cmd['i']
exe 'vnoremap <script> <C-V>' paste#paste_cmd['v']

imap <S-Insert>      <kPlus>
vmap <S-Insert>      <kPlus>
imap <S-Insert>      <C-V>
vmap <S-Insert>      <C-V>

" Use CTRL-Q to do what CTRL-V used to do
noremap <C-Q>        <C-V>
"---<END>

_________________________________________________________________
Win a Zune™—make MSN® your homepage for your chance to win! http://homepage.msn.com/zune?icid=hmetagline

Reply via email to