Created
December 10, 2015 00:10
-
-
Save coopermaruyama/0dca408f17f3b0b53eae to your computer and use it in GitHub Desktop.
My VIM Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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