Where to Find Vimtutor?
Where to Find Vimtutor?**§
What is a vimtutor?
vimtutor is a very basic, clean, and cool application that teaches you how to use Vim. It’s the best place to get started using vim. Spending about 1 hour with the vimtutor, you can pretty much get all the major features of vim.
How do you become a vimtutor?
First, you can write good code with any text editor. Becoming a programmer means writing code; period. That being said, becoming productive, comfortable, and knowledgeable about a code editor/IDE is essential.
Learning VIM is both annoying and sometimes difficult. Once you learn and understand the principles, it is amazing, intuitive, infinitely customizable, and fun. So, without further ado, I would recommend doing the following if you want to learn Vim.
- Open your terminal of choice and type vimtutor`. Go through the whole thing.
- After you’ve gone through
vimtuto
begin crafting a.vimrc
file. The.vimrc
file is what will make Vim your code editor. And a very important pro tip: comment on each line in your.vimr
file commenting what that line does; it will ensure you actually understand what is happening and are not just copying someone else’s stuff.
That’s it. It will take some time but it will more than pay its dividends. Enjoy!
Where is the vimtutor?
vimtutor is a program that usually gets installed when you install the normal vim/gvim package.
You should be able to just run vimtutor
on the command line, assuming that it got built and installed correctly, and is on your path, etc...
If you can't run it on the command line, or it doesn't work for you, you'll have to do some digging to figure out why.
In my experience vimtutor doesn't always work as expected. I would start by looking in the install folder for Vim, and see what you can find.
At its core, it's basically just a text file that has some examples that walk you through the basic commands available in vim. It shows you have to navigate using the keyboard, how to edit text, and use some other basic commands. If you can't get vimtutor to work immediately, you can either just keep messing with it, do some more searching (there are plenty of results when you search for vimtutor in google), or just give up on it and learn vim using another type of tutorial. Vimtutor is fairly limited anyway, so it's not that important to get working.
How do you get comfortable with vim?
Start with Vim Tutor. With Vim installed, type vimtutor
at the command line and you’ll enter a tutorial in a Vim buffer.
Vim Tutor covers the basic and most-used commands.
From there, as others have said, the path forward is to commit to using Vim 100% of the time.
Use it to write code, take notes, and manage Git. You’ll encounter obstacles along the way, learning about configurations and plugins.
Just stick with it.
Why we should use vim?
In all POSIX systems, Vim is the default fallback editor. Vim is sure to be open, whether you have just installed the operating system, or you have booted into a minimal system repair environment, or you are unable to access any other editor. While you can switch out other tiny editors on your systems, such as GNU Nano or Jove, it's Vim that's all but guaranteed to be on every other system in the world. In short, I think competence with Vim should be considered the way you view competence with your native language, simple math, etc. In technology, so much begins with understanding your editor.
Also, it is extremely customizable and you can adapt it to your way of coding and your way of doing things. To give you a taste of vim, below are a few commands frequently used to code at lightning speed:
hjkl
: move the cursor around to left, down, up, and right respectively.7j
: move 7 lines down.w
: move a word forwardctrl + f
: move down a pagectrl + b
: move up a pagegg
: move to the top of the documentG
: move to the bottommost of the documentdw
: delete a wordd6w
: delete 6 wordsdt>
: delete till >di]
: delete everything inside [ ]dd
: delete the whole line4dd
: delete 4 linesyy
: yank a line ( yank is copied)cc
: change a line ( change is deleted and go in insert mode )cap
: change a paragraph.
: repeat the last commandf'
: find the first occurrence of 'f'ci'hello
: _find the next ' then change everything inside ' for hello The list goes on and on...
Why is vim so powerful?
- Vim’s configurations are portable, this enables you to use the same configs on all your Linux systems. You can as well share configs with friends on the Internet and so on. All you need to do is copy a few directories and files, and that’s all.
- Vim’s strengths are its smallness and simplicity; therefore, it doesn’t consume a considerable amount of system resources as opposed to other text editors especially graphical text editors.
- It’s also normally very fast and lightweight even when editing huge files of source code. It’s easy to run over ssh for remote operations on any server.
- Furthermore, it offers highly effective key-bindings thus allowing you to carry out any imaginable tasks without lifting your fingers from the keyboard. Even with its simplicity, Vim has many capabilities and is very efficient once learned.
- Last but not least, Vim is fun to learn, and once you start using it extensively on daily basis. When the initial learning curve is passed, you can do amazing things with it. However, you’ll only discover this aspect of Vim once you start learning and using it. Yes, give it a try.
- Vim is thoroughly documented, meaning you will find most of the answers to your questions in its help system; from books to extensive help files to an assortment of tips. All you have to do is use the appropriate keywords in your help queries. Additionally, Vim comes with a useful built-in manual, you can launch it using the :help command once the program is started. This built-in manual contains more information than Vim’s man page.