Wednesday, April 8, 2009

Tips: Vi Editor Usage

:q!     abort without saving
:wq write changes and quit

a append text after cursor
i insert text before cursor
o open a new line below current line
O open a new line above current line

x delete character
dd delete line
1p restore most recently deleted text at cursor
u undo last change (repeat to undo undo)

10G go to line 10 (can use any line number)
G go to last line
0 move to beginning of current line
$ move to end of current line"

No comments:

Hack the Box Blue

https://arcy24.medium.com/hack-the-box-blue-f5ae5b602a5c