Saluton Raphael :)

Raphael Jolivet <[email protected]> dixit:
> This is anoying when you have copied some text and wwant to paste it
> at several places, while delteing other text : You clipboard get
> spammed with the content of what you delete !
>
> Do you know if it is possible to disable this behavior ?

IMHO, you shouldn't disable this behaviour, you should learn to use it
in your favor.

Whenever you delete text, it is put by default in the unnamed register
and the numbered registers. There is no such thing as an unique
clipboard in Vim, you have registers (":help registers"). If you want to
copy some text and be able to paste it later while deleting some lines
in between, doesn't just yank it to the unnamed register and the
numbered registers (using "yy" for example), but yank it to some
register you can use afterwards. Use the named registers.

For example, if you want to save a line of text to paste it later, use
"ayy to put that line in the "a" register. You have to type the double
quote, letter "a", letter "y" and letter "y". After that you can delete
lines ("dd" command) and they will be put into the unnamed and numbered
registers, not clobbering your "clipboard" (which is the "a" register
now). To paste the lines you saved to your "clipboard", use the "ap
command, that is, double quote, letter "a", letter "p".

See the help for registers to understand how this works and you will
discover that you no longer want to disable this feature, but to use to
your gain ;)

-- 
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

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

Reply via email to