From owner-freebsd-questions Mon Mar 31 19:36:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA04684 for questions-outgoing; Mon, 31 Mar 1997 19:36:52 -0800 (PST) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA04679 for ; Mon, 31 Mar 1997 19:36:50 -0800 (PST) Received: from localhost (andrsn@localhost.Stanford.EDU [127.0.0.1]) by andrsn.stanford.edu (8.7.5/8.6.12) with SMTP id TAA14910; Mon, 31 Mar 1997 19:17:30 -0800 (PST) Date: Mon, 31 Mar 1997 19:17:30 -0800 (PST) From: Annelise Anderson To: jadeite cc: Jack W Doyle , freebsd-questions@freebsd.org Subject: Re: vi question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 31 Mar 1997, jadeite wrote: > 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. Yes, but if you do that, you'll get hard carriage returns at the end of every line. This is not "like a wordproc". Annelise > > 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. > > >