So the question is what exactly do you want to happen? When I have linebreak and wrapmagin=0 I get no hard breaks.
On Wednesday, March 15, 2023 at 3:38:54 AM UTC-6 hcf wrote: > I might have been to fast on the trigger here. From :help linebreak it > seems to me that wrapmargin turns on "hard wrap" and inserts eol-characters. > > onsdag 15. mars 2023 kl. 09:40:37 UTC+1 skrev hcf: > >> I literally only had the three lines in my .vimrc. Setting wrapmargin to >> a non-zero value changed the cursor behavior. It now behaves as expected in >> insert mode. Thanks! But it also changed how vim reflows the visual >> display. With wrapmargin=0 vim will reflow my paragrahs fine when i delete >> words in the begin of the paragraph. This is what I want to achieve. With >> Wrapmargin set to a positive value, Vim will not reflow my visual display >> when I delete words early in a paragraph. >> onsdag 15. mars 2023 kl. 07:45:45 UTC+1 skrev Steve Martin: >> >>> I'm not entirely certain this is a VIM issue. I cannot reproduce what >>> you describe in my VIM. >>> >>> However, first of all what do you have "wrapmargin" set to? Also, do you >>> change "breakat" from the standard set of characters to break on? >>> >>> On Tuesday, March 14, 2023 at 5:18:33 AM UTC-6 hcf wrote: >>> >>>> I'm trying to configure a desired behavior when soft-wraping text. >>>> >>>> I only have three lines in my .vimrc >>>> set nocompatible >>>> set wrap >>>> set linebreak >>>> >>>> >>>> This work as I would expect, except from the moment when vim actually >>>> wraps text. When I write a word that takes me to the end of the line, the >>>> cursor jumps to the next line while the word stays on the previous line. >>>> If >>>> I then press ‹space›, the last word moves to the same line as the cursor. >>>> I >>>> would like the cursor to stay on the same line as the last word when >>>> typing. >>>> >>>> Basically, I think I'm trying to acomplish what is standard word-wrap >>>> and insert in other editors/word processors. >>>> >>>> Is there a way to accomplish this? Is this due to terminal settings? >>>> >>>> (I have posted the same question here >>>> <https://vi.stackexchange.com/questions/39645/vim-for-writing-prose-cursor-in-insert-mode-with-soft-wrap> >>>> two >>>> months ago, but no answer yet) >>>> >>>> Best regards >>>> hcf >>>> >>> -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/53f2bfa1-7773-48a6-94e9-0fbf8b83ced2n%40googlegroups.com.
