DEV Community

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

Collapse
 
gypsydave5 profile image
David Wickes

Maybe better if instead of an alias you wrote a short bash script that could take an argument for the filetype? Something like (call it vimtype).

vim - -c "set syntax=$1"

So...

git show branch_name:/path/to/file.py | vimtype python

Just a thought

Collapse
 
jovica profile image
jovica

I like it, cool idea too! Thanks.