Tuesday, April 10, 2012

How to do a relative paste?

Hi, how can I paste keeping both the original indent and the indent
of pasted text, but not increasing with each line?

In other words, let's say I have this text:

#slide {
top: 10px;
}

I want to paste it to a location that looks like this:

<style>
li { float: left }
|
</style>

| indicates where it should be pasted. It should end up looking like:

<style>
li { float: left }
#slide {
top: 10px;
}
</style>

It seems like a pretty reasonable default paste behaviour, doesn't it?

-ak

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: