Hot answers tagged vim
I think you are looking for :tabe +set\ nomodifiable|set\ ro filename Using + after tabe lets you specify a set of commands to run when opening the file. For more details, see :help +cmd If this is something you do often, you can set up a custom command to do this for you :command! -bang -nargs=+ -complete=file Tabread tabe<bang> +set\ ...
Only top voted, non community-wiki answers of a minimum length are eligible