X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <17393e3e0807110812h24f46732kddd9cda58130660c@mail.gmail.com>
Date: Fri, 11 Jul 2008 11:12:55 -0400
From: "Matt Wozniski" <godlygeek@gmail.com>
To: cygwin@cygwin.com
Subject: Re: un-indenting doesn't work with vim
In-Reply-To: <20080711130135.GO24644@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <f68d89470807110553k2bc71311p799af2cc02e99af8@mail.gmail.com> 	 <20080711130135.GO24644@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, Jul 11, 2008 at 9:01 AM, Corinna Vinschen wrote:
> On Jul 11 14:53, Robert Latest wrote:
>> Hello list,
>>
>> When writing stuff in "vim", I can't unindent without first havin to
>> leave the Insert mode. In other words, I type a line, hit "enter",
>> then "tab", and do the next line. When I hit enter again, the cursor
>> goes onto the first position of the indented line, which is what I
>> want. But if at some point I wish to un-indent by pressing backspace
>> at the beginning of a new line, nothing happens. I first have to exit
>> Insert mode, then use "x" to delete one tab, and then go back into
>> insert mode.
>>
>> This is very annoying. On my Linux box at home, vim behaves as expected.
>
> That's not standard behaviour in vim, rather a special setting on your
> machine.  Either in your own .vimrc or in the system-wise vim config files.
>
> The standard way to unindent is to type Ctrl-D.
>
>
> Corinna

Exactly so.  The vim setting the OP is looking for is ":set
backspace=indent,eol,start" to allow backspacing, respectively, over
automatically added indenting, the beginning of a line (deleting the
EOL of the previous line), and the place where you started insert
mode.  Throw that in your .vimrc and things should work the way you
want.

~Matt

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

