Unix Programming - Configuring Vi/bash for C/C++ Prog. on solaris

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2006 > Configuring Vi/bash for C/C++ Prog. on solaris





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Configuring Vi/bash for C/C++ Prog. on solaris
raxitsheth2000@yahoo.co.in

2006-10-16, 1:27 pm

Sorry for this basic question, but i am stuckup with this for many
days.

I am using solaris 5.8,5.10 and having default vi/bash
i want to configure bash/vi for c/c++ prog.,

i have used linux-bash-vim, on bash tab is for auto completion and ^n
(in vi) for autocompletion and m having c-syntax colored, but Not on
Solaris OS.

can anyone suggest decent bash/vi configuration (colored syntax/auto
completion is must.)


thanks
raxit

Logan Shaw

2006-10-18, 1:36 am

raxitsheth2000@yahoo.co.in wrote:
> Sorry for this basic question, but i am stuckup with this for many
> days.
>
> I am using solaris 5.8,5.10 and having default vi/bash
> i want to configure bash/vi for c/c++ prog.,
>
> i have used linux-bash-vim, on bash tab is for auto completion and ^n
> (in vi) for autocompletion and m having c-syntax colored, but Not on
> Solaris OS.
>
> can anyone suggest decent bash/vi configuration (colored syntax/auto
> completion is must.)


No, it's not a must. People develop C and C++ code without it all the
time.

Nevertheless, if you would like bash to have tab completion on Solaris,
all you must do is run bash. It is configured that way by default.

If you would like vi to have syntax highlighting on Solaris, you are
out of luck. vi has never supported syntax highlighting and probably
never will, not on Solaris and not on any other operating system either.
vim, however, does support it, and you can download vim from
http://www.vim.org/ if you'd like that feature[1]. Since you are
developing C and C++ code, it shouldn't be too hard to build vim
from source, although there are probably pre-built binary packages
available as well.

- Logan

[1] Well, at least you can normally download vim from there. Right
now the site seems to be down for some reason.
jmcgill

2006-10-18, 1:29 pm

raxitsheth2000@yahoo.co.in wrote:

> can anyone suggest decent bash/vi configuration (colored syntax/auto
> completion is must.)


Well, you want to make sure bash is built with GNU readline support.
That is what actually drives bash's command history and commandline
editing features.

And as for vim, you want vim to be built with ncurses, and you want to
make sure your terminal is defined in the terminfo database.

I always build a bunch of my own stuff whenever upping a Sun host,
because I tend to disagree with some of the decisions made by the folks
who build the sunfreeware packages.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com