da_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 22 hours agoI Am starting to actually get somewhat comfortable using emacsfeddit.orgexternal-linkmessage-square75fedilinkarrow-up1406arrow-down17
arrow-up1399arrow-down1external-linkI Am starting to actually get somewhat comfortable using emacsfeddit.orgda_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 22 hours agomessage-square75fedilink
minus-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up1·6 hours agoI keep thinking that as I use vim, I’ll feel the need to learn more commands, but I hardly do anything except: q, wq, or q!, quit with or without saving i, insert set:paste, preserves spacing Shift-insert, pastes if shift-ctrl-v doesn’t work / , search for a string (iirc, don’t really need it much). What are your vim GOTOs?
minus-squareStitch0815@feddit.orglinkfedilinkarrow-up1·4 hours 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-up2·2 hours 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-squareMatt@lemmy.mllinkfedilinkarrow-up1·4 hours agoIf editor-specific binds count, then g-. is my favorite in Zed.
I keep thinking that as I use vim, I’ll feel the need to learn more commands, but I hardly do anything except:
What are your vim GOTOs?
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
If editor-specific binds count, then g-. is my favorite in Zed.