1832864 Members
2959 Online
110048 Solutions
New Discussion

unwanted tabs

 
SOLVED
Go to solution
Martin Gallagher
New Member

unwanted tabs

I have a problem pasting text into a text file
using vi on HPUX. I have scoured the Web for an answer with no luck. The problem is that when I paste the text I get unwanted tabs
being inserted on each new line, with each
subsequent new line having more tabs than the
previous. This only happens when I have spaces or tabs as the first characters on the lines.
This leads to horizontal scrolling and unreadable files.

I am using HP-UX Release B.11.00
Terminal emulator is QVT/Term 5.1

Can anyone help???

Cheers

Martin

A toned-down example below:


if [ ! -d $HOME/.sh_history_dir ]
then
mkdir -p $HOME/.sh_history_dir
chmod 700 $HOME/.sh_history_dir
fi

# ENV variable for use outside VUE

if [ ! "$VUE" -a ! "$DTSOURCEPROFILE" ]
then
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor
Solution

Re: unwanted tabs

Have you set 'autoindent' in ~/.exrc or $EXINIT?
Enjoy, Have FUN! H.Merijn
Steve Steel
Honored Contributor

Re: unwanted tabs

Hi

It is autoindent

You have a file .exrc with this in it.
set autoindent autowrite showmatch wrapmargin=0 report=1


To test
In vi

:set noai

Then try

steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill McNAMARA_1
Honored Contributor

Re: unwanted tabs

alternatively in your vi session, use

:set all

to get a list of properties to set/change.

You can set the autoindent via:

:set noautoindent

Later,
Bill
It works for me (tm)
Martin Gallagher
New Member

Re: unwanted tabs

Thanks Guys

This was the problem ...
damn these hidden files - didn't even know I had it! :)