Thread: Gvim stopped auto indenting

  1. #1
    Registered User
    Join Date
    Sep 2007

    Gvim stopped auto indenting

    All of a sudden it will not auto indent , and I didn't make any changes to settings . ANyone know how to fix this ? ( I am using the windows version 7.1 )

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    What about a completely new source file, in another directory.
    Is that similarly affected?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    For example, the command set autoindent, you can type :set autoindent or :set ai. To unset it, you can type :set noautoindent or :set noai.

    You could put that into your configuration file.

    I don't know why it would stop in the first place, though. Did you start using a different filename extension? Perhaps it only autoindents for .c files and not .txt files or something.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. auto data type
    By nanaspire in forum C Programming
    Replies: 6
    Last Post: 09-30-2008, 12:16 PM
  2. Are auto pointers any good?
    By cunnus88 in forum C++ Programming
    Replies: 3
    Last Post: 04-15-2007, 11:07 AM
  3. Code: An auto expanding array (or how to use gets() safely).
    By anonytmouse in forum Windows Programming
    Replies: 0
    Last Post: 08-10-2004, 12:13 AM
  4. gVim 6.2 Backup Files
    By Padawan in forum Tech Board
    Replies: 2
    Last Post: 04-06-2004, 06:05 PM
  5. Disabling "Ready" & Other Auto Status Bar Updates :: MFC
    By kuphryn in forum C++ Programming
    Replies: 1
    Last Post: 04-03-2002, 08:51 PM