You are not logged in.
I have been using vim and I just installed neovim. I have found that neovim uses the same .vimrc file for its configuration, if so, why do I get completely different colors for the same file on vim and neovim?
Last edited by b42 (2023-10-15 20:55:25)
Offline
vim and nvim don't use the same configuration (compare /usr/share/vim vs. /usr/share/nvim)
vim by default just uses your terminal color scheme (so colors depend on your terminal configuration), and nvim by default sets rgb colors directly (if terminal supports it)
thus nvim ignores your terminal color scheme
Offline
where can I find neovim config file like .vimrc?
Offline
Offline
that is the thing I even dir nvim does not exist under ~/.config/ on my system
Offline
man mkdirOffline
I know how to make a directory.
Does it mean if I create ~/.config/nvim nvim config file will pop up automatically ?
Offline
Automagically filled with what content?
It's a config file. The purpose is to configure the application. The entity doing that configuration would be you?
Offline
So my question is, if ~/.config/nvim does not exist, where does nvim pull its configuration from?
Offline
That's exactly described in the link I posted in #4. Read!
Offline
okay, sorry I found it.
what do I put in init.vim to have my cursor where I left it before I closed the file?
Offline
https://www.google.com/search?q=vim%20r … 20position and what does that have to do w/ neovim or anything in this thread?
Offline