Skip to content

Instantly share code, notes, and snippets.

@rohitfarmer
Last active November 2, 2018 16:29
Show Gist options
  • Select an option

  • Save rohitfarmer/0a2aa74d72aebb44976fa3b1485b87a4 to your computer and use it in GitHub Desktop.

Select an option

Save rohitfarmer/0a2aa74d72aebb44976fa3b1485b87a4 to your computer and use it in GitHub Desktop.
Commands for VIM

Commands for Matt's implementation of VI

Toggle nerd tree: / + n
To open a file in the nerd tree in split window: s
Switch screen: ctrl + ww
To run the script without quitting VI: :! python name.py

Visualization mode to cut, copy, paste etc.
shift + v
Cut/delete: x
Copy: y
Paste: p

Indents

To indent right "number" times: number shift >
To indent left "number" times: <

Undo
u

Quit all without saving
qa!

To open multiple files in split windows vi name1.py name2.py -O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment