question about VI
Jaime Davila
jdavila at hampshire.edu
Thu Dec 21 14:59:45 UTC 2006
bob davis wrote:
> Jaime Davila wrote:
>> Sorry if this is slightly off-topic, but I've looked everywhere for an
>> answer, with no luck.
>>
>> I have set vi to auto indent. I'm having an issue with comments and
>> their indentation. Whenever vi sees that I type the # character, it
>> moves it to the leftmost column. I would like the comment to stay at
>> whatever level of indentation my code is at the time.
>>
>> Does anyone have a solution?
>>
>
> I have seen this before when writing perl scripts. But I cant seem to
> get the version I am using right now to do it.
> Try:
> :help comments
>
> and possibly
> :set comments=
> should turn off this automatic behavior.
>
>
Hi. Thanks for the reply. :set comments= did not change this behavior.
Strange thing is, it does it fine with the // comments in C++, but
treats # differently.
--
******************************************************
Jaime J. Davila
Associate Professor of Computer Science
Hampshire College
School of Cognitive Science
jdavila at hampshire dot edu
http://helios.hampshire.edu/jdavila
*******************************************************
More information about the ubuntu-users
mailing list