In this paper, a generalized nonlinear Schrodinger equation with variable coefficients is investigated. According to the analytic soliton solutions, the dromion-like structures between soliton interactions are revealed, and interaction properties are discussed. By changing the values of gain/loss, group velocity dispersion and self-phase modulation parameters, influences of them on interaction intensity and phase of solitons are presented. Besides, methods of controlling the path and spacing of solitons are suggested. Results of this paper may be potential valuable to the study of soliton interactions in inhomogeneous optical fibers and have applications in all-optical switches.