bpaqd
bpaqd

Reputation: 48

Why does vim sometimes display linebreaks incorrectly?

I have a long line of text in vim, soft-wrap is on, I've done :set linebreak, and breakat has the right value.

The problem is, when I edit some text in the middle of the "paragraph", the lines don't wrap at word boundaries anymore.

Example:

1) Cursor is in the middle of the line:

Before editing text

2) I type cw and the linebreaks change:

After "cw" command

It stays like that when I go back to normal mode, but wraps correctly again when the cursor leaves the line.

This does not happen if I add text in the middle, or do a command like dw - seemingly just commands that delete some text and enter insert mode.

The problem began on a fresh install of Fedora 21, but my .vimrc is unchanged from my previous computer, where I did not have this problem.

How do I restore the correct behavior, or is this perhaps a bug in the Fedora package?

Upvotes: 0

Views: 90

Answers (1)

Christian Brabandt
Christian Brabandt

Reputation: 8248

I believe, this is a bug, that has been fixed with 7.4.576

Upvotes: 1

Related Questions