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

Using Factory Settings

Some of the tips in Modern Vim are written on the assumption that you’re running Vim with the “factory settings.” If you want to follow the steps in these tips, you can do so by temporarily moving your Vim configuration to a location where it will be ignored when you start up your editor. For example, you could rename your Vim 8 configuration files like this:

=> $ mv ~/.vim ~/.xvim
=> $ mv ~/.vimrc ~/.xvimrc
=> $ mkdir ~/.vim

After following the tip, you can restore your Vim configuration by moving the files back to their original locations:

=> $ rm -r ~/.vim
=> $ mv ~/.xvim ~/.vim
=> $ mv ~/.xvimrc ~/.vimrc

For Neovim, you could switch to the factory settings by running:

=> $ mv ~/.config/nvim ~/.config/xnvim ...
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