question about VI

Jaime Davila jdavila at
Tue Dec 19 16:49:30 UTC 2006

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?




Jaime J. Davila
Associate Professor of Computer Science
Hampshire College
School of Cognitive Science
jdavila at hampshire dot edu

More information about the ubuntu-users mailing list