Enno Ngel wrote:
> In editexisting.vim from 2013 Feb 24, can the splits occurring at line
> number 106 and below be made optional ? That is, use either edit or
> split by setting a global variable.
>
> The concerned code is:
>
> if winnr > 0
> exe winnr . "wincmd w"
> elseif exists('*fnameescape')
> exe "split " . fnameescape(a:fname)
> else
> exe "split " . escape(a:fname, " \t\n*?[{`$\\%#'\"|!<")
> endif
>
> if a:command != ''
> exe "normal " . a:command
> endif
>
>
> In gVim 7.4.514 under Windows 7 64bit this leads to two windows of the
> same buffer.
If the buffer is already open in a window, it should be found and become
the current window, since "winnr" will be set. Does this not work for
you?
--
OLD WOMAN: King of the WHO?
ARTHUR: The Britons.
OLD WOMAN: Who are the Britons?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.