Jorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years agoVery clever...lemmy.mlimagemessage-square291linkfedilinkarrow-up12.32Karrow-down121file-text
arrow-up12.3Karrow-down1imageVery clever...lemmy.mlJorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square291linkfedilinkfile-text
minus-squarekilleronthecorner@lemmy.worldlinkfedilinkEnglisharrow-up17·2 years agoAbsolutely. It also has whole-line cut/uncut which is a godsend when working with config files
minus-squareindepndnt@lemmy.worldlinkfedilinkarrow-up10·2 years agoIronically, that’s like the one thing I’ve learned to do in Vim.
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up4·2 years agoBecause it’s easy, dd to delete a line and p to paste it somewhere else.
minus-squareDaPorkchop_@lemmy.mllinkfedilinkarrow-up3·2 years agoPersonally I’d be somewhat nervous using dd to edit parts of a text file, but you do you :)
minus-squarebpm@lemmy.mllinkfedilinkarrow-up1·2 years agoyy to copy, dd to cut, p to paste. Need to move 5 lines at once? No problem, move to the first line and use d5d, and p to paste it. Vim gets a bad rap for being confusing, but it’s so fast to move text around once you get the hang of it.
Absolutely. It also has whole-line cut/uncut which is a godsend when working with config files
Ironically, that’s like the one thing I’ve learned to do in Vim.
Because it’s easy, dd to delete a line and p to paste it somewhere else.
Personally I’d be somewhat nervous using
ddto edit parts of a text file, but you do you :)yy to copy, dd to cut, p to paste. Need to move 5 lines at once? No problem, move to the first line and use d5d, and p to paste it. Vim gets a bad rap for being confusing, but it’s so fast to move text around once you get the hang of it.