Giter Club home page Giter Club logo

vim-colors-xcode's Introduction

vim-colors-xcode

A number of Xcode’s colourschemes, now for (Neo)Vim!

High contrast variants are available
xcodedark xcodedarkhc (high-contrast)

xcodelight xcodelighthc (high-contrast)
Installation

Use your favorite runtimepath/plugin manager. If you don’t have one, I recommend Plug:

Plug 'arzg/vim-colors-xcode'

Or, alternatively, you can install the old-fashioned way by copying the relevant directories right into ~/.vim:

$ git clone https://github.com/arzg/vim-colors-xcode.git
$ cp -r vim-colors-xcode/{autoload,colors,doc} ~/.vim
Language Support

These colourschemes have been carefully tuned for the following language plugins:

Plugin Support

These plugins are specifically supported:

To get the closest experience to Xcode it is recommended that you use the following configuration for Signify:

let g:signify_sign_add    = ''
let g:signify_sign_change = ''
let g:signify_sign_delete = ''

let g:signify_sign_show_count = 0 " Don’t show the number of deleted lines.

Xcode updates its Git gutter signs immediately upon editing. To achieve this you can add the following to your vimrc:

" Update Git signs every time the text is changed
autocmd User SignifySetup
            \ execute 'autocmd! signify' |
            \ autocmd signify TextChanged,TextChangedI * call sy#start()
Options

Use :help xcode<variant>, where variant is either dark, darkhc, light, lighthc, or wwdc, to view a list of all the possible options and their default values. Add g:xcode<variant>_ in front of every option name for use. For example, emph_funcs would turn into g:xcodedarkhc_emph_funcs if you want it to apply to the dark high contrast variant and g:xcodelight_emph_funcs for the light version.

Note that I’ve only added screenshots of the light and dark variants for the options below for reasons of brevity.

Comment Style
  • This option does not exist in the WWDC colourscheme
  • The default value is 0
green_comments Dark Light
0
1
Punctuation Dimming
  • This option is available in all colourschemes
  • The default value is 1
dim_punctuation Dark Light
0
1
Syntax Item Emphasis
  • This option is available in all colourschemes
  • The default values are 1, 0 and 0, for emph_types, emph_funcs and emph_idents respectively
emph_types, emph_funcs, emph_idents Dark Light
1,
0,
0
0,
1,
0
0,
1,
1
MatchParen style
  • This option is available in all colourschemes
  • The default value is 0
match_paren_style Dark Light
0
1
Usage

First, add one of the following lines to your Vim configuration.

The standard theme:

colorscheme xcode

Or the high contrast version:

colorscheme xcodehc

Either version will change appearance based on background's value (light or dark).

You may also specify a theme variant specifically, bypassing the automatic background feature. This method is the only way to access the xcodewwdc theme.

colorscheme xcodedark
colorscheme xcodedarkhc
colorscheme xcodelight
colorscheme xcodelighthc
colorscheme xcodewwdc

If you’re using a GUI, then this is all the setup you need. However, if you’re planning to use vim-colors-xcode in a terminal, the terminal must support 24-bit colour, also known as True Colour. This can be enabled through the use of the following setting:

set termguicolors

If you want other terminal output to match with vim-colors-xcode, then set its colours to match the ones below:

Dark Palette
Colour Normal Bright
Black #414453 #7f8c98
Red #ff8170 #ff8170
Green #78c2b3 #acf2e4
Yellow #d9c97c #ffa14f
Blue #4eb0cc #6bdfff
Magenta #ff7ab2 #ff7ab2
Cyan #b281eb #dabaff
White #dfdfe0 #dfdfe0
Foreground #dfdfe0
Background #292a30
Dark High Contrast Palette
Colour Normal Bright
Black #43454b #838991
Red #ff8a7a #ff8a7a
Green #83c9bc #b1faeb
Yellow #d9c668 #ffa14f
Blue #4ec4e6 #6bdfff
Magenta #ff85b8 #ff85b8
Cyan #cda1ff #e5cfff
White #ffffff #ffffff
Foreground #ffffff
Background #1f1f24
Light Palette
Colour Normal Bright
Black #b4d8fd #8a99a6
Red #d12f1b #d12f1b
Green #3e8087 #23575c
Yellow #78492a #78492a
Blue #0f68a0 #0b4f79
Magenta #ad3da4 #ad3da4
Cyan #804fb8 #4b21b0
White #262626 #262626
Foreground #262626
Background #ffffff
Light High Contrast Palette
Colour Normal Bright
Black #b4d8fd #8a99a6
Red #ad1805 #ad1805
Green #355d61 #174145
Yellow #78492a #78492a
Blue #0058a1 #003f73
Magenta #9c2191 #9c2191
Cyan #703daa #441ea1
White #000000 #000000
Foreground #000000
Background #ffffff
WWDC Palette
Colour Normal Bright
Black #494d5c #7f869e
Red #bb383a #bb383a
Green #94c66e #94c66e
Yellow #d28e5d #d28e5d
Blue #8884c5 #8884c5
Magenta #b73999 #b73999
Cyan #00aba4 #00aba4
White #e7e8eb #e7e8eb
Foreground #e7e8eb
Background #292c36

