LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2013, 03:05 PM   #1
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,836

Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
Ubuntu 12.04, Vim in terminal not using 256 colors


Im not a newbie, but i feel this is a newbie question, and techinically i am new to ubuntu.

Brand new vanilla 12.04 server install
Putty set up to utilize 256 color mode

as root on server:

Code:
export TERM=xterm-256color
mkdir -p .vim/colors
cd .vim/colors
wget https://raw.github.com/garybernhardt/dotfiles/master/.vim/colors/grb256.vim
cd ~
echo "set t_Co=256" >> .vim/.vimrc
echo "colorscheme grb256" >> .vim/.vimrc
All looks correct to me. However, instead of getting this: http://www.vimninjas.com/images/posts/10vim/grb256.png
i get this unbearable site: http://img42.com/UHEDk

Can anyone point out the proper steps to set up ubuntu 12.04, vim to use 256 colors in a terminal emulator?

Last edited by szboardstretcher; 09-09-2013 at 03:07 PM.
 
Old 09-10-2013, 05:50 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
I can suggest a couple of things to do:

1) put this
Code:
export TERM=xterm-256color
in your .bashrc. Then you don't need to issue the command every time you open a terminal. If you only work on the server as root, you only need in the the root users .bashrc.

2) in your .vimrc, add
Code:
syntax on
. I don't know if it needs to be in the .vimrc before the colorscheme line.
 
1 members found this post helpful.
Old 09-14-2013, 07:45 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,836

Original Poster
Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
thanks for the input.

i've unfortunately already done those things and no dice.

However, as a work around i have done this.

Use arch linux. set up everything mentioned above, which works.
mount the remote filesystem with sshfs.
edit using vim, with my colorscheme intact.

Honorable mention: look into emmet for vim. it makes web coding so much faster.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Start tmux on Login - with 256 colors Jean-Luc Besson Linux - Newbie 1 02-06-2013 12:54 AM
must be configured to display at least 256 colors arun_sam Linux - Newbie 1 07-19-2012 06:34 AM
How to configure Xterm colors if my xterm can support 256 colors n179911 Linux - Software 4 07-06-2009 03:28 AM
Only 256 colors on Slackware 9.1 Quartzophobia Linux - Laptop and Netbook 1 01-27-2004 05:26 PM
New display won't work above 256 colors wghoward Linux - Software 3 08-05-2003 09:21 PM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration