I want to run a vim command for example gg=G
but in the terminal.
I have tried vim gg=G filename
but it didn't work.
This would be useful as I normally work on gedit, but vim is very powerful, so would be cool to use some of its features without having to enter file in vim running the command and exiting vim, especially since exiting takes 14 contextually dependent instructions.
the other question with a similar name as this one, is about a different topic: How to run vim commands on vim it self. While this question is about runing vim command on a file