An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
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
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
There are extensions for your web browser like Vimium. Get used to the vi-like keybindings by surfing the web. There's also qutebrowser. Qutebrowser is a Chromium fork but uses Vi-like key bindings.
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 b
, w
, 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.
Quick tricks
To open a file, type the command vim file
. To quit vim, press ZQ
. To edit a file, press i
or 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
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To