On 15 sep, 17:30, Rick R <[email protected]> wrote: > > Being new to vim I 'think' it seems related to when I have a file that I've > edited but not saved. So for example: > > I split a window. > Make some changed in the original window but don't save them. > Now work in the other window and eventually close it. > When I now use NerdTree or command-t it opens a new file in a split window.
Yep, your suspicion is correct. If you have `nohidden` set, and it sounds like you do, Vim won't let you open a new file in an existing buffer if the buffer has changes. To avoid the annoying warning prompt in this case, both Command-T and evidently NERDTree just open in a split instead. Try setting `:set hidden` (see `:h 'hidden'` for more details) if you don't like this behavior. Then Vim will allow you to move buffers with unsaved changes out of sight without any annoying prompts. It's quite safe to use this setting as if you try to quit Vim without those changes being saved it will still warn you. Cheers, Wincent -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
