Score:-1

There is nothing in my $HOME/.vimrc file, is that right?

kr flag

I am using an Ubuntu Desktop I think Focal, version 20 and I need to add some line numbers to my vim and I ran the following command to locate my .vimrc file:

vim --version

which says my file is in $HOME/.vimrc, but when I run vim $HOME/.vimrc, there is nothing in there. is that by default or am I in the wrong place?

waltinator avatar
it flag
`~/.vimrc` is used to customize your use of `vim`. Initially, you have an uncustomized, vanilla `vim`, with none of your customizations, so, naturally, `~/.vimrc` is empty.
Daniel avatar
kr flag
@waltinator, thank you I was not aware of that. I have not used vim in a long time and much less on an Ubuntu desktop.
Score:0
cn flag

I ran the following command to locate my .vimrc file: vim --version which says my file is in $HOME/.vimrc

It does not say that. It says that a user vimrc file can be $HOME/.vimrc or, if that does not exist, ~/.vim/vimrc. If none of these exist, the system wide configuration file /etc/vimrc is used.

If nothing is in there, then it means you did not put anything in there yet.

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.