[For memo] Linux Part 1 vi editor

vi

vi file name//Open file

How to close the file · After pressing esc: close the editor with q.

Save file -After pressing esc: Save with w.

Save the file and exit. -After pressing esc: Save with wq and exit.

-Write to a file Press i to enter insert mode. To write at the end of the line, press a to enter insert mode.

・ Move by specifying a line Specify as: line. If it is set to 1, it moves to the first line.

・ Copy Copy with yy Paste with p You can specify multiple lines with the number of lines you want to copy.

・ Return to the beginning Go back to the beginning with gg

・ Search for character strings / Search for the specified string in the string.

-Replacement of character strings : Target line s / search string / replacement string / option

Recommended Posts

[For memo] Linux Part 1 vi editor
[For memo] Linux Part 2
Linux standard textbook memo 1 part 2
Linux standard textbook memo part 6
Create Scratch Offline Editor for Linux
Linux x memo
linux (ubuntu) memo
Linux # Command Memo 1
pyenv for linux
vi (vim) command memo
Linux standard textbook memo 1
Linux standard textbook memo 3
List memo writing part 2
Linux standard textbook part 5
New Linux commands! !! Part 2
Python basic memo --Part 2
What is Linux for?
heroku memo (for myself)
Linux command for self-collection
FastAPI Tutorial Memo Part 1
Linux standard textbook part 4
Python basic memo --Part 1
NTP configuration memo on Linux
Android HCE Survey Memo (Part 2)
Python memo (for myself): Array
Try normal Linux programming Part 7
Linux Kernel Build for DE10nano
Try normal Linux programming Part 2
Linux distribution recommended for beginners
Python Basic Grammar Memo (Part 1)
Python code memo for yourself
Flutter platform channels for Linux
Try normal Linux programming Part 3
Try normal Linux programming Part 4
Linux tar xz command memo
Try normal Linux programming Part 6
Trying normal Linux programming Part 1
Linux Command Dictionary (for myself)
[For AtCoder] Standard input memo
Linux command memorandum [for beginners]
Convenient Linux shortcuts (for beginners)