Thursday, May 31, 2018

First line starting with space affects cursor position when switching buffers

Hello,

I have encountered what appears to be a bug in vim,
but it might be a feature that I would like to disable.

To reproduce the problem:

Use vim to create a new file, and add 10 or so lines of text to the file.
In the first line, put at least two characters, and make sure the first character is a space or tab.
Place the cursor on the last line (or any line other than the first line).
Save the file (:w) and switch (:e) to view another file.
Switch back (:e) to the original file.
Notice that the cursor is on the first line, not where it was originally.

I am using vim 8.0 for Mac.

Dave McCooey

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: