From: Grigory Sarnitskiy <[email protected]>, Wed, May 04, 2011 7:53 am
>
[...]
> I have two files, LJ.input and virial.input. First I open LJ.input.
> Then I'm trying to open virial.input from nautilus and I get the
> following message:
>
> Swap file "~/Projects/Physics/Second Virial 
> Coefficient/FriCAS/.virial.input.swp"
> already exists!
>
> If I choose "Edit anyway" I can edit it. However, there is no tabs
> to switch between the two opened files. I can switch through
> "Window" menu but it is not convenient.
>
> Also when I click "New" button the new document is created, but
> again no tabs to switch to the previous document, only through the
> "Window" menu.

What happens with Window > Tabs > Refresh Tabs once you get past the
swap file issue?

Also, one more question, what does Cream report when you type:

  <Ctrl+L>:echo v:servername<Enter>

?

I think you may be seeing two problems:

1. window focus: Gnome sometimes doesn't trigger the Vim/Cream window
   autocmd event FocusLost and FocusGained.

2. swap file: The nautilus re-direct might be confusing Vim
   servernames.

The first item has to be fixed in Gnome/Vim. But an easy workaround is
to simply use the quick key combination <Alt+W>,<T>,<E> each time.

The second item is to figure out where the nautilus command to open
Cream is stored and add the parameter:

     --servername "CREAM"

The system should be using the "cream" executable shell script that
ships with Cream, the entirety of which is:

  ---- cream (shell script) ------------------------------------------
  #!/bin/sh
  gvim --servername "CREAM" -U NONE -u "\$VIMRUNTIME/cream/creamrc" "$@"
  --------------------------------------------------------------------

Does any of this shed any light on the problem?


-- 
Steve Hall  [ digitect dancingpaper com ]
:: Cream for Vim (http://cream.sourceforge.net)




------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to