Tuesday, March 14, 2023

Re: Cursor behavior in insert mode (soft wrap)

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 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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c2f7fa8e-f614-4c60-84c2-ae305864fe73n%40googlegroups.com.

No comments: