Line number 7 shows the paste of a macro I recorded. When I copy/paste it, the following 4 lines is what I get. I know we can replace ^[ character using <ESC>, but thats not just one, there is ^M & that too in many places. It doesn't seem to be a scalable way to get things done. I feel there is a better way to deal with this than by manually replacing the special characters. If anyone is aware of a better solution, please suggest?
Related
What i am looking to achieve is simple, but i am a noob in this and i have tried to get that done.
I am used to copy in excel but in Emeditor i feel there is a better way of doing that, afterall it opens more file.
I do not want to be copying-down specific line range like i do in excel.
For instance, if i have a file that is 20million lines, and i need to copy only specific range, maybe between 1-2M or from 2M to 5M, without having to highlight and copydown, how do i go about it?
I will appreciate your responses.
Press F8 (or Ctrl+F8 to select whole lines) to mark the
beginning point of a selection.
Press Ctrl+G and specify the destination line number/column to jump to the ending point.
Press Ctrl+C to copy the selection.
This is not really a question, more an answer to a problem someone else might have in the future, and it was a pain to work out what the problem was. I guess this is an okay place to put it.
If you copy code from visual studio into an excel cell, then it will replace spaces with other white space characters. This means that when you try to compare against it later, or look it up in a dictionary, it will not match/find it.
It's actually an Excel issue.
Is there a way to turn this behavior off?!
Using Excel/Word 2007 I'm trying to copy multiple selections from Excel to Word. When I paste it into Word it's as if it ignored the break in the ranges and just pastes a range that includes everything I was trying to leave out.
For instance if I intend to copy/paste "A2:D4, A6:D7, A10:D11" what is actually pasted in word is "A2:D11", so it's ignoring the breaks in the selections. I can't seem to find any documentation on this issue anywhere. If someone knows anything I'd really appreciated it. I know I'm selecting the ranges properly because if I copy and paste the multiple ranges within Excel it works like it should.
The actual issue is that I have these actions automated in a macro and I'd really prefer not to loop through the individual ranges because they're stored in a dictionary and it would be just a real hassle. Despite that, it seems weird that I can't even accomplish the task manually.
I've done quite a bit of digging and can't seem to come up with anything. I thought about using the Office clipboard but you can't paste tables as an RTF. It doesn't seem like there are any options when pasting with the office clipboard.
AFAIK it doesn't seem possible and I've tried to exhaust all my normal avenues of knowledge before posting here. If anyone has ever just experienced this it would be comforting to know I'm not alone.
I don't know how to prevent that from happening, but you could potentially work around it by pasting your non-continuous selection into a continuous region in a new, temporary sheet/workbook, then copying the continuous region from the temp sheet/workbook into word.
a bit of a hassle, yes, but it should get the job done.
What I want to do is:
(1) Copy a piece of code and paste into a buffer in Vim;
(2) Copy another piece of code and paste into another buffer in Vim;
(3) Compare these two buffers directly without saving them into files.
I know this can be done easily with Notepad++. I need to do this quite often, and I want to know if Vim can do this. Thanks!
You can do :diffthis on each window you want to compare.
See :help diff.
Is there a way I can select a portion of multiple lines in vim and then paste them at the end of another block of lines. For instance if I want everything after the equal sign from:
qw=12345
er=23435
and pasted into:
ty=
ui=
What would I have to do?
This seems real simple, but for some reason, I am completely stuck.
You are looking for block selection mode.
Please note the different keybinding for Windows platforms.