Skip to content

Instantly share code, notes, and snippets.

@coopermaruyama
Created December 10, 2015 00:10
Show Gist options
  • Save coopermaruyama/0dca408f17f3b0b53eae to your computer and use it in GitHub Desktop.
Save coopermaruyama/0dca408f17f3b0b53eae to your computer and use it in GitHub Desktop.
My VIM Notes
# manually specify syntax
:set syntax=js
// view 'recent' files
:buffers // open a 'recent' file
:buffer nameFromList
// diff file against any arbitrary text in v-split
C-w v - open new v-split
C-w n - open blank buffer (then close the other one)
p - paste some content
:windo diffthis - initiate the diff
// while diffing, 'go' pulls the other hunk into current,
// and 'gp' does the opposite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment