lin q wrote: > Great, this works. > > Another question, ":tabe %" can open the same file, is there an easy way > to open another file which locates in the same or very similar directory > of the current file? > > For example, I am viewing f2 now, and I want to open f3 which is of same > directory of f2 and to open f4 whose path is <f2 location>/../i/f4. > > Any trick to do this?
:tabe %:p:h/f2 | tabe %:p:h/../i/f4 See :he :_% and :h filename-modifiers. -- HTH, Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/
signature.asc
Description: OpenPGP digital signature