8/18/2023 0 Comments Update time vimrFor example: vim +"set shiftwidth=4|echo 'hello'" 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.Source the shada file (for Neovim) or the viminfo file (for Vim).Load runtime’s and plugin’s scripts from the “after” folder.Source filetypes, filetype plugins, and indent plugins.Keep in mind however that setting “exrc” is not secure. If the option “exrc” is set, Vim will try to find and load a vimrc in the working directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |