vim + solarized colorscheme + lxterminal - vim

I'm trying to install Solarized colorschem for vim, unfortunately i have some background problem: screen & ~/.vimrc
i do all necessary ~/.vimrc settings:
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized
in vim :echo $TERM return xterm-256color
and :set t_Co? return t_Co=256
Also, i check my terminal(lxterminal) for 256color support by Colortest utility from vim.org and i got this rgb grid.
I don't find solution of my problem and have no idea what else i'm supposed to do, that's why i start new topic

You have to config your terminal with solarized theme too.
check http://ethanschoonover.com/solarized/vim-colors-solarized, and search keyword: please please pleaseyou are gonna see:
IMPORTANT NOTE FOR TERMINAL USERS:
If you are going to use Solarized in Terminal mode (i.e. not in a GUI
version like gvim or macvim), please please please consider setting
your terminal emulator’s colorscheme to used the Solarized palette.....

Related

Vim solarized colorscheme does not work correctly

I am new user to Vim and I have installed Solarized colorscheme. Unfortunately, the colorscheme does not look how it should. I tried running test for testing terminal color palette and it works correctly:
terminal color palette
While I run the vim and test the color palette it is definitely wrong:
vim color palette
Here is my .vimrc configuration file:
call plug#begin()
Plug 'altercation/vim-colors-solarized'
call plug#end()
leg g: solarized_termcolors=256
syntax enable
set background=dark
colorscheme solarized
I also tried to hardcode t_Co=256 in my .vimrc file, but it did not help.
echo #TERM says that my terminal is xterm-256color. I am using Manjaro KDE. Solarized on gVim works properly.

MacOS Solarized Color-scheme not working in Terminal VIM

I followed Ethan's Guides for configuring solarized. In particular I:
Downloaded and set his Solarized Dark ansi profile for OS X Terminal
Downloaded and moved solarized theme to vim/colors
I then added the two lines set background=dark and colorscheme solarized to my vimrc
Also downloaded macvim and linked vim to macvims vim
After doing this I get an ugly vim with green lines and the colors are not quite right. I tried using the 256 color version also with adding the option let g:solarized_termcolors=256 and while it looked a little better it wasn't quite right and I would rather do it the native way with the solarized terminal theme + ansi colors.
Ugly Solarized Result
macOS Terminal Profile Set
Also here is my vimrc:
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" javascript syntax highlighting
Plugin 'jelera/vim-javascript-syntax'
" indentation help
Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
" bracket and quote help
Plugin 'Raimondi/delimitMate'
" YouCompleteMe
Plugin 'Valloric/YouCompleteMe'
" Tern
Plugin 'marijnh/tern_for_vim'
" Surround.vim
Plugin 'tpope/vim-surround'
" Fuzzy file search
Plugin 'kien/ctrlp.vim'
call vundle#end() " required
filetype plugin indent on " required
" map ctrl + c to automatically delimit brackets and quotes
imap <C-c> <CR><Esc>O
" fuck ex mode
nnoremap Q <nop>
" you complete me tweaks
let g:ycm_add_preview_to_completeopt=0
let g:ycm_confirm_extra_conf=0
set completeopt-=preview
" general options
syntax on
set number
set expandtab
set tabstop=2
set shiftwidth=2
set guifont=Menlo:h12
set background=dark
colorscheme solarized
set showbreak=↪
let g:indent_guides_start_level=2
let g:indent_guides_guide_size=1
Solarized can't look "right" in a terminal emulator advertising itself as "256color-ready" because not a single color in its palette matches with any of colors 16-255 of the standard xterm palette. Contrary to what the official blurb might make you think, the Solarized palette is very poorly suited for terminal usage and the Vim colorscheme is not very well written at all so don't get too dreamy about that typical blue background.
That said, there are two hypothetical ways to make Solarized look "right" in a terminal:
set up colors 0-15 of your terminal emulator and make sure both Solarized and Vim only use those colors,
or, if your terminal emulator and your Vim build allow it, use :help 'termguicolors' to force Vim to use "true colors". Hint: Terminal.app doesn't support that feature.
Your Solarized terminal palette is broken: those are the default colors, not the Solarized colors.
Don't waste your time on that crap. There are plenty of competently written colorschemes at your disposal.

Vim default color scheme can't change

I'm wondering why my VIM can't apply the changes I modify in $MYVIMRC. The changes only apply to GVIM instead of VIM. I have the following in $MYVIMRC:
syntax on
colorscheme tomorrow-night
I also tried changing the color scheme setting in the command bar below by typing :colorscheme tomorrow-night but nothing changed. Why is it not changing?
The main difference between Vim and GVim is that GVim is an independent application that does not run in your terminal emulator.
If you use Vim and GVim for different purposes, I recommend you to create also a gvimrc file. But if you want to keep a single vimrc file, you can do something like this:
if has('gui_running')
" GVim
set guifont=Larabiefont\ 13
else
" Vim
set t_Co=256
set termguicolors
endif
colorscheme archery
Notice the set termguicolors in this code. I think this is the most convenient solution nowadays for common issues with colorschemes. It tells Vim to use the true colors defined for GVim with hexadecimal notation in guifg and guibg (instead of ctermfg and ctermbg).

Two different colorscheme for vim based on GUI and Terminal version of Macvim

I use gui version of macvim for my general development activites.
I use mvim from terminal also as I've mapped mvim to vim alias.
How can I open different color scheme in mvim based on whether they are opened in gui version or terminal version?
I want to set solarized colorscheme for gui version of macvim and
grb256(or anyother) colorscheme in terminal version of mvim.
How can we do this ?
if has("gui_running")
colorscheme solarized
else
colorscheme grb256
endif
And you can set any other things in there you prefer. This is the full block from my .vimrc:
if has('gui_running')
let g:solarized_contrast = 'high'
set guifont=Mensch:h14
set antialias
set background=light
colorscheme solarized
else
set background=dark
colorscheme cobalt2
endif

Vim with incorrect colors - Konsole and Yakuake

I'am using vim in Konsole and Yakuake. But I can't see the correct colorscheme.
My .vimrc file have the following text:
t_Co=256
syntax enable
set background=dark
colorscheme desert
My OS is Debian Sid.
Can you help me?
you need csapprox plugin to correctly display some color schemes in terminal

Resources