iTerm presets for all these palettes are included with this repository.

If you would like to have italic comments, add the following to your vimrc:

augroup vim-colors-xcode
    autocmd!
augroup END

autocmd vim-colors-xcode ColorScheme * hi Comment        cterm=italic gui=italic
autocmd vim-colors-xcode ColorScheme * hi SpecialComment cterm=italic gui=italic

Made in Colortemplate, the Toolkit for Vim Colourscheme Designers.

The font in the screenshots is SF Mono, which you can download from Apple’s website.

vim-colors-xcode's People

Contributors

bronzehedwick avatar jaysonyan avatar kuglee avatar lunacookies avatar micampe avatar pieps avatar sailnfool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-colors-xcode's Issues

g:xcodedark_green_comments won't work

I am on latest Vim. I have been using this theme but I just tried to set
let g:xcodedark_green_comments = 1 Unfortunately it does not apply.
highlight Comment show the default xcodedark

Xcode Dark HC background color mismatch

The background color that is used in Vim and the background color that is suggested for terminal seem to be incorrect.

xcodedarkhc seems to be using #1C1C1C for the background color rather than the suggested #1F1F24 for the terminal color profile.

vim-color-xcode

I am using WSL in WIndows Terminal which has true color support to my knowledge. Am I doing something incorrect?

Thanks in advance!

How to get a darker background?

Hi, I'm loving the theme so far. However, I'd like my background to have a darker tone. What can I do in order change it? Thank you in advance!

Cannot find color scheme on windows

Hello,

My config works completely fine on Linux, however, on windows, it can't seem to find the color scheme.

image

Any idea on how to resolve this?

Thank you, my config:

set nocompatible              " be iMproved, required
filetype off                  " required

" Syntax highlighting on
syntax on
set t_Co=256
" Cursor line on
set cursorline

set rtp+=C:/Users/Yuhanun\ Citgez/.vim/bundle/Vundle.vim

call vundle#begin()

" Package manager
Plugin 'VundleVim/Vundle.vim'

" Theme
Plugin 'sonph/onehalf', {'rtp': 'vim/'}

" Another theme
Plugin 'arzg/vim-colors-xcode'

" Directory tree
Plugin 'preservim/nerdtree'

" Real-time syntax analysis for C++
Plugin 'vim-syntastic/syntastic'

" Snippet engine.
Plugin 'SirVer/ultisnips'

" Vim snippets, they go with the engine above
Plugin 'honza/vim-snippets'

" Find text fuzzy
Plugin 'junegunn/fzf'

" Clang-format
Plugin 'rhysd/vim-clang-format'

" Rainbows for {}, () and [] etc
Plugin 'oblitum/rainbow'

" Taglist 
Plugin 'taglist.vim'

" Easy multiline commenter
Plugin 'preservim/nerdcommenter'

" Git
Plugin 'airblade/vim-gitgutter'

" Lightline, bottom bar
Plugin 'itchyny/lightline.vim'

" Auto-pairs, completes [] etc
Plugin 'jiangmiao/auto-pairs'

" Ack
Plugin 'mileszs/ack.vim'

" Protobuf support
Bundle 'uarun/vim-protobuf'

call vundle#end()            " required

" Color theme
" colorscheme onehalfdark
" colorscheme xcodedark
colorscheme xcodedarkhc
let g:airline_theme='onehalfdark'

" Nerdtree
let g:NERDTreeWinPos='left'
nmap <T> :NERDTreeToggle<CR>

" Tag List
let g:Tlist_Inc_Winwidth=0
nmap <L> :TlistToggle<CR>

" Syntastic stuff
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list=1
let g:syntastic_auto_loc_list=1
let g:syntastic_check_on_open=1
let g:syntastic_check_on_wq=0

" Snippets
let g:UltiSnipsExpandTrigger="<bar>"
let g:UltiSnipsJumpForwardTrigger="<bar>"
let g:UltiSnipsJumpBackwardTrigger="<CR+bar>"
let g:UltiSnipsEditSplit="vertical"

