You are not logged in.

#1 2022-07-10 03:27:19

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

[solved] launch vim with non-default colorscheme

there is a way to open vim while selecting a colorscheme. I don't want to globally change the colorscheme, but I have an alias and I need to launch with a different color.

I used to do this, but I've forgotten. I can't find anything in the man page or online. online docs all reference global changes.

thanks.

Last edited by shoelesshunter (2022-07-10 05:01:35)

Offline

#2 2022-07-10 04:26:28

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: [solved] launch vim with non-default colorscheme

From vim manpage:

       +{command}

       -c {command}
                   {command} will be executed after the first file has been read.  {command} is interpreted as an Ex command.  If the {command} 
                   contains spaces  it must be enclosed in double quotes (this depends on the shell that is used).  Example: vim "+set si" main.c
                   Note: You can use up to 10 "+" or "-c" commands.

So, vim "+colorscheme <colorscheme-name>". Example: vim "+colorscheme desert"

Is that what you want?


I'm just someone. Please use [code] [/code] tags.

Offline

#3 2022-07-10 05:01:19

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] launch vim with non-default colorscheme

yes. thank you so much.

Offline

Board footer

Powered by FluxBB