ray@vantage.UUCP (Ray Liere) (03/21/90)
I use vi a great deal, and often use it with several files in sequence in the command line (so I can :n along the series): $vi file1 file2 file3 ... My question: most of the time when I execute :n to go to the next file, the next file comes up on the screen at its beginning (which makes sense!). But sometimes, it comes up in the middle somewhere ... Does anyone know why this happens (so that presumably I could use the feature on purpose)? Thanks. Ray Liere Vantage Consulting and Research Corporation voice: (503)657-7294 uucp: uunet!nwnexus!vantage!ray -or- hplabs!hpfcla!hpubvwa!hpupora!vantage!ray Internet: vantage!ray@nwnexus.WA.COM
ray@vantage.UUCP (Ray Liere) (04/06/90)
Thanks to everyone who responded to my inquiry about vi and :n. (I had asked: >> I use vi a great deal, and often use it with several files in >> sequence in the command line (so I can :n along the series): >> $vi file1 file2 file3 ... >> >> My question: most of the time when I execute :n to go to the next >> file, the next file comes up on the screen at its beginning (which >> makes sense!). But sometimes, it comes up in the middle somewhere ... >> >> Does anyone know why this happens (so that presumably I could use the >> feature on purpose)? And learning about control-^ was great! I had not been aware of that command. I also discovered that (at least on our version of vi), if you do a $vi file1 file2 file3 and file2 does not exist, and while you are in file1 you :w to create file2, when you :n to file2 vi puts you where you were when you created it. I am impressed!! Thanks again for the help and education. Ray Liere Vantage Consulting and Research Corporation voice: (503)657-7294 uucp: uunet!nwnexus!vantage!ray -or- hplabs!hpfcla!hpubvwa!hpupora!vantage!ray Internet: vantage!ray@nwnexus.WA.COM