Problems getting colors in Vim using Iterm2

I can not get vimbrant colorscheme (or any) to work in Vim with Iterm2. This is my .vimrc file:

syntax on
syntax enable
colorscheme vimbrant
set background=dark

I have Iterm configured to use xterm-256, as in the FAQ. Whenever I echo in Vim, it says 256.

The terminal also does not use the color settings that I have in Iterm2, but it does not bother me.

EDIT: The file is located in ~ / .vim / colors / vimbrant.vim. Also, I forgot to mention that my cursor seems to have the right colors for variables and structures and much more, but the text itself is still white. The background seems to be the right color. And the only thing that is in my .gvimrc file is colorscheme vimbrant.

+4
source share
4

, , .

+4

, , , :

.bash_profile CLICOLOR TERM:

# Set CLICOLOR if you want Ansi Colors in iTerm2 
export CLICOLOR=1

# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color

bash :

source ~/.bash_profile 

iTerm2 > Terminal > Report Terminal Type xterm-256color xterm

iTerm2, ls. .

.

+2

iterm2 , vim/janus. iterm2 , 20161204 vim.

, , vim, "" iterm2. set background=dark .vimrc, . , set background=light, , !

- vim, , . , , vim 4 2016 .

+1
source

syntax enableuseless after syntax on.

set background=dark also usually useless outside the color scheme.

Does your color scheme work when you do :colorscheme vimbrant? Where did you install it?

0
source

All Articles