Score:1

Vim/NVim shows a weird character at cursor in terminal for comment lines

wf flag

I am using Ubuntu 23.04.

I don't have a custom .vimrc; I am using the system default.

EDIT: The following paragraph applies to only commented lines i.e. those beginning with a #. Non-commented lines don't have this issue.

When I open Vim/NVim on the tty terminal, the character at the block cursor in Normal mode (for a commented line) is weird e.g. the word "example" appears as "eGample" when the cursor is on the 'x'. Whitespace appears as 'I'.

This behavior disappears when I am in INSERT mode and the cursor changes to an underscore.

Also, when I use Vim/NVim from a terminal opened from a Desktop Environment (I am using KDE), then things work fine for all lines, commented or not.

What is wrong in the text terminal console for Vim? Please help!

Melvin Q. Watchpocket avatar
ua flag
What happens when you refresh the screen? Are you sure your $TERM environment variable is correct, and that your .vimrc term setting matches it?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.