Also please checkout [vim-fugitive|github.com/tpope/vim-fugitive].
Have the interested file from the current branch open in vim. Then :Gedit some_other_branch:% opens the file as in the other branch, with syntax highlighting!
vim-fugitive transformed the way I work. Can't recommend it highly enough.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.