atyh on Nostr: vi(1) editor learnin fer 04-03-23: --------------------------------------- how to: ...
vi(1) editor learnin fer 04-03-23:
---------------------------------------
how to:
vi:
-insert from external file at cursor = :r ~/file-name
-insert results of shell command at cursor = :r !command
-insert string at begining of every line = :%s/^/TEXT TO INSERT/g
-insert string at end of every line = :%s/$/TEXT TO INSERT/g
-replace all instances of THING with OTHER THING = :%s/THING/OTHER THING/g
(add i after /g to make for case insensitive)
---------------------------------------
now,
sleep 28800s && wake
Published at
2023-04-04 08:07:02Event JSON
{
"id": "8bdaea9ea1350429914bfb58676994830d17febfb9d2996e9d257f56f81e93b9",
"pubkey": "727454ab043b983fb576c654fcfb0aa9659b298e8fde751d9f235b964a795f86",
"created_at": 1680595622,
"kind": 1,
"tags": [
[
"mostr",
"https://pleroma.atyh.cc/objects/ed0969f0-f6e6-4a2d-a64f-ab59774de08c"
]
],
"content": "vi(1) editor learnin fer 04-03-23:\n\n---------------------------------------\nhow to:\n\tvi:\n\t\t-insert from external file at cursor = :r ~/file-name \n\t\t-insert results of shell command at cursor = :r !command\n\t\t-insert string at begining of every line = :%s/^/TEXT TO INSERT/g\n\t\t-insert string at end of every line = :%s/$/TEXT TO INSERT/g\n\t\t-replace all instances of THING with OTHER THING = :%s/THING/OTHER THING/g \n\t\t(add i after /g to make for case insensitive)\n---------------------------------------\n\nnow,\nsleep 28800s \u0026\u0026 wake",
"sig": "9e29b92287fb4a9a41b6e3c725715592b30e3118273d24836a5b4d75f351ca2ed8b8f7e787b662bd9922337400dab150404d73bc502ddd4129cd83efd6a6f60b"
}