Skip to content

support 24-bit color#17

Merged
inside merged 2 commits intoinside:masterfrom
livelazily:master
Jul 1, 2016
Merged

support 24-bit color#17
inside merged 2 commits intoinside:masterfrom
livelazily:master

Conversation

@livelazily
Copy link
Contributor

Follow this to using vim in the terminal with 24-bit color support:
https://github.com/joshdick/onedark.vim#installation

Mayby #15 can also using this setting


func! s:Initialize()
let gui_running = has('gui_running')
let gui_running = has('gui_running') || (&termguicolors == 1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check has('termguicolors') before calling &termguicolors otherwise this will generate an error if vim wasn't compiled with +termguicolors. The example below shows the error:

:if &foo | echo 42 | endif
E113: Unknown option: foo
E15: Invalid expression: &foo | echo 42 | endif

@livelazily
Copy link
Contributor Author

Updated, check again please

@inside inside merged commit 9998089 into inside:master Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants