Help - Search - Members - Calendar
Full Version: Vi Help
Linuxhelp > Support > Technical Support
echeng66
I have mandrake 9.1 and the vi is actually vim. It is way to smart for me. I tried but unsuccessful in disabling autoindentation in C file. Since every often I cut and paste c code from another file, it autoindent every line.

How do I diable this? I copyt the example vimrc file to my home directory as .vimrc

I got rid of the line
set autoindent

I got rid of the line
filetype plugin indent on

It didn't help. Any ideas? Thanks.
Jay-Jay
Hiya

Just to say that i find vim difficult to move around in and use on a day to day basis. I suggest if your having trouble using vim then use "nano -w" I'm tying to learn C so, but feel i'm quite a bit behind you. Have a look around nano and see what you think, and let me know. I'd be interested in hearing what you think.

Jay-Jay
echeng66
I like vi. Maybe is not that I like it but I have be using it for 18 years. I guess If I can't figure out how to fix that, I will need to learn emacs. Thanks for suggesting nano.
echeng66
Sorry for the posting. I figured out how to do it. I need to explictly say
set noautoindent
and
set nocindent
Jay-Jay
That's great. Thanks for letting us know how you fixed it . . . Sorry that I couldn't be of much help.

Jay-Jay
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.