Date: Mon, 31 Mar 1997 18:13:27 -0800 (PST) From: jadeite <jadeite@light.pomona.edu> To: Jack W Doyle <n9ogk@juno.com> Cc: freebsd-questions@freebsd.org Subject: Re: vi question Message-ID: <Pine.BSF.3.95q.970331180718.2069A-100000@light.pomona.edu> In-Reply-To: <19970331.191652.12022.0.N9OGK@juno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970331180718.2069A-100000>