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 06-30-2017, 12:48 AM   #1
vectrum
Member
 
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
How to send stderr or std::cerr output in RED colour in VIM


I am using vim in lubuntu 16x with vim 7.4.
I want all my c/c++ error output should be displayed in red colour as eclipse does in it's console.
Could you please tell me how to do it?

I haven't got any colourscheme installed. It is default.
 
Old 06-30-2017, 03:08 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,630

Rep: Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612
I do not really understand, what kind of error is it? compile time problems or runtime error messages?
 
1 members found this post helpful.
Old 06-30-2017, 04:36 AM   #3
vectrum
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
My question was too short.

Oops! My question was too short.
Well, I mean run-time error message in red colour, say, when a file opening code fails to open a file, it sends perror() output and stderr output in red.
Thanks for helping me to be more methodical.
 
Old 06-30-2017, 04:55 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,630

Rep: Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612Reputation: 5612
probably this helps: https://stackoverflow.com/questions/...editing-in-vim
but probably you need to check the plugins of vim (if you could find something suitable)
 
  


Reply

Tags
linux, vim


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
Perl: suppress std output and std error say_hi_ravi Programming 1 11-01-2012 06:22 AM
editor - vim (vi) - removing colour capability. stf92 Linux - Software 6 09-01-2009 11:41 PM
send stderr to a file and also to stdout pranavchoudhary Linux - Newbie 7 08-25-2008 01:57 AM
weird colour behind text in vim matthewhardwick Linux - Software 2 09-20-2007 08:05 PM
Send string to std output without interpreting (script) ta0kira Programming 6 06-29-2005 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 AM.

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
Open Source Consulting | Domain Registration