learn vim commands in linux

sidtechtalks.in

“”

The vi command in Linux allows a user to edit any text content inside the Vim text editor from the terminal.

What is VIM editor?

Arrow

Check next slides for keyboard shortcuts list

“”

Here’s a list of commonly used keyboard shortcuts used inside the Vim editor in Linux:

Keyboard shortcuts

Arrow

“”

Used to enter insert mode in Vim editor. Use the Esc key to exit out of insert mode.

Keyboard shortcuts

Key 'i'

“”

Delete a line quickly.

Keyboard shortcuts

Key 'dd'

“”

Copy a line/lines inside the editor.

Keyboard shortcuts

Key 'yy'

“”

Paste command

Keyboard shortcuts

Key 'p/P'

“”

Undo command

Keyboard shortcuts

Key 'u'

“”

Redo command

Keyboard shortcuts

Key 'Ctrl+r'

“”

Save and quit Vim editor.

Keyboard shortcuts

Key ':wq'

“”

Quit Vim editor without saving a file.

Keyboard shortcuts

Key ':q'

“”

I hope these powerful keyboard shortcuts will help you. If you like this story then share this with your collegues. Reach out here for more details.

Read more