Skip to Content
Mastering Vim
book

Mastering Vim

by Ruslan Osipov
November 2018
Beginner
330 pages
7h 21m
English
Packt Publishing
Content preview from Mastering Vim

Keeping .vimrc organized

If you use and customize Vim a lot, your .vimrc file tends to grow rather quickly, and it's important to make it easy to navigate. If you ever take a break from working with your .vimrc and come back later, you'll thank yourself.

Comments are crucial for making sure you remember what's going on. If you take just one thing from this chapter, make sure it is comments. Just like when working with code, comments save you wasting time trying to understand what's going on.

I try to make a point of documenting every configuration bit with a corresponding comment:

" Show last command in the status line.set showcmd" Highlight cursor line.set cursorline" Ruler (line, column and % at the right bottom).set ruler" Display line ...
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

Mastering Vim

Mastering Vim

Damian Conway
Vim Masterclass

Vim Masterclass

Jason Cannon
Modern Vim

Modern Vim

Drew Neil

Publisher Resources

ISBN: 9781789341096Supplemental Content