public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Trouble with setting ini files : gnuplot and vi
@ 2020-12-21 13:36 Fergus Daly
  2020-12-21 14:07 ` Eliot Moss
  2020-12-21 20:47 ` Gary Johnson
  0 siblings, 2 replies; 7+ messages in thread
From: Fergus Daly @ 2020-12-21 13:36 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Despite best efforts I cannot find a way of setting user preferences for vi (e.g. preferred syntax-sensitive settings)
and gnuplot (e.g. preferred line colours / thickness).
I have tried editing /etc/vimrc, /etc/virc for vi; and /etc/X11/app-defaults/Gnuplot for gnuplot accordingly.
(I use gnuplot-x11.) No change from standard representation.
Any ideas?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with setting ini files : gnuplot and vi
  2020-12-21 13:36 Trouble with setting ini files : gnuplot and vi Fergus Daly
@ 2020-12-21 14:07 ` Eliot Moss
  2020-12-21 20:58   ` Fergus Daly
  2020-12-21 20:47 ` Gary Johnson
  1 sibling, 1 reply; 7+ messages in thread
From: Eliot Moss @ 2020-12-21 14:07 UTC (permalink / raw)
  To: Fergus Daly, 'cygwin@cygwin.com'

On 12/21/2020 8:36 AM, Fergus Daly via Cygwin wrote:
> Despite best efforts I cannot find a way of setting user preferences for vi (e.g. preferred syntax-sensitive settings)
> and gnuplot (e.g. preferred line colours / thickness).
> I have tried editing /etc/vimrc, /etc/virc for vi; and /etc/X11/app-defaults/Gnuplot for gnuplot accordingly.
> (I use gnuplot-x11.) No change from standard representation.
> Any ideas?

The first thing I would check is whether you have an individual ~/.virc or ~/.gnuplot file that is 
overriding the settings of interest.  For gnuplot, at least, the man page says that its "show 
loadpath" command will indicate where it looks for gnuplotrc.  On my system that is 
/usr/share/gnuplot/5.4/.  Since my gnuplot offers x11 for "set term", I think I'm looking at the 
right thing, but if gnuplot-x11 is truly different, then maybe try the "show loadpath" command for 
it.  I don't have vi installed (only vim) so I can't speak to that.

The next thing I would check are the various permissions, to make sure the program can actually read 
the file(s) in question.

Maybe you have done all this, in which case I'm sorry my ideas were not helpful ...

Best wishes - Eliot Moss

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with setting ini files : gnuplot and vi
  2020-12-21 13:36 Trouble with setting ini files : gnuplot and vi Fergus Daly
  2020-12-21 14:07 ` Eliot Moss
@ 2020-12-21 20:47 ` Gary Johnson
  2020-12-21 21:01   ` Fergus Daly
  1 sibling, 1 reply; 7+ messages in thread
From: Gary Johnson @ 2020-12-21 20:47 UTC (permalink / raw)
  To: cygwin

On 2020-12-21, Fergus Daly via Cygwin wrote:
> Despite best efforts I cannot find a way of setting user preferences for vi (e.g. preferred syntax-sensitive settings)
> and gnuplot (e.g. preferred line colours / thickness).
> I have tried editing /etc/vimrc, /etc/virc for vi; and /etc/X11/app-defaults/Gnuplot for gnuplot accordingly.
> (I use gnuplot-x11.) No change from standard representation.
> Any ideas?

If you are really using /usr/bin/vi and not /usr/bin/vim, then you
are using the small version of vim, which does not support filetype
detection or syntax highlighting as well as some other vim features.
If you want a full-featured vim, install the vim package.

Regards,
Gary


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Trouble with setting ini files : gnuplot and vi
  2020-12-21 14:07 ` Eliot Moss
@ 2020-12-21 20:58   ` Fergus Daly
  2020-12-21 21:02     ` Eliot Moss
  2020-12-21 21:06     ` Achim Gratz
  0 siblings, 2 replies; 7+ messages in thread
From: Fergus Daly @ 2020-12-21 20:58 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

>> Despite best efforts I cannot find a way of setting user preferences 
>> for vi (e.g. preferred syntax-sensitive settings) and gnuplot (e.g. preferred line colours / thickness).
>> I have tried editing /etc/vimrc, /etc/virc for vi; and /etc/X11/app-defaults/Gnuplot for gnuplot accordingly.
>> (I use gnuplot-x11.) No change from standard representation.
>> Any ideas?