" map <I> = clang-format
nmap <I> :ClangFormat<CR>

" Rainbow brackets
let g:rainbow_active=1

" Multiline commenter
let g:NERDSpaceelims=1
let g:NERDCompactSexyComs=1
let g:NERDDefaultAlign='left'
let g:NERDTrimTrailingWhitespace=1

" Lightline
set laststatus=2

" Compiling, some custom CMake stuff :)
command CompileCmake :!_compile_current_dir
nmap <C> :CompileCmake 

filetype plugin indent on    " required

Lightline Version of Status Bar

Great work on the theme! I'm just wondering would there be a lightline implementation of the status bar? If not then is there anyway I can quickly port the airline theme into lightline theme file?

Thank you so much!

Tricky to distinguish matching paren from current paren

Hi, thanks for the colors. I was wondering if it was possible to make it easier to distinguish matching parentheses, currently I perceive the matching parentheses more strongly than the current one and I keep getting confused about where the cursor is.

Can't emphasize (funcs, types, indents) in xcodewwdc

Hello,
Is there a reason that the g:xcodewwdc_emph_funcs (/types/indents) option doesn't work?
It worked when I did it with the dark scheme, but didn't work with the wwdc scheme.

Thanks in advance, amazing scheme btw <3

Some "Step ZERO" instructions would be useful.

I have always relied upon the color schemes built-in to vim. I had to do some background searching to realize that I needed to copy the color schemes found in your colors directory to /usr/share/vim/colors to be able to set them with a command like:

colo xcodelighthc

I presume that if I copy the colors directory to ~/.vim/colors (so I don't need privileged permissions) it would have the same effect (and yes, that was the appropriate non-privileged way to add the color schemes).

I ran into the same "Step ZERO" problem with using plug

If your README.md file would point to an appropriate introduction to using colors files in vim, that would suffice. I suspect it already exists.

I am very old school. I started using ed in 1974, long before there were graphics terminals. The first CRTs were barely better than a glass tty with only rudimentary curses capabilities long before the DEC VT100 was created and documented. Implementing the first screen editor add on for ed and running on acoustic coupled 300 baud modem was painful, but a big step forward.

Warning color

Hi,

I noticed warning and error colors are the same. I think warning should be more yellowish than red.
I think what's currently set for PreProc would work great for Warning color.

Same line diffs are hard to make of

Hello,

Please see below screenshot:

screenshot

The diff part could use a little more background highlighting IMO. It might be my iTerm, I'm not sure as well.

Fold not readable

Hi,

first of all, great colorscheme. Really like it, especially light version.

I just noticed that closed folds are hard to read. Here's example screenshot:

screenshot

In dark mode it looks a bit better, but in light mode contrast really kills it.

Is this intended to be like this? If yes, it would be great to introduce a variable to make it a bit more readable.
If not intended, i guess it just needs to be introduced with some darker colors.

Creating a file with no extension takes a tons of time

Hi!
Thanks for the awesome theme, I've been using a lot lately for my vim work setup.
I've just downloaded it today to install it at home, and I've realized that it doing something like this takes ages:
vim somefile

while
vim somefile.py
immediately opens vim.

I'm probably doing something wrong when installing the theme.
What I did is copy paste the xcodedark file into ~/.vim/colors and then added colorscheme xcodedark in my ~/.vimrc .
I'm on macos Mojave.

Any ideas?
Thanks!

Valerio

ALE Integration

Hi,

any chance to add Ale integration?

Some parts of it uses defaults, but some things are missing. For example, Neovim's virtual text is not highlighted at all.

Example screenshot with current highlights:
screenshot

And with added error highlight:
screenshot-hl

Basically these two lines should be added:

  hi link ALEVirtualTextError ErrorMsg
  hi link ALEVirtualTextWarning WarningMsg

Other things look like they're working.

Add option to disable italics for comments?

First of all, nice color scheme! The best Xcode vim color I know. Thank you so much!

I'd like to have an option to disable italics for comments. After all, Xcode doesn't use italics for comments.

Airline support

Thanks for the colour schemes. Could you please add vim-airline support?

SpellBad undercurl not working in all terminals

First thanks for making these awesome color schemes. I run into some trivial problems when running Vim in xterm.

The SpellBad highlighting to:

hi SpellBad guifg=NONE guibg=NONE gui=undercurl ctermfg=NONE ctermbg=NONE cterm=undercurl

However, not all terminals support undercurl, in xterm the badly spelled words are not styled distinctly. it would be better to set a ctermbg or ctermfg for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.