mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Run nvim With Factory Defaults as a Neovim TIL
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1638 TILs and counting..._
|
_1639 TILs and counting..._
|
||||||
|
|
||||||
See some of the other learning resources I work on:
|
See some of the other learning resources I work on:
|
||||||
- [Ruby Operator Lookup](https://www.visualmode.dev/ruby-operators)
|
- [Ruby Operator Lookup](https://www.visualmode.dev/ruby-operators)
|
||||||
@@ -739,6 +739,7 @@ If you've learned something here, support my efforts writing daily TILs by
|
|||||||
- [Allow Neovim To Copy/Paste With System Clipboard](neovim/allow-neovim-to-copy-paste-with-system-clipboard.md)
|
- [Allow Neovim To Copy/Paste With System Clipboard](neovim/allow-neovim-to-copy-paste-with-system-clipboard.md)
|
||||||
- [Create User Command To Open Init Config](neovim/create-user-command-to-open-init-config.md)
|
- [Create User Command To Open Init Config](neovim/create-user-command-to-open-init-config.md)
|
||||||
- [Run A Lua Statement From The Command Prompt](neovim/run-a-lua-statement-from-the-command-prompt.md)
|
- [Run A Lua Statement From The Command Prompt](neovim/run-a-lua-statement-from-the-command-prompt.md)
|
||||||
|
- [Run nvim With Factory Defaults](neovim/run-nvim-with-factory-defaults.md)
|
||||||
- [Set Up Vim-Plug With Neovim](neovim/set-up-vim-plug-with-neovim.md)
|
- [Set Up Vim-Plug With Neovim](neovim/set-up-vim-plug-with-neovim.md)
|
||||||
|
|
||||||
### Netlify
|
### Netlify
|
||||||
|
|||||||
23
neovim/run-nvim-with-factory-defaults.md
Normal file
23
neovim/run-nvim-with-factory-defaults.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Run nvim With Factory Defaults
|
||||||
|
|
||||||
|
Most of the fun of using Neovim is tailoring it to your exact needs with custom
|
||||||
|
configurations. Your configuration can be made up of environment variables,
|
||||||
|
`init.lua`/`init.vim`, and user directories on the `runtimepath`.
|
||||||
|
|
||||||
|
Perhaps though, you want to load neovim with its "factory defaults". You want
|
||||||
|
to ignore all your custom config and your _shada_ (shared data) file. I wanted
|
||||||
|
to do just that recently to verify that neovim has the `ft-manpage` plugin
|
||||||
|
enabled by default (as opposed to enabled somewhere in the labryinth of my
|
||||||
|
config files).
|
||||||
|
|
||||||
|
The `--clean` flag does just this. It loads built-in plugins, but none of the
|
||||||
|
user defined config.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ nvim --clean
|
||||||
|
```
|
||||||
|
|
||||||
|
This is different than `nvim -u NONE` which excludes all plugins, including
|
||||||
|
built-in ones.
|
||||||
|
|
||||||
|
See `man nvim` and `:help --clean` for more details.
|
||||||
Reference in New Issue
Block a user