da_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 1 day agoI Am starting to actually get somewhat comfortable using emacsfeddit.orgimagemessage-square84fedilinkarrow-up1447arrow-down18
arrow-up1439arrow-down1imageI Am starting to actually get somewhat comfortable using emacsfeddit.orgda_cow (she/her)@feddit.org to linuxmemes@lemmy.world · 1 day agomessage-square84fedilink
minus-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up5·15 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-squareJankatarch@lemmy.worldlinkfedilinkarrow-up1·edit-21 hour agoctrl+n while typing activates the builtin autocomplete.
minus-squareStitch0815@feddit.orglinkfedilinkarrow-up4·12 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-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up3·7 hours agoThese look real useful, especially :cw Thanks!
minus-squareGiveOver@feddit.uklinkfedilinkarrow-up4·11 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·13 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?
ctrl+n while typing activates the builtin autocomplete.
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
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
If editor-specific binds count, then g-. is my favorite in Zed.