An Interest In:
Web News this Week
- October 20, 2021
- October 19, 2021
- October 18, 2021
- October 17, 2021
- October 16, 2021
- October 15, 2021
- October 14, 2021
Some of Our Sources
- TutsPlus - Code
- Spoon Graphics
- Six Revisions
- TutsPlus - Design
- Fuel Your Creativity
- CSS Globe
- Freelance Switch
- Web Resource Source
Tricks for Learning Vim Quickly
Vim is very powerful and fast editor, on the other hand it's so powerful that some people might prefer not to use it. It's available on every machine, even through an SSH connection and bindings can be used in any popular IDE.
If youre learning Vim, there are two mistakes you can make:
The first is to jump right in. The second is to avoid doing anything.
The correct approach is to learn Vim incrementally. Learn one trick at a time, then practice it until its second nature.
Here are tricks that will help you learn Vim quickly.
Practice makes perfect. Vim works differently than you are used to. You can practice online using vim.is, which makes you learn vim keybindings very quickly.
I recommend learning vim first before using it, because it works so different than say notepad. But the advantage is higher productivity, moving around the text quickly, recording and replaying keystrokes and lots more.
Enable vim keybindings
Enable vi keybindings in bash
Write the command to enable vi keybindings in bash. You can then use the vi keybindings inside your commands.
set -o vi
Then you can use keys like
5w and all the other vi keybindings you use inside the commands.
Enable vi keybindings in other apps
There are many applications which support vi keybindings. Some notable ones are ranger, vifm, feh.
For Windows users, you can enable vim keybindings in visual studio, word, outlook using viemu.
To open a file, type the command
vim file. To quit vim, press
ZQ. To edit a file, press
insert. To return to command mode, press the
esc key. Press
:w to save the file.
Original Link: https://dev.to/bigcoder/tricks-for-learning-vim-quickly-42mo