On 13/03/09 12:56, [email protected] wrote:
>
> I am trying to copy-paste some 300 lines between two files. I installed
> vimx because I was told vim on RedHat does not support clipboard copying.
> However I noticed that I can only copy 223 lines maximum with +300yy
> (status message says 223 lines yanked). Also when I try to paste those
> lines in another file with +p I only get 50 lines pasted maximum. So it
> looks like I can copy-paste only 50 lines at once maximum.
> Is there something I need to change in configuration to allow more then 50
> lines?
>
> Please,
> Dzenan

I am on openSUSE Linux (very similar to RedHat) with a GUI-enabled vim I 
compiled myself according to 
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm

I just tried copying a file of 1387 lines from gvim to the clipboard using

        :%y +

then from the clipboard to kedit using Edit=>Paste. A quick check shows 
that both the top and bottom of the file were pasted, which leads me to 
believe that all the rest was there too (and the Cyrillic UTF-8 in that 
particular file was pasted correctly, BTW). So I suggest that you do one 
of the following:

Method I. (recommended, but more work)
--------
Compile your own vim as described on the HowTo page mentioned above. The 
binary will be installed as /usr/local/bin/vim with softlinks gvim -> 
vim, view -> vim, gview -> vim, vimdiff -> vim, gvimdiff -> vim, etc. 
The runtime files will be installed into /usr/local/share/vim/vim72/. 
Your ~/.vimrc, ~/.gvimrc and/or ~/.vim (if you have any) will remain the 
same. This version will use /usr/local/share/vim as $VIM so if you have 
anything in $VIM/vimfiles/ and below (for a different value of $VIM) you 
should make sure to copy it here. This way, you will have a GUI-enabled 
Vim with the latest patches and your preferred features doing double 
duty as gvim and console Vim, and using the clipboard as "+ and the 
X-selection as "* whenever it finds an X server at startup (unless, of 
course, you start it with -X which means "do not connect with X").

Method II (if you don't want to compile your own Vim)
---------
- Uninstall the vim-enhanced package
- Make sure the vim-x11 package is installed
- If (in bash)
        type vim
now tells you that vim is "not found", create a link from vim to gvim, 
as follows (in bash):

        pushd /usr/local/bin
        ln -sv `which gvim` vim
        popd

This way, you'll have RedHat's GUI-enabled version of Vim doing double 
duty as both gvim and Console Vim, and it should be able to access the 
clipboard even from an xterm, konsole, or gnome-terminal (but of course 
not from the pure-text Linux consoles on Ctrl-Alt-F1 to Ctrl-Alt-F6 
because those never have any access to the X server regardless of 
whether or not it is running).



Best regards,
Tony.
-- 
You should not use your fireplace, because scientists now believe that,
contrary to popular opinion, fireplaces actually remove heat from
houses.  Really, that's what scientists believe.  In fact many
scientists actually use their fireplaces to cool their houses in the
summer.  If you visit a scientist's house on a sultry August day,
you'll find a cheerful fire roaring on the hearth and the scientist
sitting nearby, remarking on how cool he is and drinking heavily.
                -- Dave Barry, "Postpetroleum Guzzler"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to