From: Gary Watson Date: 2006-03-18T12:16:00+09:00 Subject: Re: Vim autoindenting broken? Jeff Coleman wrote: > Does anyone else find gVim 6.4 a bit unstable on Windows XP? It's > become my editor of choice since learning it recently but I'm noticing > some peculiar behavior. Last night I spontaneously lost the "Edit in > vim" context-menu option, at the same time as its autoindenting feature > changed on its own. I use vim 6.4 all day at work and haven't noticed anything strange, the edit in vim context menu is always there for me. > > So I can confirm what's going on, what options control the > autoindenting? > If you look in your vim directory under program files, (in the vim64 folder I belive), you'll see a directory entitled indent, (or something like that). There should be a file in there like ruby.vim. I'm pretty sure this is where the indentation for ruby is controlled from. > The behavior I want is for it to indent two spaces after I type > something like > > x = Fred.new( > indent like this. > > and hit Enter. > I do this by inserting the lines set shiftwidth=2 set tabstop=2 set softtabstop=2 set expandtab in the aforementioned ruby.vim in the indent directory > What I'm seeing is that it indents to the point of the open parenthesis. > > x = Fred.new( > indent like this. > > I'm not sure what options govern this or why it changed, because it was > behaving properly yesterday and I haven't altered the _vimrc options. > > Thanks, > Jeff Hope this helps, Gary -- Posted via http://www.ruby-forum.com/.