This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Configure VIM

1:16 Tools lesson by

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


egghead.io comment guidelines

Avatar
egghead.io

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

Avatar
Kristian Mørch

Transcript: To see all the options and what they do, you can enter "help option list."

Didn't work, but "help option-list" worked.

Thanks for a great course on vim.

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

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?