Re: to enable C or C++ syntax highlighting in Vi Editor
- From: "Madhav" <madhav.kelkar@xxxxxxxxx>
- Date: 29 Dec 2005 02:30:03 -0800
SaranJothy wrote:
> i have logged in as root and hence root directory is my
> homedir.
> But .vimrc is not there. .
>
> i have tried ls -a command in that directory.
>
The .vimrc file is a configuration file for Vi editor. If it does not
exist, you have to create it. This will enable the syntax everytime you
open VI.
Otherwise, you can do the following after you have opened the VI
editor:
1. press <Esc> enter into command mode.
2. type the following:
:set syntax=on
Exactly as i have. This will enable syntax for this session of VI.
--
Madhav.
.
- References:
- to enable C or C++ syntax highlighting in Vi Editor
- From: SaranJothy
- Re: to enable C or C++ syntax highlighting in Vi Editor
- From: Madhav
- Re: to enable C or C++ syntax highlighting in Vi Editor
- From: SaranJothy
- to enable C or C++ syntax highlighting in Vi Editor
- Prev by Date: Re: to enable C or C++ syntax highlighting in Vi Editor
- Next by Date: Re: process switch...
- Previous by thread: Re: to enable C or C++ syntax highlighting in Vi Editor
- Next by thread: Re: to enable C or C++ syntax highlighting in Vi Editor
- Index(es):
Relevant Pages
|