On Sun, 9 Sep 2012, Tony Mechelynck wrote:
On 08/09/12 23:02, Benjamin R. Haskell wrote:
On Sat, 8 Sep 2012, Marco wrote:
is it possible to set the WM_CLASS of gVim to a custom value?
If you're using a GTK version of gvim, you should be able to pass the
'--class' commandline argument.
[...]
Not sure this is documented anywhere. [...]
It is not documented in the Vim help AFAICT. But looking down that
list suggests (and experiment shows) that typing
vim -?
at a Unix-like shell prompt will give the help for GTK and GNOME
command-line arguments if your "vim" binary was compiled with GNOME
GUI support. However Vim still starts the editor in that case, so
vim -? -cq
is better. You will still get an E852 error and a hit-Enter prompt
after the help; just hit Enter to go back to the shell prompt.
`vim -?` gets me:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 9 2012 00:49:50)
Unknown option argument: "-?"
More info with: "vim -h"
So, "-?" must be handled by something guarded by FEAT_GNOME.
Or else,
vim --help
or
vim --help |less
will give _both_ the Vim command-line help and the GTK/GNOME
command-line help (if compiled-in). That's quite a lot of console
output, hence the |less redirection.
`gvim --help` doesn't explain the "--name" or "--class" options, despite
having a section with the heading:
Arguments recognized by gvim (GTK+ version):
Were the options just overlooked?
--
Best,
Ben
Other info from my current version:
Included patches: 1-618
Huge version with GTK2 GUI.
--
You received this message from the "vim_use" 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