Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Vim yank paste (http://www.linux-archive.org/debian-user/401296-vim-yank-paste.html)

Panayiotis Karabassis 07-19-2010 04:49 PM

Vim yank paste
 
In Ubuntu it was possible to yank some lines of text, exit Vim, open a
new Vim instance and paste the yanked lines. In debian it is necessary
to use the * register. How can I reproduce the Ubuntu behavior?


Regards,
Panayiotis


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C4481FF.7080409@gmail.com">http://lists.debian.org/4C4481FF.7080409@gmail.com

Aaron Toponce 07-19-2010 04:55 PM

Vim yank paste
 
On 7/19/2010 10:49 AM, Panayiotis Karabassis wrote:
> In Ubuntu it was possible to yank some lines of text, exit Vim, open a
> new Vim instance and paste the yanked lines. In debian it is necessary
> to use the * register. How can I reproduce the Ubuntu behavior?

Not sure what "the * register" is, but I've always used:

"+Y to yank the current line/selection
"+P to paste what's in the clipboard

--
. O . O . O . . O O . . . O .
. . O . O O O . O . O O . . O
O O O . O . . O O O O . O O O

Andrei Popescu 07-19-2010 05:08 PM

Vim yank paste
 
On Lu, 19 iul 10, 19:49:03, Panayiotis Karabassis wrote:
> In Ubuntu it was possible to yank some lines of text, exit Vim, open
> a new Vim instance and paste the yanked lines. In debian it is
> necessary to use the * register. How can I reproduce the Ubuntu
> behavior?

Works for me with vim-nox (I don't use the gtk version). What vim
packages do you have installed? It will probably not work with vim-tiny
;)

$ dpkg -l vim* | grep ^ii
ii vim-addon-manager 0.4.3 manager of addons for the Vim editor
ii vim-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common files
ii vim-gtk 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor - with GTK2
ii vim-gui-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common GUI files
ii vim-nox 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor
ii vim-runtime 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Runtime files
ii vim-scripts 20091011 plugins for vim, adding bells and whistles
ii vim-tiny 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor - compact v

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Panayiotis Karabassis 07-19-2010 05:19 PM

Vim yank paste
 
I had both vim-full and vim-tiny installed. Removing vim-tiny fixed
this. Rather strange.

Thank you.

On 07/19/2010 08:08 PM, Andrei Popescu wrote:

On Lu, 19 iul 10, 19:49:03, Panayiotis Karabassis wrote:


In Ubuntu it was possible to yank some lines of text, exit Vim, open
a new Vim instance and paste the yanked lines. In debian it is
necessary to use the * register. How can I reproduce the Ubuntu
behavior?


Works for me with vim-nox (I don't use the gtk version). What vim
packages do you have installed? It will probably not work with vim-tiny
;)

$ dpkg -l vim* | grep ^ii
ii vim-addon-manager 0.4.3 manager of addons for the Vim editor
ii vim-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common files
ii vim-gtk 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor - with GTK2
ii vim-gui-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common GUI files
ii vim-nox 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor
ii vim-runtime 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Runtime files
ii vim-scripts 20091011 plugins for vim, adding bells and whistles
ii vim-tiny 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor - compact v

Regards,
Andrei




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C44893C.2010906@gmail.com">http://lists.debian.org/4C44893C.2010906@gmail.com

Andrei Popescu 07-19-2010 05:35 PM

Vim yank paste
 
On Lu, 19 iul 10, 20:19:56, Panayiotis Karabassis wrote:
> I had both vim-full and vim-tiny installed. Removing vim-tiny fixed
> this. Rather strange.

I'm guessing you were running vim-tiny. JFTA, you could have changed it
with

update-alternatives --config vim

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Panayiotis Karabassis 07-20-2010 06:56 AM

Vim yank paste
 
On 07/19/2010 08:35 PM, Andrei Popescu wrote:

On Lu, 19 iul 10, 20:19:56, Panayiotis Karabassis wrote:


I had both vim-full and vim-tiny installed. Removing vim-tiny fixed
this. Rather strange.


I'm guessing you were running vim-tiny. JFTA, you could have changed it
with

update-alternatives --config vim

Regards,
Andrei

There is only one alternative for vim even with vim-tiny installed:
vim.gnome. Strange, but since my problem is solved...


Regards,
Panayiotis


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C45489B.6010701@gmail.com">http://lists.debian.org/4C45489B.6010701@gmail.com


All times are GMT. The time now is 05:01 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.