vim
editorvim
is a general purpose tool that can be used as an Integrated Development Environment (IDE).
The fundamental keys/commands are:
i
for insertion mode followed by <ESC>
when finished, :w
or :w <name>
to save file into disk, and :q
to exit vim.:e <name>
to open a file, :bp
and :bn
to swap to previous or next buffer, :ls
to see buffers' list, and :b2
to swap to buffer 2.CTRL-W + v
to split window vertically, CTRL-W + s
for horizontally, and :ter
to open a terminal.Some other usefull commands:
CTRL-W + SHIFT-N
followed by i
when finished.v
to enter visual mode, and y
to copy highlighted text.dd
to delete a line, u
for undo and p
to paste.set nu
to display lines number, and :2
to go to line 2.:Explore
to open file explorer.:mksession
followed by :qa!
, then vim -S
to restore session.