xolag on Nostr: #Vim Answer A way to learn Vim. ——————————————— 10gg # ...
#Vim Answer
A way to learn Vim.
———————————————
10gg # go to line 10
f{ # forward to “{“in that line
ma # put a mark “a”
10 + enter # go to 10 line below
f} # forward to “}“in that line
mb # put a mark “b”
:`a,`bs/sin/cos/gci
# replace sin by cos between mark a to b
———————————————
A way to learn Vim.
———————————————
10gg # go to line 10
f{ # forward to “{“in that line
ma # put a mark “a”
10 + enter # go to 10 line below
f} # forward to “}“in that line
mb # put a mark “b”
:`a,`bs/sin/cos/gci
# replace sin by cos between mark a to b
———————————————