Vim Tips Wiki
Advertisement

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.

Advertisement