LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2004, 03:22 AM   #1
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Rep: Reputation: 15
green types & black baclground text editor


hi there:

i am looking for text editors that would display green types and black background properly with snytax highlight. i have tried a couple so far but none of them seems to work perfectly. i tried:

1. Gedit - the cursor's color remains black and can't be changed when the background is set to black.

2. Nedit - the text foreground's color can only be changed if the syntax highlight is turned off.

3. emacs - ummmm, i have not yet managed change any color yet

4. kate - instead of a cursor, it uses highlight for the current line, i don't really like that.

any ideas?

many thanks

CHUN
 
Old 06-17-2004, 05:31 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You could use vim/gvim/kvim with the matrix theme or create your own (it's not that hard, you can download a theme template). Here's a screenshot of gvim compiled with GTK2 and editing a bash file with the matrix theme and syntax highlighting (which is a bit dull in this particular theme).


Håkan

Last edited by hw-tph; 06-17-2004 at 05:32 AM.
 
Old 06-17-2004, 05:49 AM   #3
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Kate can be configured so that the current line is the same colour as the normal background; that way it isn't highlighted. I don't have the latest Kate, but in my version the colour of the cursor is the same as the colour of the text that it's on at any time. All the other colours are configurable. (Settings -> Configure Kate...)

Regards
Simon
 
Old 06-17-2004, 06:27 AM   #4
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
thanks for your reply, will look into Kate a bit more and am having trouble locating the .rpm of vim. which is the one for gvim?

CHUN
 
Old 06-17-2004, 08:34 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If you're using Fedora Core I think it's called vim-X11 (you'll probably need vim-common too).

Håkan
 
Old 06-17-2004, 09:33 AM   #6
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
hi there:

thanks for your reply.

i got kate configured to what i need now.

i tried to use vim by typing 'vim' in the terminal and it loaded in the terminal window and i can't seem to type anything on it. is this normal? maybe i should take a look at the manual or something

cheers

CHUN
 
Old 06-17-2004, 04:18 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Try typing gvim to get the graphical variant. vim is not like Notepad or any other DOS/Windows editor, it's based on how vi behaved back in the day, but with zillions of improvements. Type vimtutor at the prompt for the built-in vim 101.


Håkan
 
Old 06-17-2004, 04:31 PM   #8
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
hi there:

ya, i tried 'gvim' and got:

bash: gvim: command not found

and that was where i got a bit confused.....

cheers

CHUN
 
Old 06-18-2004, 08:23 AM   #9
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
If you installed the previously mentioned vim-X11 package and typing gvim doesn't work, then gvim is probably not in the PATH environment variable. You can check it by typing set | grep PATH. Try typing /usr/X11R6/bin/gvim as it might be installed there. If it's success, you need to put PATH=$PATH:/usr/X11R6/bin in a shell configuration file or start-up script, like ~/.bashrc for example. If gvim is somewhere else, you can find it by typing whereis gvim.

On a side note: there's also a lightweight version of kate, called kwrite.

Regards
Simon
 
Old 06-18-2004, 09:09 AM   #10
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
hi there:

great!! i now also got gvim to work and has green over black color scheme. thanks. however, how would i save the color scheme change? i have tried to renamed the one i like to default.vim, but when gvim loads up, its not it.

thanks again

CHUN
 
Old 06-18-2004, 09:50 AM   #11
chunlee
Member
 
Registered: Jun 2004
Location: london
Distribution: gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
ok, i got it now. use vimrc!

thanks

CHUN
 
  


Reply



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
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
Konqueror's "text view" option makes text green. newtwolinux SUSE / openSUSE 2 08-26-2005 06:45 AM
gui, non-kde, non-gnome text editor & file manager jaakkop Linux - Software 2 07-25-2005 11:09 PM
ut2004 display problem- green instead of black. ksgill Linux - Games 0 10-18-2004 11:28 PM
Green Text Under Konqueror Question JC404 Linux - Newbie 3 08-10-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration