DEV Community

loading...

Discussion on: A Simple (Yet Powerful) Tip on Git and Vim

Collapse
ferricoxide profile image
Thomas H Jones II

For me:

vim -c 'set syntax=<TYPE>' <( git show <BRANCH>:PATH/TO/FILE )

Feels more natural. Basically, I'm still saying "vim this".