Skip to content
Unknown's avatar

C++ on a Friday

Tag: indentation

Quick Tip: Ensuring proper indentation in vim


Quick tip: You can add vim configuration options in source code comments, and vim will load them when it loads the file. For instance, I tend to put
// vim: et ts=4
at the top of my source files, to ensure that tabs are always expanded to four spaces.

Anders Schau Knatten Programming 3 Comments March 19, 2010October 20, 2010 1 Minute

Feeds

  • RSS - Posts
  • RSS - Comments

Recent Comments

Anders Schau Knatten's avatarAnders Schau Knatten on Microsoft C++ versions ex…
Unknown's avatarAnonymous on A prvalue is not a tempor…
A prvalue is not a t… on A prvalue is not a tempor…
A prvalue is not a t… on lvalues, rvalues, glvalues, pr…
A prvalue is not a t… on A prvalue is not a tempor…

Top Posts & Pages

  • Microsoft C++ versions explained
  • What I Have Against Precompiled Headers
  • How to become a conference speaker
  • Avoiding Heap Allocations With Static Thread Locals
  • The difference between no move constructor and a deleted move constructor
  • lvalues, rvalues, glvalues, prvalues, xvalues, help!
  • Prefer Using References With Range Based For Loops
  • Book Review: Effective C++ by Scott Meyers
  • A taxonomy of C++ types
  • Visiting CppCast

Archives

  • October 2025
  • April 2025
  • March 2025
  • November 2024
  • September 2024
  • June 2024
  • March 2023
  • January 2023
  • August 2022
  • October 2021
  • May 2019
  • October 2018
  • September 2018
  • July 2018
  • April 2018
  • March 2018
  • July 2016
  • June 2014
  • May 2014
  • December 2013
  • November 2013
  • October 2013
  • April 2013
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • November 2011
  • October 2011
  • August 2011
  • April 2011
  • March 2011
  • January 2011
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
by Anders Schau Knatten

Recent Comments

Anders Schau Knatten's avatarAnders Schau Knatten on Microsoft C++ versions ex…
Unknown's avatarAnonymous on A prvalue is not a tempor…
A prvalue is not a t… on A prvalue is not a tempor…
A prvalue is not a t… on lvalues, rvalues, glvalues, pr…
A prvalue is not a t… on A prvalue is not a tempor…

Top Posts

  • Microsoft C++ versions explained
  • What I Have Against Precompiled Headers
  • How to become a conference speaker
  • Avoiding Heap Allocations With Static Thread Locals
  • The difference between no move constructor and a deleted move constructor
  • lvalues, rvalues, glvalues, prvalues, xvalues, help!
  • Prefer Using References With Range Based For Loops
  • Book Review: Effective C++ by Scott Meyers
  • A taxonomy of C++ types
  • Visiting CppCast

Archive

  • October 2025 (1)
  • April 2025 (1)
  • March 2025 (1)
  • November 2024 (1)
  • September 2024 (2)
  • June 2024 (2)
  • March 2023 (1)
  • January 2023 (1)
  • August 2022 (1)
  • October 2021 (1)
  • May 2019 (1)
  • October 2018 (3)
  • September 2018 (4)
  • July 2018 (1)
  • April 2018 (1)
  • March 2018 (2)
  • July 2016 (1)
  • June 2014 (1)
  • May 2014 (1)
  • December 2013 (1)
  • November 2013 (1)
  • October 2013 (1)
  • April 2013 (1)
  • November 2012 (3)
  • October 2012 (1)
  • September 2012 (5)
  • August 2012 (1)
  • June 2012 (1)
  • May 2012 (2)
  • April 2012 (1)
  • March 2012 (1)
  • November 2011 (2)
  • October 2011 (1)
  • August 2011 (4)
  • April 2011 (1)
  • March 2011 (1)
  • January 2011 (1)
  • November 2010 (1)
  • October 2010 (5)
  • September 2010 (3)
  • August 2010 (4)
  • July 2010 (4)
  • June 2010 (4)
  • May 2010 (5)
  • April 2010 (6)
  • March 2010 (5)

Blog at WordPress.com.
  • Subscribe Subscribed
    C++ on a Friday
    Join 90 other subscribers

    Have a WordPress.com account? Log in now.

  • C++ on a Friday
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar