From owner-freebsd-questions Mon Mar 31 18:13:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA29721 for questions-outgoing; Mon, 31 Mar 1997 18:13:35 -0800 (PST) Received: from light.pomona.edu (light.pomona.edu [134.173.72.79]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA29708 for ; Mon, 31 Mar 1997 18:13:30 -0800 (PST) Received: from localhost (jadeite@localhost) by light.pomona.edu (8.8.5/8.8.5) with SMTP id SAA02158; Mon, 31 Mar 1997 18:13:27 -0800 (PST) Date: Mon, 31 Mar 1997 18:13:27 -0800 (PST) From: jadeite To: Jack W Doyle cc: freebsd-questions@freebsd.org Subject: Re: vi question In-Reply-To: <19970331.191652.12022.0.N9OGK@juno.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, You can type (within vi) :set wrapmargin=#, where # is the size of the right margin that will be used to autowrap the text as you type. You can type :set wrapmargin? to find out the default value. If you would like this to be set everytime you start up vi, you call make a .exrc file in your home directory and that will be your default configuration. If you would like shortcut keys, you can type "map shortcut_keys sequence_of_commands" eg. map nw :set wrapmargin=0 Hope this helps. On Mon, 31 Mar 1997, Jack W Doyle wrote: > One question: How can I set vi to automatically wrap words like a > wordproc, with another alias to override that setting if I am to write > programs? > > Jack > > > You know you've been using UNIX enough when: > * You remember UNIX commands faster than those for DOS. > * You try to configure Win95 the same way you try to configure your X > window manager. > * Someone asks you what wordproc you use and you reply 'vi' (or your > favorite text editor). > * You type 'ls -a' instead of 'dir /w' in DOS. >