I use tabs for each file and often want to view a file in a new tab without editing it. So I now have a line in my .vimrc:
ab tabv tabnew\|set nomodifiable\|view
and then :tabv [file] just opens my file in a new tab read-only and nomodifiable.
I use tabs for each file and often want to view a file in a new tab without editing it. So I now have a line in my .vimrc:
ab tabv tabnew\|set nomodifiable\|view
and then :tabv [file] just opens my file in a new tab read-only and nomodifiable.