Tuesday, March 14, 2023

Cursor behavior in insert mode (soft wrap)

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/de7a169b-c961-4be4-8c81-abc180b6655cn%40googlegroups.com.

No comments: