W
W
Winner7772013-11-22 22:02:33
vim
Winner777, 2013-11-22 22:02:33

How to set up solarized colors/theme for vim on raspberry pi?

In general, my eyes requested a more comfortable theme for the vim editor in the raspberry pi terminal. After a short search, I found out that such a theme would be solarized theme . I downloaded, installed, configured and as a result the .vimrc config file looks like this:
let g:solarized_termcolors=256
set t_Co=256
colorscheme
solarized my eyes wanted.
But as soon as I opened vim directly on the raspberry, I ran into a problem that my brain no longer likes - all the text is the same color, either blue or light green, it's hard to understand.
As I understand it, since everything works through putty, then vim itself and the theme for it are configured correctly, the problem lies in the terminal itself. Google offers me various color settings for non-Debin, and even more so non-Raspbian terminals. Nothing that google has suggested to me is similar to what I see on the raspberry pi in terms of terminal configuration.
Actually, how to solve this problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
Winner777, 2013-11-23
@Winner777

sudo apt-get install fbterm
fbterm
export TERM=fbterm

And vim is just beautiful now.

V
Valentine, 2013-11-23
@vvpoloskin

env | grep TERM do in SSH, see which terminal. It is there, for example, xterm-256color.
On the device itself, export TERM=xterm-256color.

I
iley, 2013-11-23
@iley

If I understand correctly, you are running Vim in the system console, not in a terminal emulator on X11.
In this case, there is a detailed discussion of the issue on linux.org.ru: http://www.linux.org.ru/forum/general/9259800
They recommend using kmscon .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question