Thread: vim

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

    vim

    Hi

    How can I resize tabulations in vim?

  2. #2
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    vim has excellent on-line help, which you can access by typing ":help" in command mode. I tried a search for 'tabulation' but didn't find anything; perhaps the author of vim has another name for it.
    Jason Deckard

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    In your vimrc file, "set tabstop=n" where n is the width you want.

    Or while editing, ":set tabstop=n"
    Last edited by linuxgeek; 04-19-2002 at 08:07 AM.
    I doubt, therefore I might not be

  4. #4
    Registered User PutoAmo's Avatar
    Join Date
    Mar 2002
    Posts
    72
    Thank you, guys. Actually what I meant was indentation (not tab). I would like smaller indentations when writing code.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    Ahh, my mistake. The setting you want is "shiftwidth". Same syntax.
    I doubt, therefore I might not be

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, 06:43 PM
  2. quick vim use question
    By MK27 in forum C Programming
    Replies: 4
    Last Post: 02-20-2009, 11:59 PM
  3. vim question - linux
    By Stonehambey in forum Tech Board
    Replies: 9
    Last Post: 10-18-2008, 04:05 AM
  4. vim smart-indenting for filetypes other than C
    By s_siouris in forum Tech Board
    Replies: 10
    Last Post: 11-25-2004, 11:05 AM
  5. off VIM beep..
    By hermit in forum Tech Board
    Replies: 3
    Last Post: 06-17-2003, 10:39 PM