Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emacs Vs. Vi for C++ Programming? 1

Status
Not open for further replies.

qb828

Programmer
Sep 27, 2000
98
US
hello! how are you?
can you tell me which is better for c++ programming, Emacs or Vi?
why people use one over other?
and why does your C++ source file(.cpp or .h files) mess up when you transfer from MS-visual C++ to linux system?
what causes that?
and can you avoid them if possible?
using MS visual C++ is a lot convenient. where do people write their C++ codes in the real world?
thanks a lot for your responses in advance......

kooshi
 
Emacs, it's a little bit tough to learn, but will make you so much more productive, you won't believe it. Get the orielly book "Learning GNU Emacs", and you'll never look back! This is the best real world editor there is, hands down.

As far as why your files don't look right when you switch OS, it's pretty simple. When you press enter under windows, it inserts a \c \m, which is a carrige return and line feed, but unix only uses a \c, so when it see's a \m too, it screws up...

To fix this, you can ftp the files as ASCII, which may help, or you can write a perl/shell/emacs script to remove them or add them for you.

Mike B.



Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top