Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Configure VIM


    Vim's defaults leave the editor in a pretty minimal state. Let's look at some of options we can configure to make Vim feel more like a traditional editor



    Become a Member to view code

    You must be a Pro Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    orLog In




    Out of the box VIM doesn't have many features or settings enabled by default that you would expect from a traditional editors. Features can be enabled though, just by running a few simple commands. To enable syntax highlighting we first need to enter command mode by pressing shift and the colon or semi-colon key. Then we can enter "syntax on." If we wanted to disable syntax highlighting we can just run that command again, that sets the value to off instead. If you want line numbers, there's a few options.

    If you want normal line numbers you can enter "set number." Now to disable this we can just run "set no number." For those who like relative numbers, you can enter "set relative number." To disable this, you can run "set no relative number." But if you're like me and find both helpful, you can run "set number relative number." Now VIM has many more options available. To see all the options and what they do, you can enter "help option list."