Skip to Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim

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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page