da_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 2 days agoI Am starting to actually get somewhat comfortable using emacsfeddit.orgimagemessage-square110linkfedilinkarrow-up1517arrow-down111
arrow-up1506arrow-down1imageI Am starting to actually get somewhat comfortable using emacsfeddit.orgda_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 2 days agomessage-square110linkfedilink
minus-squareStitch0815@feddit.orglinkfedilinkarrow-up5·2 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-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·18 hours 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·13 hours agogcc is the most typical, works on the current line.
minus-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up3·1 day agoThese look real useful, especially :cw Thanks!
minus-squareGiveOver@feddit.uklinkfedilinkarrow-up4·1 day 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
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
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!
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