From the course: Learning Vim
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Various settings
- [Instructor] There are many, many settings you can use in Vim. You can use the built in help system to view them all. Let's start Vim, and then, to access the help system, colon help, and we'll search for the topic. In our case, option summary. This gives us the summary of options that are available, but if we go down, we'll start to see the options. Here, we have aleph, which is a number, et cetera, et cetera. If you'd like to view the current settings, use set. Let's close this window, with colon close, and then, colon set, and enter, and we see the current set option. Number comes from our vimrc, and the rest are some defaults for the system, and again, enter to go back to Vim. Let's cover some useful options. By default, search in Vim is case sensitive. Let's open e sherlock.txt, and let's start looking for Sherlock. So, forward slash sherlock, and it doesn't find it, because Sherlock is written with a capital S. If you set the ignore case, or ic, you can have case insensitive…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Configuration files1m 57s
-
(Locked)
Challenge: Set line numbers5s
-
(Locked)
Solution: Set line numbers15s
-
(Locked)
Map keys1m 14s
-
(Locked)
Challenge: Map key6s
-
(Locked)
Solution: Map key19s
-
(Locked)
Abbreviations1m 47s
-
(Locked)
Challenge: Abbreviate email14s
-
(Locked)
Solution: Abbreviate email27s
-
(Locked)
Add commands1m 35s
-
Challenge: Create command15s
-
(Locked)
Solution: Create command27s
-
(Locked)
Various settings2m 46s
-
(Locked)
Challenge: Edit .vimrc10s
-
(Locked)
Solution: Edit .vimrc34s
-
(Locked)
-
-