Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:sp file:line closes existing splits #43

Open
panozzaj opened this issue Feb 7, 2015 · 0 comments
Open

:sp file:line closes existing splits #43

panozzaj opened this issue Feb 7, 2015 · 0 comments

Comments

@panozzaj
Copy link

panozzaj commented Feb 7, 2015

Thank you for the plugin! I am loving it, it is very useful for pasting error messages from the console.

I have run into one issue. Finally got around to reducing it to a simple case...

Replication:

  • MacVim (version: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 20 2014 10:38:46))
  • given local files one.txt and two.txt with a few lines in each
  • $ mvim one.txt
  • :sp two.txt:2

Behavior:

  • removes one.txt from view and puts two.txt in its place

Expected behavior:

  • open two.txt in a new split and keep one.txt open

Notes:

  • in the error case above :buffers shows both files, so I think it is not closing the buffer but removing it from view (I don't have a fantastic understanding of the relation of buffer and view, or I could elaborate more. :| )
  • if I have one.txt and two.txt open, and try :sp two.txt:3, it correctly opens the split at the right place and does not close the others (three viewports open total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant