mhartington / oceanic-next

Oceanic Next theme for neovim
Other
1.13k stars 141 forks source link

How to set the background color, it looks like ... #81

Closed qingdujun closed 5 years ago

qingdujun commented 5 years ago

Problems summary

How to set the background color, it looks like `Click`.

Click

Expected

The background look like http://vimcolors.com/377/OceanicNext/dark

Environment Information

qingdujundeMacBook-Pro:~ qingdujun$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 19 2019 12:07:46)
macOS version

Provide a minimal vim rc with less than 50 lines (Required!)

" Your minimal init.vim
set runtimepath+=~/path/to/oceanic-next

My ~/.vimrc, and the full informations you can see Here and issue

Plug 'mhartington/oceanic-next'

...

" Theme
 syntax enable
" for vim 7
 set t_Co=256

" for vim 8
 if (has("termguicolors"))
  set termguicolors
 endif

colorscheme OceanicNext

The reproduce ways from neovim starting

  1. foo
  2. bar
  3. baz

Screen shot (if possible)

屏幕快照 2019-04-10 下午4 19 13

mhartington commented 5 years ago

what terimnal are you using? iterm? Apple's built-in terminal? From the looks of it, the terminal might not support true colors, meaning that it's falling back to the older ansi colors, which in turn are dependent on your terminals color settings.

qingdujun commented 5 years ago

what terimnal are you using? iterm? Apple's built-in terminal? From the looks of it, the terminal might not support true colors, meaning that it's falling back to the older ansi colors, which in turn are dependent on your terminals color settings.

Yes, Apple's built-in terminal.

I have changed to neovim. But, where shoud I put my config or .vimrc?

qingdujun commented 5 years ago

Sorry, I have found it.

: help vimrc

A file that contains initialization commands is generically called a "vimrc" or config file. Each line in a vimrc file is executed as an Ex command line. See also vimrc-intro and base-directories.

The Nvim config file is named "init.vim", located at:

Unix            ~/.config/nvim/init.vim
Windows         ~/AppData/Local/nvim/init.vim

Or if $XDG_CONFIG_HOME is defined:

$XDG_CONFIG_HOME/nvim/init.vim

So cool!

屏幕快照 2019-04-10 下午8 17 44