Airthee

Airthee

Useful vim commands

Here are some useful vim commands...
If they are here, I probably needed to use it and I think it should be write somewhere :tada:
This list is gonna grow over time as I use it.
Enjoy

  • da" : Delete all between double quotes
  • :sp [file?] : Open a new file by splitting screen horizontally
  • :vsp [file?] : Open a new file by splitting screen vertically
  • :x : Save and exit
  • :E [dir?] : Open the vim explorer from the directory, if not specified, open the explorer in the current directory
  • :e [file] : Open and edit a file
  • :w !sudo tee % : Save a file as root when it is open by non root user