What's a good text editor to use with C
steve
steve at securitworld.com
Fri Apr 30 05:00:35 PDT 2004
This is from a post I made a few years back I hope you find it useful ;)
(slightly updated for 3.4) ;)
This is a quick tutorial on setting up a colour / color (bloody Americans)
terminal on OpenBSD for use with VIM (Enhanced Vi with colour and other
things)
Install the ports tree by doing: (note please change openbsd.org to your
closest mirror)
cd /usr && ftp ftp://ftp.openbsd.org/pub/OpenBSD/3.4/ports.tar.gz && \
tar -zxvf ports.tar.gz && rm -rf ports.tar.gz
Install vim with no x11 support:
cd /usr/ports/editors/vim && env FLAVOR="no_x11" make all install
To get colour working in vim u need to create a .vimrc file in your home
directory:
echo "syntax on" > ~/.vimrc && echo "set vb" >> ~/.vimrc
Next you need to change your terminal type to xterm-color by doing either:
export TERM=xterm-color (this changes to your terminal will be lost when you
exit) or editing
~/.profile (so settings are not lost) and adding/changing the TERM=xxxx line
to TERM=xterm-color
one final change, this time to /etc/profile adding the following:
alias vi='/usr/local/bin/vim'
logout and log back in and try editing you favourite bit of source code and
look at the colours ;)
If you want colorls install it from the ports tree and edit /etc/profile
adding
alias ll='/usr/local/bin/colorls -FlaG'
alias ls='/usr/local/bin/colorls -GF'
Hope that helps
Cheers
Steve Jones
Network Administrator
Securit World LTD
W: www.securitworld.com
E: steve at securitworld.com
-----Original Message-----
From: openbsd-newbies-bounces at sfobug.org
[mailto:openbsd-newbies-bounces at sfobug.org] On Behalf Of Craig Hammond
Sent: 30 April 2004 09:27
To: openbsd-newbies at sfobug.org
Subject: What's a good text editor to use with C
Hi,
What are peoples preference for text editors when programming in C, where
the editors colour the various parts of C differently and auto indents.
The editors I have used on obsd are VI (which doesn't seem to do it) and I
recently found out about xedit.
xedit does an ok job of colouring the various parts in C and auto indenting,
but it misses the mark just enough that it is annoying to use.
I heard the emacs does what I want, but I've also heard it's a bloated pig.
Some of my hardware is a little old and slow, some lightweight software is
good.
Thanks for any suggestions,
Craig.
_______________________________________________
openbsd-newbies mailing list
openbsd-newbies at sfobug.org
http://mailman.theapt.org/listinfo/openbsd-newbies
More information about the Openbsd-newbies
mailing list