I copy pasted init.lua from Neovim kickstarter.
Now while writing c++ code I am getting the below '?' character inside a box in Neovim
I am using Neovim in Ubuntu subsystem windows 10.
I think some character not supported in WSL, maybe.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI copy pasted init.lua from Neovim kickstarter.
Now while writing c++ code I am getting the below '?' character inside a box in Neovim
I am using Neovim in Ubuntu subsystem windows 10.
I think some character not supported in WSL, maybe.
I believe the tab
part of your listchars
option is set to a character that is not supported by your console font.
You could change that characters or characters using:
:set listchars^=-->
More information with: :help 'listchars'
.
Of course you could also change the console font and select a font that support that character (Consolas is a standard choice).
Used these below config lines in init.lua to get it resolved.
local o = vim.opt
-- Set your characters here
o.listchars = { space = ' ', tab = '| ' }
o.list = true
o.relativenumber = true
ga
what is the message you get? What is the result od the:set listchars?
command?ga
gives Null and:set listchars?
gives, trail:-, nbsp:+
<^@> 0, Hex 00, Octal 000
. If I hitg8
I have00
. Could you tell me what exact text you have?:set listchars?
givesnolist
andga
/g8
givesNUL
in message when I put the commands for?
character i.e the tab