Luis Pedro wrote:
Hi,

I'm using different versions 6.x of Vim in my computers and I have this
problem when editing python and html files.  This is in Linux.

Many times when I want to correct something I'm typing I use the
backspace key.  That line is indented after pressing that key, which
annoys me a lot.

This also happens sometimes when I hit <ENTER> at the end of a line.

What should I do to prevent this behavior?

Luis P. Mendes





The behaviour of <Enter> at the end of a line is governed by several settings, see

        :help 'autointent'
        :help 'smartindent'
        :help 'indentexpr'
        :help :filetype-indent-on
        :help :filetype-indent-off
        :help :filetype-overview

To force <Enter> in Insert mode to always return to column 1 without indenting, use

        :set noautoindent nosmartindent indentexpr=
        :filetype indent off

This applies to all platforms, and hasn't changed since earlier than version 6.

To be able to backspace over a line break, see ":help 'backspace'".


Best regards,
Tony.

Reply via email to