You are not logged in.

#1 2009-09-03 16:38:26

TomB17
Member
Registered: 2009-09-02
Posts: 102

[SOLVED] How can I turn off the annoying auto indent tabs in VIM?

I'm coding in Python and VIM is auto-tabbing each new line.  It's a real buzz kill.

When I hit enter at the left margine, even when there is nothing on the line above the cursor, it shoots out a tab and three spaces.  I've switched to nano but feel lost without VIM.  I've never seen this behavior before.  I've turned off all of the auto indentation options I can think of.

***** begin .vimrc *****

set noautoindent
set nosmartindent
set noindentexpr
set nocindent

***** end .vimrc *****


Thanks!


[UPDATE]

I wish I could delete this post.  ... anyway...  the solution was:

set indentexpr=''

Last edited by TomB17 (2009-09-03 16:41:07)

Offline

#2 2009-09-03 21:02:50

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: [SOLVED] How can I turn off the annoying auto indent tabs in VIM?

Unfortunately, I have to do a ":set indexexpr='' " each time I start VIM.  I've got it in the .vimrc but it seems to be ignored.

I'm used to Ubuntu and this feels really weird.  It's like profiles aren't processed.

I would appreciate it if somoeone would point me in the correct direction.

Last edited by TomB17 (2009-09-03 21:03:20)

Offline

#3 2009-09-04 00:28:06

BetterLeftUnsaid
Member
From: My Happy Place
Registered: 2007-11-04
Posts: 78

Re: [SOLVED] How can I turn off the annoying auto indent tabs in VIM?

I might be incorrect about this, but I think there's issues with /etc/vimrc conflicting with ~/.vimrc
You might want to try moving /etc/vimrc to /etc/vimrc.bak, or something similar.

Offline

#4 2009-09-04 00:48:57

jwcxz
Member
Registered: 2008-09-23
Posts: 239
Website

Re: [SOLVED] How can I turn off the annoying auto indent tabs in VIM?

Are you using ~/.virc or ~/.vimrc?  My system doesn't respect .vimrc, but it does load data from .virc.


-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers

Offline

Board footer

Powered by FluxBB