Distributed optical fiber amplifiers with frequency dependent gain can be used to compensate the soliton self-frequency shift (SSFS) which is the major problem on subpicosecond soliton pulse transmission in fibers. In this letter, the characteristics of soliton evolution with SSFS being compensated by linearly frequency dependent gain are analyzed. An expression for estimating the effective distance of the compensation method, which is limited by the amplified dispersive waves at higher frequencies, are also obtained. As an example, we show that dispersion-shifted distributed Er3+-doped fibers can provide almost distortion-free SSFS compensation for pulses of about 800 fs over several tens of kilometers.