Thread: Re: [cream] Tabbed interface.
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@da...> - 2011-05-04 11:17:49
|
From: Grigory Sarnitskiy, Wed, May 04, 2011 3:24 am > > How do I enable tabs in Cream? Now I can't open several files in > cream simultaneously, only one at a time. > > Ubuntu 11.04 x64, cream 0.42 from the repos. Hmm, sounds like a default setting is being over-ridden by cream-conf. (This shouldn't be possible by default from Cream 0.39 onwards.) I wonder if the packager has tampered with the defaults, do you have a cream-conf.vim file on your system somewhere? The following should tell you places to check: <Ctrl+L>:echo &runtimepath<Enter> If yes, delete or rename it. If no, maybe an old variable is still floating around, see if the global exists: <Ctrl+L>:echo g:CREAM_SINGLESERVER<Enter> If it exists, type this: <Ctrl+L>:unlet g:CREAM_SINGLESERVER<Enter> Fixed? -- Steve Hall [ digitect dancingpaper com ] :: Cream for Vim (http://cream.sourceforge.net) |
From: Steve H. <dig...@da...> - 2011-05-04 12:49:36
|
From: Grigory Sarnitskiy <sar...@ya...>, 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) |
From: Grigory S. <sar...@ya...> - 2011-05-04 11:53:51
|
No, nothing helped, CREAM_SINGLESERVER is 0. Maybe I should better describe cream's behavior. 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. 04.05.2011, 15:17, "Steve Hall" <dig...@da...>: > From: Grigory Sarnitskiy, Wed, May 04, 2011 3:24 am > >> How do I enable tabs in Cream? Now I can't open several files in >> cream simultaneously, only one at a time. >> >> Ubuntu 11.04 x64, cream 0.42 from the repos. > > Hmm, sounds like a default setting is being over-ridden by cream-conf. > (This shouldn't be possible by default from Cream 0.39 onwards.) > > I wonder if the packager has tampered with the defaults, do you have a > cream-conf.vim file on your system somewhere? The following should > tell you places to check: > > <Ctrl+L>:echo &runtimepath<Enter> > > If yes, delete or rename it. If no, maybe an old variable is still > floating around, see if the global exists: > > <Ctrl+L>:echo g:CREAM_SINGLESERVER<Enter> > > If it exists, type this: > > <Ctrl+L>:unlet g:CREAM_SINGLESERVER<Enter> > > Fixed? > > -- > Steve Hall [ digitect dancingpaper com ] > :: Cream for Vim (http://cream.sourceforge.net) |