Minimal Configuration

To follow the examples in this book, you’ll need to make sure that ‘nocompatible’ is set and that filetype detection is enabled. Prior to version 8 of Vim, you had to specify these settings in your vimrc file:

 set​ nocompatible
 filetype​ plugin indent ​on

With the release of Vim 8, these are now default settings (:help defaults.vim). That means you don’t have to include those lines in your vimrc, unless you want to keep your configuration backward compatible with older versions of Vim. You can check that filetype detection is enabled by running:

=> :filetype
<= filetype detection:ON plugin:ON indent:ON

Make sure that you can see detection:ON, otherwise you’ll have trouble following some of the tips in this book.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.175.180