Just enough Vim to get by... for people who don't want to use Vim
Not everyone wants to learn the ways of Vim and that's cool - in this video, we are just going to focus on a bare minimum set of basics to get by with for the situations where Vim is forced upon you or it's just convenient.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
0:00 Introduction
1:39 Understanding Modes
5:00 Navigating Files
7:18 Saving Files
7:54 Basic Editing
8:45 Conclusion
Advanced cheat sheet: https://vim.rtorr.com/
Commands used in this video:
MODES:
Normal mode: ESC
Insert mode: i
Visual mode: v (to select by character), V (to select by line), Ctrl+v (to select block)
SAVING/QUITTING:
:q - quit if there have been no changes
:wq - save changes and quit
:q! - abandon changes and quit
NAVIGATION:
:$ - end of file
$ - end of line
:0 - start of file
0 - start of line
:set number - enable line numbers
:5 - go to line 5
:/keyword - search for keyword
n - go to next result for search
N - go to previous result for search
} - go to next block
{ - go to previous block
EDITING:
y - copy selected text
d - delete selected text
dd - delete current line
db - delete backward
D - delete forward
Ctrl+w - delete word when in insert mode
(angled brackets) - increase/decrease indent
#vim
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony