I installed colorscheme "jellybeans" for Vim. Why does the colors look differently when I run Vim with and without sudo?
Example on the screen below - the left one is without sudo, the right is with sudo. The one with sudo is working properly - how can I make Vim to have the same colors without using sudo?
I use
Linux Mint 17.2 (x64)
gnome-terminal 3.6.2
bash 4.3.11
tmux 1.8
Vim 7.4
The value of my $TERM variable is:
$TERM=screen-256color
And the result is the same with sudo $SHELL -c 'echo $TERM'
Here is my vimrc file.
EDIT - SOLUTION:
Colorscheme file was lacking read permission for "others". Fixed with:
sudo chmod +r /usr/share/vim/vim74/colors/jellybeans.vim

sudo echo $TERMwill always print the same value asecho $TERM- the variable is expanded beforesudocomes into play. What doessudo $SHELL -c 'echo $TERM'say? How did you install the colour scene? And you should usesudoeditinstead ofsudo vim. – muru Aug 08 '15 at 21:36sudo $SHELL -c 'echo $TERM'gives me the same value of "screen-256color". I installed the colorscheme by copyingjellybeans.vimfile into the folder/usr/share/vim/vim74/colors. Thank you forsudoedittip. – Kossak Aug 09 '15 at 09:30sudo vimloads my local .vimrc because i deleted root's .vimrc and all my plugins/keys work as the should. I triedsource /home/kossak/.vimrcbut it doesn't change anything. – Kossak Aug 09 '15 at 09:53