open last modified file in the directory using vi

bash, tcsh, vi

Solution

vi `ls -tr | tail -1`

Problem

I want a quick way to open the last modified file in the directory, perhaps in a form of alias. Currently, I do ls -ltr. Then copy-and-paste the filename Assume that I am using tcsh

Original source