da_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 7 days agoI Am starting to actually get somewhat comfortable using emacsfeddit.orgimagemessage-square113fedilinkarrow-up1523arrow-down111
arrow-up1512arrow-down1imageI Am starting to actually get somewhat comfortable using emacsfeddit.orgda_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 7 days agomessage-square113fedilink
minus-squareStitch0815@feddit.orglinkfedilinkarrow-up6·6 days agoMy most used commands are also just the classics cw - delete the next word amd enter insert mode dd - delete line gg - go to first line G - go to last line :s/searchphrase/replacephrase - search and replace And a couple of visual mode commands do cut and paste blocks or comment out blocks of code
minus-squareGiveOver@feddit.uklinkfedilinkarrow-up5·6 days agoTo build on cw: ciw works when the cursor is anywhere in the word ci( to delete everything between brackets and enter insert mode. Also ci" ciW or whatever
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·6 days ago a couple of visual mode commands Those might also work in the normal mode with motions, depending on the text. E.g. gcap would comment out the current paragraph (iirc).
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·5 days agogcc is the most typical, works on the current line.
minus-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up3·6 days agoThese look real useful, especially :cw Thanks!
My most used commands are also just the classics
cw - delete the next word amd enter insert mode
dd - delete line
gg - go to first line
G - go to last line
:s/searchphrase/replacephrase - search and replace
And a couple of visual mode commands do cut and paste blocks or comment out blocks of code
To build on cw:
ciw works when the cursor is anywhere in the word
ci( to delete everything between brackets and enter insert mode. Also ci" ciW or whatever
Those might also work in the normal mode with motions, depending on the text. E.g.
gcapwould comment out the current paragraph (iirc).Oh sick I will try that
gccis the most typical, works on the current line.These look real useful, especially :cw
Thanks!