LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.17k forks source link

can't select the 'new line' character in visual mode. #195

Closed meiningnie closed 1 year ago

meiningnie commented 1 year ago

This is a nice configuration, but there seems to be a small problem. In visual mode, I can no longer move the cursor to the end of the line to select the "new line" character.

meiningnie commented 1 year ago

with some debugging, I found it caused by "lualine" and "indentline". After I commented out both of them in "init.lua", this problem disappears. But I didn't figure out the reason.

meiningnie commented 1 year ago

I added this to options.lua and it seems to work. vim.cmd "set virtualedit+=onemore" Side effect is now I can move past the end of the line in normal mode too. But I'm OK with it.