View previous topic :: View next topic |
Author |
Message |
detz Apprentice
Joined: 19 Feb 2004 Posts: 175
|
Posted: Wed May 11, 2005 11:14 pm Post subject: help, pasting text in console make it's all out of alignment |
|
|
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 |
|
|
spb Retired Dev
Joined: 02 Jan 2004 Posts: 2135 Location: Cambridge, UK
|
Posted: Wed May 11, 2005 11:33 pm Post subject: Re: help, pasting text in console make it's all out of align |
|
|
|
|
Back to top |
|
|
detz Apprentice
Joined: 19 Feb 2004 Posts: 175
|
Posted: Thu May 12, 2005 12:01 am Post subject: |
|
|
can I make it so it does not reset after I quit? |
|
Back to top |
|
|
nightm4re Guru
Joined: 20 Jun 2004 Posts: 519 Location: Providence, RI, USA
|
Posted: Thu May 12, 2005 12:25 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20417
|
Posted: Thu May 12, 2005 4:42 am Post subject: |
|
|
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 |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20417
|
Posted: Thu May 12, 2005 5:05 am Post subject: |
|
|
Thanks _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|