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/88ec2910-e3e8-465b-a0e4-9cfa82568425n%40googlegroups.com.

Reply via email to