I have seen that the .vim
directory is in $XDG_CONFIG_HOME/
, but it isn't. The closest I can find is /etc/vim/
, but that does not contain what I need (namely, init.vim
). Am I missing something?
I am running Vim 8.1, on Ubuntu 20.04.2 x86_64.
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 communityVim/Neovim config file/directory must be created manually.
For Neovim the default location is ~/.config/nvim/init.vim
, unless you have custom $XDG_CONFIG_HOME
set.
For Vim it's either ~/.vimrc
or ~/.vim/vimrc
.
In any case exact rules are described under :h $MYVIMRC
topic of the help system.
/usr/share/vim*
... personal vimrc you create yourself. Also, start vim and do:echo $VIMRUNTIME $MYVIMRC
AND:version
... with all that you should have everything you need.init.vim
in.vim
in the installation guide. This is my first time messing with vim.