On 2007-03-23, "Waters, Bill" <[EMAIL PROTECTED]> wrote: > When I jump to a tag reference in a different file, can I have VIM > open that file in a new Microsoft Window? As it works now, I jump > to the new file in the same VIM session. I have three problems > with that: > > 1. VIM will not jump to the tag unless all of the changes in my > current file have been saved.
You can fix this by making the current buffer hidden before executing the jump. See :help hidden :help bufhidden :help hide > 2. When I jump to the new file, I loose the undo buffer for the > previous file. Making the buffer hidden will fix that, too. > 3. I would prefer to look at the new file in a separate, > side-by-side Microsoft Window. In that case, you could map your "jump to tag" key to a command that would execute gvim -t <cword> I'll leave that to you to figure out since it may require ":!start gvim ..." instead of just ":!gvim ..." and I don't do Windows that much. See :help :! :help :!start :help -t :help map.txt HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA