color settings for different environments in vimrc?
13 views
Skip to first unread message
meine
unread,
Jan 27, 2021, 4:01:19 PM1/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
Hi,
Working on my computer I sometimes use plain TTY and other times a GUI.
I would like to set different colorschemes for that in my vimrc.
At this moment I have following code, but it doesn't work at all -- vim
only uses the nighted_16.
if has('gui_running')
set t_Co=256
colorscheme molokai_dark
set guifont=Monospace\ 10
set columns=85 lines=30
if has('x11')
set t_Co=256
colorscheme nighted_16
set guifont=Monospace\ 10
else
set t_Co=16
colorscheme nighted_16
endif
Any suggestions on how to improve it?
TIA,
//meine
Gary Johnson
unread,
Jan 27, 2021, 5:13:59 PM1/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
The code snippet above is missing something to end the first if,
either an endif, else/endif or elseif. You probably want to change
the second if to an elseif.
Regards,
Gary
meine
unread,
Jan 28, 2021, 2:55:38 AM1/28/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message