Hi, Rob.

Some additional investigation:
I think it's better change the first line with "vmap ... " with

vmap <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))
<CR>:call system("xclip -i", getreg("\""))<CR>

(this is 1 line - in case if browser will split it!). Without this
second call to xclip with "-selection clipboard" option I cannot paste
in firefox! So consider using it - this just makes X server fill two
types of selections - XA_PRIMARY and XA_CLIPBOARD (see man xclip) and
it is hard to know which one is used by different programs.

Best regards. Alexey.


On 14 янв, 02:11, r <[email protected]> wrote:
> On 13 Gen, 23:21, Alexey Radkov <[email protected]> wrote:
>
> > yes, install xclip and put the 2 lines
>
> > vmap <C-c> y:call system("xclip -i", getreg("\""))<CR>
> > nmap <C-i> :call setreg("\"",system("xclip -o"))<CR>p
>
> > in your .vimrc. Of course this will work only if you run X server.
>
> > then when you select text by mouse (in case if mouse=a) or by entering
> > visual mode from keyboard, and then Ctrl-c - the text will be copied
> > to system clipboard and you can paste it anywhere. In normal mode Ctrl-
> > i will insert text in vim from system clipboard.
>
> > Best regards. Alexey.
>
> Great Alexey
> works
>
> Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to