

You can run any command using the options -c or +.NONE - Don’t load any vimrc nor plugins.NORC - Don’t load any vimrc but load your plugins.You can also use of of these value instead of a vimrc for debug purposes: You can use the option -u when you run Vim in your terminal, to load another vimrc file instead of the default one.Setting the option exrc can be dangerous: Vim can load potentially unsecure vimrc files you might have downloaded with other files.In Lua or Vimscript for Neovim (located in $HOME/.config/nvim/init.vim, or $XDG_CONFIG_HOME/nvim/init.vim if $XDG_CONFIG_HOME is set).In Vimscript for Vim (located at $HOME/.vimrc).If you want to run more than one command using $VIMINIT, you can separate them with the symbol |.Execute the options given to Vim affecting the startup.


The value of the environment variable $VIMINIT (an Ex command) is executed.Buffers are created for all files given as arguments. Process the arguments given to the CLI.Set the shell options (useful for the command :!, and for Vim’s terminal).I describe here a simplified version, trying to underline the most important steps. When you start Vim, many things happen behind the curtain before your favorite cursor is displayed on the screen. Take your headlamp and a good rope, we’ll go exploring today many paths in our filesystems. If you like my articles about Vim, I’m currently writing an ambitious book about The Best Editor™ with many more tips!
