Results 1 to 8 of 8
Hi,
I am very new to linux. I am developing a c++ project in linux environment. I want to use some nice editor for c++ which highlights the syntax etc. ...
- 02-10-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 29
C++ and VIM editor in linux
Hi,
I am very new to linux. I am developing a c++ project in linux environment. I want to use some nice editor for c++ which highlights the syntax etc. I tried VIM but it doesn't color/highlight the syntax. Is there some special command I need to give to make it highlight the syantax?
- 02-10-2007 #2'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
--Abraham Lincoln
- 02-10-2007 #3Yep. Type
Originally Posted by balli You can also put it in ~/.vimrc, and syntax highlighting will be on by default from now on. I also suggestCode::syntax on
to show the lines before your code which makes debugging a lot easier.Code:set number
- 02-10-2007 #4
vi has syntax highlighting, as does Emacs. If you're looking for a more normally-styled editor, you can try kate (KDE) or gedit (Gnome), both of which are also intended for development use.
DISTRO=Arch
Registered Linux User #388732
- 02-10-2007 #5Just Joined!
- Join Date
- Feb 2007
- Posts
- 29
Thanks a lot for ur replies.
tech_man: I am using linux from putty so I dont know how I can replace the file.
Fatalexception: I opened the "vim" editor and typed the command ":syntax on" after hitting the ESC key, but it gave me an error "Sorry, the command is not available in this version"
Thanks for the "set number" command. That is helpful.
Cabhan: I am using putty so can't use xwindows stuff.
Thanks for ur replies though.
Also, I am tyring to use mandrak one CD on my laptop now (cuz I dont wanna work on PUTTY). Mandrake doesn't have g++ compiler in it. Can anybdy help me with that....like where to get it? do i have to pay for it? and ofcourse how to install it?
Thanks a lot guys.
- 02-10-2007 #6
g++ is totally free. Did you mean Mandrake 1 or Mandriva One?
'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
--Abraham Lincoln
- 02-10-2007 #7Just Joined!
- Join Date
- Feb 2007
- Posts
- 29
I m using mandriva one (i.e. its a CD which we can insert in CD-ROM and it runs from the CD-ROM without installing everything to system).
http://www.mandriva.com/en/download/mandrivaone
Hope that helps.
- 02-10-2007 #8
Here you go.
'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
--Abraham Lincoln


Reply With Quote