Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!nbires!hao!boulder!sunybcs!rutgers!im4u!jai From: jai@im4u.UUCP (Jai Srinivasan) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: vi tips- summary number one Message-ID: <2137@im4u.UUCP> Date: Sun, 13-Sep-87 12:28:56 EDT Article-I.D.: im4u.2137 Posted: Sun Sep 13 12:28:56 1987 Date-Received: Sun, 13-Sep-87 21:45:31 EDT References: <601@augusta.UUCP> <2551@okstate.UUCP> Reply-To: jai@im4u.UUCP (Jai Srinivasan) Organization: U. Texas CS Dept., Austin, Texas Lines: 24 Xref: mnetor comp.unix.questions:4050 comp.unix.wizards:4227 In article <2551@okstate.UUCP> gregg@a.cs.okstate.edu (Gregg Wonderly) writes: >What most VI users fail to discover is that you can use the 'd', 'y', and 'c' >commands to effect their purpose on any region that is delimited by moving >the cursor with the following keystrokes. Add to that list >, < and ! which left shift, right shift and filter text through commands respectively. >'s' is 'cl', 'C' is 'c$', 'D' is 'd$' and 'S' is 'cc' (which makes absolutly no >sense). All you have to do is learn the movements, and then you know how to >yank/delete/change whatever region of text you desire. Similarly 'Y' is 'yy'. I prefer to map 'Y' to 'y$' for consistency. The "operators" >, < and ! don't have a shifted analogue, naturally. Other mappings convenient for typing are 'g' to 'G' and 'v' to 'J' (join lines). 'g' and 'v' have no assigned function in the regular command set. -------- Jai Srinivasan, UUCP: {gatech,harvard,ihnp4,pyramid,seismo}!ut-sally!im4u!jai ARPA: jai@im4u.UTEXAS.EDU, jai@sally.UTEXAS.EDU -----------------------------