Quoting Juda Ronen from StackOverflow [1]: > I’ve noticed a weird behaviour of (g)Vim: say I have a window with a line > longer than its width and I’ve `set wrap linebreak cursorline`, if I hit `s`, > `S`, `c`<motion> or `cc` (but not `i`, `a` `o` or `O`) on another line and > then hit `<cr>`, lines on this window are for some mysterious cause no longer > wrapped at word boundaries (it looks as if I’ve set wrap nolinebreak). If I > hit `Esc` and then `j` or `k` it returns to normal display. > > It occurs when invoking Vim "tabula rasa" (`vim --noplugins -u NONE` or `gvim > --noplugins -u NONE`) as well. My machine is Arch Linux, and the Vim version > I use is 7.4.537. I’ve tested it on another Arch Linux machine I have and it > behaves the same, but when I sshed my DreamHost account, on which Vim 7.3.429 > is installed, it behaves as it should.
I have recorded a video of the bug here [2]. Notice how when entering insert mode via `cw`, it all the text shifts, and it appears as if the `set linebreak` option has been disabled. [1]: http://stackoverflow.com/questions/27390732/the-linebreak-option-doesn-t-work-well-in-vim-when-s-s-or-c-cr-are-used?noredirect=1#comment43740122_27390732 [2]: https://www.youtube.com/watch?v=EU9ipUjf7fI&list=UUr7H883CI6J2cu0x0mzUSfQ P.S. Apologies if something is out of order, this is my first post here. Let me know if I can do anything better. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
