Results 1 to 3 of 3
Hi all. Whenever I copy/paste from xterm to xterm into vim my text ends up pasting skewed. If it was supposed to be:
Code:
1
2
3
4
it pastes ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-22-2007 #1Linux Newbie
- Join Date
- Oct 2006
- Posts
- 101
vim paste skew
Hi all. Whenever I copy/paste from xterm to xterm into vim my text ends up pasting skewed. If it was supposed to be:
it pastes like this:Code:1 2 3 4
this is really bugging me, I have to edit in xedit to fix it.Code:1 2 3 4
Thanks!--Erik
- 05-24-2007 #2
This is because you are pasting pre-formatted text into vi, which does its own in-line formatting (for instance, indenting).
The best way to avoid this is to run ":set paste" before pasting, then ":set nopaste" afterwards. This will disable all formatting so that you can paste easily, then re-enable whatever you had had originally.
- 05-24-2007 #3Linux Newbie
- Join Date
- Oct 2006
- Posts
- 101
Thanks! Works great
--Erik


Reply With Quote
