Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[vim] 'wrap', but start indentation on next line like with autindent enabled?

97 views
Skip to first unread message

Markus Fischer

unread,
Jun 1, 2009, 9:51:23 AM6/1/09
to
Hi,

when I enable wrapping of long lines, is there a way that wrapping
starts in the next line starts below the first character in the current
line, like autoindent does with real physical lines?

Couldn't find anything in the options.

thanks,
- Markus

Mikolaj Machowski

unread,
Jun 1, 2009, 10:58:14 AM6/1/09
to
Markus Fischer scripsit:

> Hi,
>
> when I enable wrapping of long lines, is there a way that wrapping
> starts in the next line starts below the first character in the current
> line, like autoindent does with real physical lines?

No.

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net

haron

unread,
Jun 3, 2009, 4:18:08 PM6/3/09
to
On Jun 1, 3:51 pm, Markus Fischer <mar...@fischer.name> wrote:
> when I enable wrapping of long lines, is there a way that wrapping
> starts in the next line starts below the first character in the current
> line, like autoindent does with real physical lines?

If I understand correctly your question - yes, but you must compile
VIM yourself with "unofficial" patch:

http://groups.google.com/group/vim_dev/web/vim-patches

see patch #15 "Correctly indent wrapped lines"

--
Anton

Aaron W. Hsu

unread,
Jun 3, 2009, 5:02:47 PM6/3/09
to
haron <anton.s...@gmail.com> writes:

>http://groups.google.com/group/vim_dev/web/vim-patches

fmt(1) also works like this. Usually, if I have a paragraph that is
indented that I want to reflow, or a very long line that is indented,
and I want to keep that indent, I'll just use !! or !} and pipe it
through fmt(1). That works just fine.

--
Aaron W. Hsu <arc...@sacrideo.us> | <http://www.sacrideo.us>
"Government is the great fiction, through which everybody endeavors to
live at the expense of everybody else." -- Frederic Bastiat
+++++++++++++++ ((lambda (x) (x x)) (lambda (x) (x x))) ++++++++++++++

0 new messages