da_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 14 days agoI Am starting to actually get somewhat comfortable using emacsfeddit.orgimagemessage-square114linkfedilinkarrow-up1532arrow-down112
arrow-up1520arrow-down1imageI Am starting to actually get somewhat comfortable using emacsfeddit.orgda_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 14 days agomessage-square114linkfedilink
minus-squareStitch0815@feddit.orglinkfedilinkarrow-up6·13 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·13 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-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up3·13 days agoThese look real useful, especially :cw Thanks!
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·12 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·12 days agogcc is the most typical, works on the current line.
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
These look real useful, especially :cw
Thanks!
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.