Jorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · il y a 2 ansVery clever...lemmy.mlimagemessage-square291linkfedilinkarrow-up12.32Karrow-down121file-text
arrow-up12.3Karrow-down1imageVery clever...lemmy.mlJorgelino@lemmy.ml to Programmer Humor@lemmy.mlEnglish · il y a 2 ansmessage-square291linkfedilinkfile-text
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up4·il y a 2 ansBecause it’s easy, dd to delete a line and p to paste it somewhere else.
minus-squareDaPorkchop_@lemmy.mllinkfedilinkarrow-up3·il y a 2 ansPersonally I’d be somewhat nervous using dd to edit parts of a text file, but you do you :)
minus-squarebpm@lemmy.mllinkfedilinkarrow-up1·il y a 2 ansyy 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.
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.