----- 
maTeidotonE
best viewed with NetSurf
My programs Games Other programs
GNU/Linux Computers & programming Music & movies
Other topics What's new + README Contact
---------------------------------------------------------------------------------------
Updated 2025-01-12
Vi IMproved text editor
Vi is the default text editor that always comes with the GNU/Linux or UNIX operating system:
 
Vi IMproved Typing vi Vi "Type :q<Enter> to exit"

Vi Press i (insert mode) and type text Vi Press Escape and type w: filename, then Enter, to save the text file

The help page says "Getting started: Do the Vim tutor, a 30-minute interactive course for the basic commands, see vimtutor.", so...

:q<Enter>
vimtutor


vimtutor Welcome to the VIM Tutor vimtutor Lesson 1.3: [...] ** Press x to delete the character under the cursor. **

A few commands in vi:

vi file_1 file_2 ... file_n

Opens n files and

:buffers<Enter>

or

:files<Enter>

displays the list of opened files.

:n<Enter>
:N<Enter>

Goes to next and previous file.

/phrase<Enter>

Searches for phrase. Then with n it searches it again, or with N - in the opposite direction.

:%s/original/modified/g

Modifies every occurrence of a text in the whole file.

:set wrap<Enter>
:set nowrap<Enter>

Wrapping or not wrapping the lines.

u

Undo.

v

Visual. Select the text by pressing y after having chosen it with the arrows and then press p where you want to copy it.
---------------------------------------------------------------------------------------
© 2025 Matei. No cookies®