Useful keyboard shortcuts

|

This post provides useful keyboard shotcuts.

bash

Moving the cursor

  • Ctrl + a: Go to the beginning of the line
  • Ctrl + e: Go to the end of the line
  • Alt + b: Back (left) one word
  • Alt + f: Forward (right) one word
  • Ctrl + b: Backward one character
  • Ctrl + f: Forward one character

vim

Navigation

  • k: Move cursor upwards
  • j: Move cursor downwards
  • l: Move cursor right side
  • h: Move cursor left side

  • w: Jump forwards to the start of a word
  • e: Jump forwards to the end of a word
  • b: Jump backwards to the start of a word

  • 0: Jump to the start of the line
  • ^: Jump to the first non-blank character of the line
  • $: Jump to the end of the line

References

Comments