I would like to know if there is some way to make vim always highlight according to the targets extension rather than the symlink's extension
I wrote a small shell function that can do what I want but it is not perfect.
Here is my function:
function myVI () {
local filename=$(readlink $1);
vim -c "cd $(dirname $1)" "$filename";
}
This is not ideal I prefer a native vim cmd if it exist.