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
———————————————
Published at
2023-03-04 19:09:08Event JSON
{
"id": "67290b8eb1ad63658a19793d4833bcf87e67ada5a3e490ae94ae4d56c3035818",
"pubkey": "fb64b9c3386a9ababaf8c4f80b47c071c4a38f7b8acdc4dafb009875a64f8c37",
"created_at": 1677956948,
"kind": 1,
"tags": [
[
"e",
"ae36232a4a166aaae771a535d1c1a48ec0a30deafe0f6333ed55d5e23717f260"
],
[
"t",
"vim"
]
],
"content": "#Vim Answer\nA way to learn Vim.\n\n———————————————\n10gg # go to line 10\nf{ # forward to “{“in that line\nma # put a mark “a”\n10 + enter # go to 10 line below \nf} # forward to “}“in that line\nmb # put a mark “b”\n:`a,`bs/sin/cos/gci \n# replace sin by cos between mark a to b\n———————————————",
"sig": "c008322d466b0c5cd7066a90bd0f8cbd09d34f6f47c7dbcd8a0d4ba9086a947327ae555d52a8f1034dcdef5f19cc567f39343721daacb3d4ec7f6d87630e6fa6"
}