Gvim stopped auto indenting

This is a discussion on Gvim stopped auto indenting within the A Brief History of Cprogramming.com forums, part of the Community Boards category; All of a sudden it will not auto indent , and I didn't make any changes to settings . ANyone ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    104

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,542
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    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.
    From http://www.eng.hawaii.edu/Tutor/vi.html#settings

    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.
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    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, 07:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21