request: add command line arg to launch with different background

19 views
Skip to first unread message

Srinath

unread,
Apr 18, 2012, 12:19:36 PM4/18/12
to vim_mac
This is a request, but someone may show me how to modify the mvim
command so that if I do something like:
[]$ mvim -bgl
it starts macvim with light background
and
[]$mvim -bgd
it starts in dark.

Ofcourse I would only use the command line arg for my personal non-
default background. I usually code with a dark background, but when
using a projector, we all know the greens and blues diffuse on a dark
background, so light is more usuable. I do use the mavim colorscheme
( which is great for me).

Thanks for any input.
<>Srinath

Sylvain Soliman

unread,
Apr 18, 2012, 12:24:18 PM4/18/12
to vim_mac
* Srinath <srinath....@gmail.com>:

> This is a request, but someone may show me how to modify the mvim
> command so that if I do something like:
> []$ mvim -bgl
> it starts macvim with light background
> and
> []$mvim -bgd
> it starts in dark.

Any reason why:
$ mvim -c 'set bg=light'

is not doing what you want?

Sylvain

--
Sylvain Soliman <Sylvain...@m4x.org> GnuPG Public Key: 0x0F53AF99
Page personnelle http://contraintes.inria.fr/~soliman/

Phil Dobbin

unread,
Apr 18, 2012, 12:30:48 PM4/18/12
to vim...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You could try something with the -c flag. See:

`:h -c`

Never tried it but it may work with `colorscheme`

Cheers,

Phil..

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPjuw1AAoJEKpMeDHWT5ADzHwH/RdEvSpIpCn7lBlZYkeE5RhF
zQV7ZoSRAoSIO/9BipswsvR3bA9224ddnY+72RRfaQsVNNN07/AK07F4ZGJNy2yV
9lRRb/ZJC9H9eyuDLg+Ju87C2ItIhZ3PmGPVAgmCCcnrlRckZwj53cMxF6paWr43
SqMWVzxhTF2ZgqmBGUWcNPcrtIxc5kbNw3LIRYCRZ97skq63Jd6uAxholIemTKxx
3adUIa1OcvQ/POVGdjFAPZSUXcJC7g1ZKSmZUlRk9fgf2Cqx90kAGUj9Gb03DTcV
Jh+gzCEA2U9YbP1+UNGc9kbLhLUYu19F3SvBvfRSNvqd43spKNqNcAGoH9jh06g=
=5IcG
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages