33

GitHub - adrian5/oceanic-next-vim: Oceanic Next colorscheme for vim

 3 years ago
source link: https://github.com/adrian5/oceanic-next-vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Oceanic Next

Adaptation of the Sublime Text theme for vim.

theme-preview.png

Installation

vim-plug:

Plug 'adrian5/oceanic-next-vim'

dein:

call dein#add('adrian5/oceanic-next-vim')

Manually via vim packages:

On Linux/macOS:

# vim
git clone --depth 1 https://github.com/adrian5/oceanic-next-vim \
  ~/.vim/pack/plugins/start/oceanic-next-vim

# nvim
git clone --depth 1 https://github.com/adrian5/oceanic-next-vim \
  ~/.local/share/nvim/site/pack/plugins/start/oceanic-next-vim

Finally, add the following to your vimrc and restart vim:

colorscheme oceanicnext

Configuration

Options

option value default g:oceanic_gutter_like_bg 1: Give gutter same background as file buffer 0: Gutter is slightly darker g:oceanic_transparent_bg 1: Make buffer and gutter transparent 0: Use opaque background color g:oceanic_bold 0: Don't use bold text anywhere in theme 1: Make certain text items bold g:oceanic_italic_comments 1: Comments use italic font (if supported) 0: Comments are not italic

Apply any of these before setting the colorscheme, e.g.:

let g:oceanic_bold = 0
colorscheme oceanicnext

vim-polyglot

If you use vim-polyglot, set the following option:

let g:oceanic_for_polyglot = 1

This tweaks syntax highlights for several languages, which can differ considerably from those shipping with vim.

lightline

let g:lightline = { 'colorscheme': 'oceanicnext' }

Important: Make sure you don't have mhartington/oceanic-next loaded, or its styling will take precedence!

vim-airline

Should be loaded automatically when setting oceanicnext colorscheme. As with lightline, make sure you don't have the other Oceanic Next loaded.

To keep using the airline default theme, set:

let g:airline_theme = 'default'

What about mhartington/oceanic-next ?

The hartington theme offers its own take on the original, and I found the difference sufficient to warrant another port.

Contributing

For feedback and requests, please use the Issue tracker.

  • For language requests, include code samples (or links thereto) in your report if possible; the more syntax I can check against, the better!
  • For plugin requests, consider listing features (commands) I should test, e.g. certain lists or menus to open.

If you want to submit a PR, please do so against the dev branch! Include a before/after screenshot if possible, in case I don't have the time to properly vet it. Thanks!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK