Using these optionsset wrap linebreak nolistset showbreak=~ adds specified character after wrapset breakindent forces word wrap to start at last lines indentation levelset display=lastline shows as much of last line as possible in wrap modewhen editing prose that expands over multiple lines, if you insert text the wrapping will correctly keep adjusting.If you instead do cw or 2cw or whatever, text no longer wraps on word, but visually appears to be wrapped by character. But this is actually false, because when you hit x or some similar command, the character deleted is not the one that was under the cursor.I have to hit :se wrap to adjust the text after doing a 2cw type of command.Is there a setting I'm missing, or one I'm using that might be causing this bug?Using just the plain mac osx Terminal.appUpdate:I am able to reproduce this bug after commenting out my whole .vimrc and running onlyset wrap linebreak nolistSo if I c2w, and f, ; a few times to get to a comma on the next line, the cursor will highlight with an inaccuracy of the number of characters that should have been wrapped. So if Perhaps was cut off at Perh the cursor will be on the second e in , deeper, but pressing x will still delete the comma. So it's a visual problem.It might not be obvious, but this is a case where you insert more than you deleted with the change command. So cw a man and replace with something there or whatever, in order to force the wrapping to need to readjust.
wrap breaks when using delete or change word type commands
cursor motions;wrapping;line breaks
My version of vim was out of date. As Christian Brabandt pointed out, patch 576 repaired this bug.To update my vim on Mac OSX, I usedbrew updatebrew upgrade vimWithout update, brew thought I had the latest version.