vim with Gnome integration: session restore support and vim-subpackage structure

Michael J Gruber michaeljgruber+gmane at fastmail.fm
Wed Jul 4 09:04:43 UTC 2012


Hi there,

gvim as provided in the Fedora packages does not support session restore
(i.e. reopening with the same buffers) because it does not integrate
with the GNOME nor KDE desktop environments.

Recompiling with gnome support helps: as a proof of concept, I've added
a vim-gnome subpackage to the spec file, see

http://mjg.fedorapeople.org/rpmdev/vim.spec

which is based on the current F16 (updates) spec. It provides a
gnome-vim binary which is "gvim + gnome integration" and works with KDE
as well.

It's only POC because I think we need to decide about the package
structure (see also https://bugzilla.redhat.com/show_bug.cgi?id=311061).
vim can be compiled resp. is currently in Fedora in these shapes:

* with minimal features: subpackage vim-minimal
/bin/ex
/bin/rvi
/bin/rview
/bin/vi
/bin/view
(or /usr/bin/ ;) )

* with enhanced features and without X library support: not in Fedora

* with enhanced features and no GUI: subpackage vim-enhanced
/usr/bin/ex
/usr/bin/rvim
/usr/bin/vim
/usr/bin/vimdiff
/usr/bin/vimtutor
(these support vim in xterm and such specifically and depend on X
libraries!)

* with enh. features and gtk based GUI: vim-X11 (sic!)

/usr/bin/evim
/usr/bin/gex
/usr/bin/gview
/usr/bin/gvim
/usr/bin/gvimdiff
/usr/bin/gvimtutor
/usr/bin/vimx

* with enh. features and gtk based GUI via GNOME libs: not in Fedora
This one integrates with the usual GNOME and KDE session management and
is provided as gnome-vim in my spec above.

* with motif/athena/nextaw: okay okay...

I think gnome-vim is really needed, but it could be provided as above
(maybe plus gnome-view etc.), as an alternative (vim-gtk and gnome-vim
as alternatives for gvim using the alternatives system) or as a
subpackage providing gvim directly (so that you can install at most one
of gtk/gnome versions).

Also, we may want to rename vim-X11 to vim-gtk, any maybe even provide
an X-less vim-enhanced. What do you think?

Cheers,
Michael



More information about the devel mailing list