Vim is a very powerful text editor and as such it has lots of options which allows you to configure it “just right” for you! In order to configure it you can set up values to its various options either in the current window you are working on or in configuration file so that every new instance launched will have common settings. This file is usually called vimrc and is located under your home catalog.
But what happens if you wish to reset the value of an option you have configured in this configuration file for just this window that you are currently working in? I found that to be more difficult than expected so, here is how you can:
- Start a clean instance of vim with all its default options that ignores all the settings in all the user defined configuration files
- Get the currently set options and their values
- Disable/reset options that I will call switches
- Reset any option to each default value (whatever that might be)