Showing posts with label vimtutor. Show all posts
Showing posts with label vimtutor. Show all posts

Monday, November 23, 2020

Learn to Learn Vim

Using Vim and excited to go the extra mile? Understand how to learn to learn Vim
Photo by Alex Knight on Unsplash

So, now that you installed Vim on your Mac, Windows or Linux workstation, learned how to get started with Vim and mastered your first Vim tutorial, let's review tips and tricks to keep learning Vim.

Why learn Vim?

First things first: why learn Vim? In case you haven't ready already, consider first reading our 20+ reasons to learn and use Vim. Then resume with this article.

Why keep learning Vim?

If you know already the basics of Vim, why should you bother learning more?

Because learning at bit of it every day will yield great rewards in the long run. It takes years to master Vim. The more you learn, the more you realize that time is that secret ingredient in getting comfortable, becoming proficient and efficient with Vim. It's like learning to bike or playing a musical instrument. It takes time, effort and discipline but once you master it, the gains are endless.

This graph shows well how Vim scales over time:

Source: lucasfcosta.com

Thinking in Vim

The ultimate goal is to think in Vim. In other words, use all of the fantastic assets that Vim and VimL (Vim's programming language) provide to us for your benefit. We'll discuss more about that in the future and take you through concrete.

Using Vim's built-in help

Vim's built-in help is a fantastic asset to keep learning Vim. Learned a new trick? Consider exploring what's available in the help about that. To open the help, type in Normal mode:

:help

Accessing the help is simply typing :help in normal mode to access the help or  :help <cmd> where <cmd> is the command (or keystroke, or keyword....) that you're interested to learn about.

Vim's built-in help opened with the :help command

Getting help on Vim's help

Vim's help is pretty extensive and complete. We encourage you to read it and use it as much as you can. It will not only help you get used to Vim's terminology but also be a solid reference for your questions before Stack Overflow. To get help on Vim's help, run:

:h help-summary

And if you need more help on how to use the help 🙄, run:

:h helphelp

Jumping Around

Since you will probably want to move through sections of the documentation, here are some useful shortcuts to have in mind:

  • Ctrl-] - jump to the manual related to the subject under the cursor
  • Ctrl-o - jump back. You can keep repeating the command to jump back to previous positions.

How to keep learning Vim?

Okay, so how to keep learning Vim. Here are are our main tips:

Conclusion

On this post we reviewed why you should consider keep learning Vim. It takes years to master Vim but be sure that the more you learn, the more you realize that time is that secret ingredient in getting comfortable, becoming proficient and efficient with Vim. Learning Vim is like learning a musical instrument. It takes time, effort and discipline but once you master it, the gains are endless. You definitely won't regret.

Monday, November 16, 2020

Vimtutor - Your first Vim tutorial

Got Vim installed and excited to your first steps? Understand how to run your first Vim tutorial
Photo by Alex Knight on Unsplash

So, now that you installed Vim on your Mac, Windows or Linux workstation, and that you learned how to get started with Vim, let's review the very first thing you should do to get acquainted with Vim: doing your first Vim tutorial.

Running Vimtutor

If you installed Vim via your package manager or from the official installer, vimtutor is already available by default. So go ahead and start it by typing on your terminal:

vimtutor

This is what you should see:

What next? Keep reading and follow the instructions as you read them.

Frequent Questions

What's Vimtutor?

Vimtutor is a tutorial about Vim, using Vim and made by the Vim developers. It contains all the basics you should know about Vim, much more than we'd be able to cover in an article like this.

Why Vimtutor?

And why should one run vimtutor? Because It will teach you all the basics you should know about Vim. Plus, it works in chapters and you'll be able to stop, resume, repeat - all at your own pace.

How long it takes to complete the tutorial?

The approximate time required to complete the tutor is 25-30 minutes, depending upon how much time is you want to spend learning things and playing with other stuff.

What will I learn?

Just enough to understand Vim's basics, the most popular features and commands.

What are the recommended next steps?

Honestly? Do it again and again, until you get comfortable with the terms and commands. Next, we recommend you reading Vim's man page and playing with the :help command.

Conclusion

On this post we reviewed the basics after the very basics of Vim: running vimtutor. Vimtutor is a tutorial about Vim, using Vim and made by the Vim developers. It contains all the basics you should know about Vim, much more than we'd be able to cover in an article like this. What's next? Keep tuned.
Any comment about this page? Please contact us on Twitter

Featured Article

Vim - Ex Mode

When learning Vim, it's important to understand its modes, including the  Ex Mode  where you can continually type your commands u...

Popular Posts