Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help, pasting text in console make it's all out of alignment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
detz
Apprentice
Apprentice


Joined: 19 Feb 2004
Posts: 175

PostPosted: Wed May 11, 2005 11:14 pm    Post subject: help, pasting text in console make it's all out of alignment Reply with quote

ORIGINAL:

function nothing(){
print 'this does not work in VI for some reason
when I paste this code it's going to come out all messed up and it makes
programming a pain in the butt.

if (1){
print 'Im pretty sure it's VI because on other systems it works but';
}

print 'any ideas?';
}


AFTER PASTING IN VI

function nothing(){
print 'this does not work in VI for some reason
when I paste this code it's going to come out all messed up and it makes
programming a pain in the butt.

if (1){
print 'Im pretty sure it's VI because on other systems it works but';
}

print 'any ideas?';
}


it's like it carries the tabs down for each line and adds them on.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Wed May 11, 2005 11:33 pm    Post subject: Re: help, pasting text in console make it's all out of align Reply with quote

Code:
:set paste
Back to top
View user's profile Send private message
detz
Apprentice
Apprentice


Joined: 19 Feb 2004
Posts: 175

PostPosted: Thu May 12, 2005 12:01 am    Post subject: Reply with quote

can I make it so it does not reset after I quit?
Back to top
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Thu May 12, 2005 12:25 am    Post subject: Reply with quote

detz wrote:
can I make it so it does not reset after I quit?


put it in your ~/.{g}vimrc?
_________________
Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20417

PostPosted: Thu May 12, 2005 4:42 am    Post subject: Reply with quote

I've wondered this as well, but don't do it often enough to try and solve it.

Question... would adding it to the rc file cause any other problems?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu May 12, 2005 5:01 am    Post subject: Reply with quote

pjp wrote:
Question... would adding it to the rc file cause any other problems?
https://forums.gentoo.org/viewtopic-p-2105667.html#2105667
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20417

PostPosted: Thu May 12, 2005 5:05 am    Post subject: Reply with quote

Thanks
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum