DEV Community

Discussion on: Should I learn Vim (or its keybindings)?

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

I use vim for small things in the console, or when over a network connection. Beyond a few basic commands I don't know much, and would never use it for more than minor changes. It also tends to pop up for some git commands.

Minimal commands I use frequently:

  • i to edit a document
  • ESC to get to non-edit mode
  • dd to delete a line
  • d + down_arrown to delete a couple of lines
  • ESC to enter commands
  • :w to save the file
  • :q to quit, and q! to quit without saving
  • :m-2 to move a line up one, useful for reording git commits