Jorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 years agoVery clever...lemmy.mlimagemessage-square290linkfedilinkarrow-up12.32Karrow-down122file-text
arrow-up12.3Karrow-down1imageVery clever...lemmy.mlJorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 years agomessage-square290linkfedilinkfile-text
minus-squarekilleronthecorner@lemmy.worldlinkfedilinkEnglisharrow-up17·3 years agoAbsolutely. It also has whole-line cut/uncut which is a godsend when working with config files
minus-squareindepndnt@lemmy.worldlinkfedilinkarrow-up10·3 years agoIronically, that’s like the one thing I’ve learned to do in Vim.
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up4·3 years agoBecause it’s easy, dd to delete a line and p to paste it somewhere else.
minus-squareDaPorkchop_ [any]@lemmy.mllinkfedilinkarrow-up3·3 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·3 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.