> You might prefer making it into a function, but that requires a bit of
> fiddling, too.
Thank you, this is perfect!
I now have:
vnoremap <silent> <leader>y <C-C>:call Putclip()<CR>
function! Putclip()
let save_z=getreg('z')
let save_z_type=getregtype('z')
normal gv"zy
call system('putclip', @z)
call setreg('z', save_z, save_z_type)
endfunction
in my .vimrc and it's working like a charm!
Now I don't need the Cygwin/Windows clipboard integration patch. ;)
Cheers!
Chris
--
Chris Sutcliffe
http://emergedesktop.org
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---