>The first thing I would check is whether you have an individual ~/.virc or ~/.gnuplot file that is overriding the settings of interest.
> For gnuplot, at least, the man page says that its "show loadpath" command will indicate where it looks for gnuplotrc.
> On my system that is /usr/share/gnuplot/5.4/.
> Since my gnuplot offers x11 for "set term", I think I'm looking at the right thing, but if gnuplot-x11 is truly different,
> then maybe try the "show loadpath" command for it.  I don't have vi installed (only vim) so I can't speak to that.
> The next thing I would check are the various permissions, to make sure the program can actually read the file(s) in question.
> Maybe you have done all this, in which case I'm sorry my ideas were not helpful ...
> Best wishes - Eliot Moss

Thank you!
For gnuplot your suggestion worked perfectly. I have now tweaked /usr/share/gnuplot/5.4/gnuplotrc as required.
Perplexed by your "vim not vi". I set up my Cygwin platform using setup -P and do not specify any editor beyond nano
(which is perfect to my needs). Nevertheless I get vi. From "Package search" I'm guessing it comes as an adjunct because I also need
groff and latex. You must actually specify vim? which I vaguely recall preferring to vi but cannot remember why.
(Mainly, I  liked neither. But I can remember easily setting and locating /etc/vimrc, and that it was properly picked up.)
Nevertheless, still having problems with setting and location virc - since I've got vi, I'd just like to be able to use it effectively .. ..
Thanks again, anyway.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Trouble with setting ini files : gnuplot and vi
  2020-12-21 20:47 ` Gary Johnson
@ 2020-12-21 21:01   ` Fergus Daly
  0 siblings, 0 replies; 7+ messages in thread
From: Fergus Daly @ 2020-12-21 21:01 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

>> Despite best efforts I cannot find a way of setting user preferences 
>> for vi (e.g. preferred syntax-sensitive settings) and gnuplot (e.g. preferred line colours / thickness).
>> I have tried editing /etc/vimrc, /etc/virc for vi; and /etc/X11/app-defaults/Gnuplot for gnuplot accordingly.
>> (I use gnuplot-x11.) No change from standard representation.
>> Any ideas?

> If you are really using /usr/bin/vi and not /usr/bin/vim, then you are using the small version of vim,
> which does not support filetype detection or syntax highlighting as well as some other vim features.
> If you want a full-featured vim, install the vim package.
> Regards, Gary

Seen immediately after my reply to Eliot. Thanks very much - now all is clear.
Fergus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with setting ini files : gnuplot and vi
  2020-12-21 20:58   ` Fergus Daly
@ 2020-12-21 21:02     ` Eliot Moss
  2020-12-21 21:06     ` Achim Gratz
  1 sibling, 0 replies; 7+ messages in thread
From: Eliot Moss @ 2020-12-21 21:02 UTC (permalink / raw)
  To: Fergus Daly, 'cygwin@cygwin.com'

On my system vi is aliased to vim.  However, there is a /usr/bin/vi and a /usr/bin/vim, and they are 
clearly different (vim is about twice the size).

Regards - Eliot Moss

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with setting ini files : gnuplot and vi
  2020-12-21 20:58   ` Fergus Daly
  2020-12-21 21:02     ` Eliot Moss
@ 2020-12-21 21:06     ` Achim Gratz
  1 sibling, 0 replies; 7+ messages in thread
From: Achim Gratz @ 2020-12-21 21:06 UTC (permalink / raw)
  To: cygwin

Fergus Daly via Cygwin writes:
> For gnuplot your suggestion worked perfectly. I have now tweaked
> /usr/share/gnuplot/5.4/gnuplotrc as required.

You are not supposed to fiddle with that file.  Your personal setup goes
into $HOME/.gnuplot instead.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-21 21:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 13:36 Trouble with setting ini files : gnuplot and vi Fergus Daly
2020-12-21 14:07 ` Eliot Moss
2020-12-21 20:58   ` Fergus Daly
2020-12-21 21:02     ` Eliot Moss
2020-12-21 21:06     ` Achim Gratz
2020-12-21 20:47 ` Gary Johnson
2020-12-21 21:01   ` Fergus Daly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).