Vim 101 Hacks Flashcards
How to write files in Vim?
What is the simplified way and full name way?
And how to specify the name of the files?
\:w for :write \:up for :update \:w filename \:write filename \:up filename \:update filename \:w! overwrite the file and save as newfile
How to quit the Vi editor?
:q
:x save working file and exit == :wq == ZZ
Basic Vim modes
There are three basic vim modes: 1. Normal mode
- Insert mode
- Command Line Mode
What is the local vim configuration file location?
The local configuration file of vim is ~/.vimrc
What is the global vim configuration file location?
The location of global vim configuration file is /usr/share/vim/.vimrc
What is a link and how to get into it?
The link int the help documentation is the content between | |. In order to get into it , you have use ctrl + ]
what is the built-in tutorial for vim?
:vimtutor
Scroll down full pafe
ctrl + F
Scroll up full page
ctrl + B
scroll down one line
ctrl + E
scroll up one line
ctrl + Y
go to the beginning of the next word
w W
go to the end of the next word
e
go to the beginning of previous word
b B
what is the difference between you using w and W?
w go to next word even they are separated by a dot
W goes to next word separated by blank.