Vim tabs

This is a discussion on Vim tabs within the Linux Programming forums, part of the Platform Specific Boards category; Hello all. How could I edit my vim config file so that tabs (when c programming) take just 4 spaces?...

  1. #1
    Registered User PutoAmo's Avatar
    Join Date
    Mar 2002
    Posts
    72

    Vim tabs

    Hello all.

    How could I edit my vim config file so that tabs (when c programming) take just 4 spaces?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    Off hand, I'm not sure, but give this URL a shot.

    http://heather.cs.ucdavis.edu/~matloff/Vim/Doc.html

    My wager is that you'll find what you're looking for somewhere in there.

    starX
    www.axisoftime.com

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    46
    I dug this out of my .gvimrc, bet it's the same for .vimrc

    set softtabstop=4
    set shiftwidth=4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VIM: The (un)official thread
    By MK27 in forum Programming Book and Product Reviews
    Replies: 32
    Last Post: 04-20-2011, 07:43 PM
  2. vim question - linux
    By Stonehambey in forum Tech Board
    Replies: 9
    Last Post: 10-18-2008, 05:05 AM
  3. VIM editing ... more about those tabs!
    By hamsteroid in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 04-10-2007, 01:50 PM
  4. I need to use dialogs as tabs?
    By BenPage in forum C++ Programming
    Replies: 1
    Last Post: 08-03-2005, 09:59 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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