Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vim + auto indent

Status
Not open for further replies.

MrTom

Programmer
Joined
Mar 13, 2001
Messages
383
Location
GB
vim is really trying my patience!!

by default it seems as tho auto-indent is on and it's really annoying. i tried putting 'set noai' in the global vimrc and in ~/.vimrc but it keeps on auto-indenting. all my ~/.vimrc has is the noai so i don't see why it doesn't work. have i missed another option?

please help me! :)
 
Don't know loads about this but maybe you need to write

:set noai

i.e. the colon tells vim it is a command.
 
i had a line in my vimrc....

filetype plugin indent on

and that seemed to overwrite my ~/vimrc and even entering the command like u suggsted!

sorry for postin in the wrong forum :)
 
well in my .vimrc I have the line;

:set tabstop=4 #Obviously to set tabstops to 4 spaces

and it works every time. In other words I have written it exactly as I would on the vim command line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top