This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: JcLyuBNivIF0OashivTaaHbl9oF6h0et8Kbz-tUDk_E
Cover

Vim - 1 How to Open a File With Vim

Written by @artwalker | Published on 2024/1/4

TL;DR
Explore Vim commands: navigate, edit, and save files efficiently in Vim, from moving between lines to inserting text, all essential for seamless editing.

Use the Vim editor

vim filename.type

Use vim editor

Command mode

Command mode

  • :1 - Go to the first line

Go to the first line

The result of that command

  • :$ - Go to the last line

 Go to the last line

The result of that command

  • :number - Go to the line that you want to go

 Go to the  tenth line

Insert mode

  • i - Enter the insert mode, you can type the text whatever you want

Enter the Insert mode

Enter some text

  • Esc - back to command mode from insert mode

Exit from Insert mode

  • :w - Make the text you type into the document

Save what you type

The result of that command

  • :q - Quit the vim editor

Exit from Vim editor

Back to the terminal

[story continues]


Written by
@artwalker
Passionate about Crafting Intelligent OS & Pioneering TinyML Applications for Resource-Constrained Devices

Topics and
tags
vim-editor|vim|how-to-use-vim|vim-beginners-guide|open-a-file-with-vim|how-to-open-a-file-with-vim|vim-for-dummies|vim-for-noobs
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: JcLyuBNivIF0OashivTaaHbl9oF6h0et8Kbz-tUDk_E