How to use vim to speed up the Python/Javascript/Golang/Flutter/Kotlin development process
Select code block
shift + v
shift + }
o
shift + {
d or p or y
shift + }
andshift + {
can get pressed multiple times
Comment code block
shift + v
shift + }
o
shift + {
shift + i
// or #
esc
shift + }
andshift + {
can get pressed multiple times
Select a whole object or function
^^ - start of the line
v - start visual mode
f - jump to the next search character
{ - this is the search character
% - jump to the closing brackets
Select a whole object or function (not perfect
Inside of a function:
vai
Replace text in selected text
shift + v
shift + }
o
shift + {
:s/old_text/new_text
or
ctrl + v
shift + }
o
shift + {
k
^^
w or b
c