|
|
 | | From: | realplayer32 at gmail.com | | Subject: | Does vim support character wrapping (not word wrap)? | | Date: | 9 Jan 2005 15:37:07 -0800 |
|
|
 | Hi everyone,
I want to have vim insert an after 78 characters. The textwidth option, :set textwidth=78, only wraps on whitespace; you could type one large word and it wouldn't be wrapped at all. The wrapmargin option acts similarly: it breaks on whitespace, not any character.
The linebreak command lets you specify what characters (in breakat) might cause a line break, but the line break is purely visual and does not insert any characters (not even show in those in showbreak).
To see what I'm asking for here, try typing this line in vim after :set tw=78:
asdfjlksjalkfjksdkfjaldkjfkladjfkljaksdjflajdsfkasjflkjsdfkajdskfjalkdjflajsdkfjjkjsdkjfk
Notice how it isn't wrapped at all.
Basically, I want every line to be 78 characters or less. Is this possible in vim?
|
|
 | | From: | Sven Guckes | | Subject: | Re: Does vim support character wrapping (not word wrap)? | | Date: | 10 Jan 2005 03:19:32 GMT |
|
|
 | * [2005-01-09]: > I want to have vim insert an after 78 characters. > The textwidth option, :set textwidth=78, only wraps on whitespace; > you could type one large word and it wouldn't be wrapped at all. > The wrapmargin option acts similarly: it > breaks on whitespace, not any character.
feature.
> The linebreak command lets you specify what characters (in breakat) > might cause a line break, but the line break is purely visual and does > not insert any characters (not even show in those in showbreak). > > To see what I'm asking for here, try typing > this line in vim after :set tw=78: > > asdfjlksjalkfjksdkfjaldkjfkladjfkljaksdjflajdsfkasjflkjsdfkajdskfjalkdjflajsdkfjjkjsdkjfk > > Notice how it isn't wrapped at all.
duh.
> Basically, I want every line to be 78 characters > or less. Is this possible in vim?
no - there is not an option for this. you could reformat your text after you have written it, though. but that's probably not what you want.
(wtfiiwt people without real names?)
Sven
|
|
 | | From: | Thomas Dickey | | Subject: | Re: Does vim support character wrapping (not word wrap)? | | Date: | Mon, 10 Jan 2005 16:57:05 -0000 |
|
|
 | Sven Guckes wrote:
> (wtfiiwt people without real names?)
Well, at least it's (reasonably apparent) that it's not a real name. There's a different case where someone makes up a name that looks real, so he can (as above) say what/when he prefers (I had one of _those_ this morning, and actually prefer realplayer32 ;-)
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
|
|
|