Follow @learnvim for more Vim tips and tricks!
Being able to freely move around in a file is an indispensable vim skill.
Below is a list of the ...
For further actions, you may consider blocking this person and/or reporting abuse
One I use quite often is:
This will run a shell command, show you the result and then go back to vim, is pretty useful when you need to run a
shell commandwithout opening another shell window or closing vimOhh yes and using % will insert your open buffer file.
:!black %will run python black on your open fileHaha yup! I actually made a note to dig into this. This command alone unlock myriads of possibilities.
Going off topic- something I learned these past 3-4 weeks thought I would share!
:!!repeat the last:!command :):rprints output into vim -:r !lsfor example, prints the output of ls command - I am sure will come in super handy!Oh yea always forget !!.
I also gotta learn the other special characters I think # means something as well.
Two of my favorites
q/show your history of searchesq:show your history of commandsCan you explain?
code:/ ? :q ?What did you mean?
Sorry it is actually...
q/for search history.Press those keys to get a buffer that shows your history of commands or searches
Awesome list. Thank you!
Hope it helps!! 😁