Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site turtlevax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!amdcad!cae780!weitek!turtlevax!ken From: ken@turtlevax.UUCP (Ken Turkowski) Newsgroups: net.unix Subject: Non-equivalence of targets in vi Message-ID: <1032@turtlevax.UUCP> Date: Sun, 19-Jan-86 02:26:44 EST Article-I.D.: turtleva.1032 Posted: Sun Jan 19 02:26:44 1986 Date-Received: Tue, 21-Jan-86 01:16:26 EST Organization: CIMLINC, Inc. @ Menlo Park, CA Lines: 26 Keywords: [[ and ]] All of the operators in vi can be used with nearly any target with count modifiers: Operators Targets c d y w W e E b B ( ) { } % ^ $ 0 H M L h j k l f F t T | ' For example, "c2t," will change the text from the cursor position until the character before the second comma. I say "nearly", because I can't seem to figure out how to do it with the section targets [[ and ]]. Suppose I want to delete the next two sections so that I could put them in a different place. You'd think that d2]] would be the natural way to express this action, but vi just beeps me. I've also tried 2d]] and d]2] to no avail. Any suggestions? -- Ken Turkowski @ CIMLINC, Menlo Park, CA UUCP: {amd,decwrl,hplabs,seismo,spar}!turtlevax!ken ARPA: turtlevax!ken@DECWRL.DEC.COM