On 2009-05-27 14:08 (+0530), Prasad Joshi wrote:
> Check out all the aliases defined on your system (alias command).
Or use Bash shell's "type" command in an interactive shell:
$ type vi
vi is /usr/bin/vi
$ type ls
ls is aliased to `ls --color=auto'
> pra...@prasad-laptop:~/bz
Hi,
Probably, there is an alias defined in your shell. So when invoke vi from
the shell it could be invoking vim.
And when you invoke the vi from the system() API it could be invoking vi and
not vim.
Check out all the aliases defined on your system (alias command).
The other thing that might hap
Hi,
Thanks a lot. An alias has been set to vim(ie alias -x vi=/usr/local/
bin/vim).
Now everything works fine. I just need to call vim instead of vi
from my C application.
On May 27, 1:12 pm, pansz wrote:
> mthread 写道:
>
> > Hi,
> > I am trying to run the vi editor from a C application
mthread 写道:
> Hi,
> I am trying to run the vi editor from a C application using
> 'system' command(ie isystem("vi main.cpp"). The issue is, most of the
> keys are not working as it is supposed to be. For example, the arrow
> keys and delete key are not working. Event the color scheme associate
Hi,
I am trying to run the vi editor from a C application using
'system' command(ie isystem("vi main.cpp"). The issue is, most of the
keys are not working as it is supposed to be. For example, the arrow
keys and delete key are not working. Event the color scheme associated
with file opened(ie