Learn Vim at your own pace with my self-study Core Vim Course.

Learn more

Learn Vim at your own pace with my self-study Core Vim Course.

How to use tabs

#9

Run time:

Vim’s treatment of tabs is a little different than what you might be used to if you are coming from another editor. In this episode I demonstrate how Vim’s tabs can be used to group split windows together. I also show how to use Vim’s tabs like projects in TextMate, by setting a different working directory for each one.

Shownotes

You can reveal the current directory with the command:

:pwd

To change the working directory for the current tab, use the command:

:cd

Note that both :pwd and :cd commands are native to Vim. You can call the equivalent commands for your shell by running :!pwd or :!cd.

Further reading

Comments

Level-up your Vim

Training

Boost your productivity with a Vim training class. Join a public class, or book a private session for your team.

Drew hosted a private Vim session for the shopify team that was one of the best workshops I have ever attended.

John Duff, Director of Engineering at Shopify

Publications

Make yourself a faster and more efficient developer with the help of these publications, including Practical Vim (Pragmatic Bookshelf 2012), which has over 50 five-star reviews on Amazon.

After reading it, I've switched to vim as my default editor on a daily basis with no regrets. ★★★★★

Javier Collado

Learn to use Vim efficiently in your Ruby projects

In association with thoughtbot, one of the most well respected Rails consultancies in the world, I've produced a series of screencasts on how to make navigating your Ruby projects with Vim ultra-efficient. Along the way, you’ll also learn how to make Ruby blocks a first-class text object in Vim. This lets you edit Ruby code at a higher level of abstraction. Available to buy from thoughtbot..