Skip to main content
Challenges Vim command sequence
Misc Medium Vim editor Solves: 4

Vim command sequence

Author: CyberSamSU
Points
40

The following 5-line file is opened in vim (the cursor is on line 1):

kirish qatori
AAAAAAAA
orada turgan keraksiz qator
BBBBBBBB
yakun qatori

The user sequentially executes the following commands:

1) :%s/AAAAAAAA/M1X_VIM/
2) :%s/BBBBBBBB/_USTASI/
3) 3G
4) dd
5) 2G
6) gJ
  • :%s/eski/yangi/ — replaces in all lines of the file
  • NG — goes to line N (for example 3G — to line 3)
  • dd — deletes the current line
  • gJ — joins the current line with the next line without spaces

After all commands are executed, what will be the final text of line 2?

Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −8 pts Log in
Hint 3 −12 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 17.09.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026