On 03/05/09 18:15, bill lam wrote:
> On Sun, 03 May 2009, Ben Fritz wrote:
>> I'm confused...do you want to make sure Vim only opens one file per
>> Vim instance, or do you want to make sure Vim only ever has 1 instance
>> and each new file opens in a new tab?
>
> For example, I want to make vim impossible to open another file using
> :sp and can only stay on the file that it is opened for edit.
>
Well, you could disable split-windows and tabpages by using a Vim build
compiled without the +windows feature, maybe a "tiny" build as is
available as "vi" on some Linux distribution such as RedHat if you
install the vim-minimal package; but AFAIK you couldn't disable the use
of multiple buffers where only one of them is visible at a time, the
other ones being hidden (see ":help 'hidden'").
However that would seriously cripple Vim, reducing its advantage over
the built-in editor of your IDE to a negligible or even negative value.
Consider: +windows is regarded as one of the most basic features of Vim,
even more so than +eval, since "small" builds have split windows but no
expression evaluation. IOW a -windows build would probably also have no
autocommands and therefore no filetype detection, no syntax
highlighting, no spell-checking, no auto-indenting...
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
25. You believe nothing looks sexier than a man in boxer shorts illuminated
only by a 17" inch svga monitor.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---