Skip to content

Vim PHP IDE for dummies

mouneyrac edited this page Dec 18, 2012 · 19 revisions

List of all useful shortcuts for Vim beginner

Mac OS Vim

Switch file

  • Open file: e: filepath
  • switch between buffer files:

Search

  • Search for function declaration in all projects:
  • Search for string in all projects:
  • Search for string in file: /xxxx
  • Search for next string in file: n

Moving

  • Page down: Control-f
  • Page Up: Control-b
  • Bottom of the file: G
  • Top of the file: gg

Windows

  • retract left window: F7
  • retract right window: F8
  • Right window: Control-w right_arrow
  • Left window: Control-w left_arrow
  • close current window: :clo

Git

  • diff:
Clone this wiki locally