T
tynndale
hi Peter
R
Rui Fernandes
Hey!
R
Rui Fernandes
I'm postponing this decision for so long, when I saw your posts about it.. 😬
M
Max Gorin
I'm using Dvorak, it's fine :)
M
Max Gorin
a matter of habit
M
Max Gorin
I wouldn't remap them. On Dvorak, up/down is physical c/v keys, and it's no problem at all.
R
Rui Fernandes
🤣
M
Max Gorin
opt.swapfile = false
M
Max Gorin
(no problem with swapfile)
M
Max Gorin
`vim.opt.swapfile = false`
M
Max Gorin
it's <c-v>
A
adam0194
ctrl-v might work here.
M
Max Gorin
you don't need to select the occurences, instead try "cgn" (replace inside the selection)
M
Max Gorin
... and then use "dot" to repeat with other selected instances
M
Max Gorin
no, not ctr
M
Max Gorin
it's cgn
K
kszambelanczyk
first find: /\"\"
K
kszambelanczyk
than cgn
K
kszambelanczyk
and .
M
Max Gorin
quite the edit mode first
M
Max Gorin
quit
M
Max Gorin
test it on a single word
M
mitchhanberg
this will seem like a crazy suggestion, but "Practical Vim" by Drew Neil is an amazing book and helps with the vim journey, but mostly applies if you aren't familiar with the modal editing and motions
K
kszambelanczyk
n
K
kszambelanczyk
you need to select first
K
kszambelanczyk
try this /\"\"
M
Max Gorin
after you select anything manually, try pressing the *
K
kszambelanczyk
enter
K
kszambelanczyk
cgn
M
Max Gorin
Practical Vim is a good suggestion by Mitch, because it starts with all those essentials, and it's more fun than I would ever imagine, tbh
K
kszambelanczyk
nope, select ant cgn
M
Max Gorin
you don't select them, you do the cgn thing again
M
Max Gorin
cgn works now only because _previously_ you already marked those quotes as text for selection
K
kszambelanczyk
change goto next
M
Max Gorin
so, first make sure that the * command goes through what you want to replace
K
kszambelanczyk
it remembers last selection
M
Max Gorin
sorry, '*' first then 'n'
M
Max Gorin
the delay is because Lazy vim has so many compound key mappings 🙂
M
Max Gorin
I would _love_ to test out keyboards like this, if not for this deal breaker: I don't want to carry around anything besides my macbook
M
Max Gorin
so, I'm trying to get the most out of the defaults, so to say
S
Sriram Kota
Hey peter
M
Max Gorin
compared to an external display even 16' feels too small, so... I have external monitors in several countries around the world :)
M
Max Gorin
... and a 14' MBP
M
Max Gorin
redo is <c-r>
M
Miletić Boban
hi
M
Max Gorin
it seems like you're remapping keys like "N" and "E" that are, as defaults, quite useful for moving around
M
Max Gorin
also "I"
M
Max Gorin
did you consider using hjkl on Colemak as is?.. it's a muscle memory anyway
M
Max Gorin
ctrl-]
M
Max Gorin
(that's how to jump)
I
ilay king
hi
M
Max Gorin
jumping back is <c-t>
M
Max Gorin
that's also how you navigate code, btw
M
Max Gorin
<c-t> is not jumping back
M
Max Gorin
<c-t> is jumping out of the stack of <c-]>
M
Max Gorin
if you really want jumping back and forth, it's <c-o> and <c-i>
M
Max Gorin
try opening vim and press <c-o> a few times to get back to the files you were before closing vim
M
Max Gorin
after <c-o> <c-i> will work
M
Max Gorin
cdn - removes ose
M
Max Gorin
one *
M
Max Gorin
sorry!
M
Max Gorin
dgn
M
Max Gorin
cgn and dgn: 'c' is for "replace", 'd' is for delete, 'gn' is for 'next piece to find"
M
Max Gorin
you can skip by simply pressing 'n' (forward) or 'N' (backwards)
M
Max Gorin
yeah, I guess you need "noremap" or something