LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2004, 04:30 PM   #1
Imek
Member
 
Registered: Dec 2003
Location: England
Distribution: Ubuntu
Posts: 71

Rep: Reputation: 15
Extremely stupid question about tab key (specifically in Vim)


Hi,

I've been messing around with Python, looked at some sources, and noticed that the indentations all seem to be with 4 spaces each, but when I press tab I get 8 spaces.. Why is this? Is there any way to set tab to 4 instead of 8, or otherwise find a way to get 4 instead of 8 without the tedium of pressing space 4 times?

Thanks,

- I
 
Old 03-08-2004, 06:11 PM   #2
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
The default tab width on almost any computer system/application is 8.

In vim, you can set it in /etc/vim/vimrc (global) or ~/.vimrc by editing/adding the line

set tabstop=4

(or whatever tab width you like)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a tab is 4 spaces width in vim? ICO SUSE / openSUSE 8 03-05-2013 11:24 AM
stupid newbie vim :q question towsonu2003 Slackware 7 09-22-2005 12:46 AM
Tab Key and arrow key zillah Solaris / OpenSolaris 12 05-26-2005 03:51 PM
Configuring (g)vim-tab with C++/Java Mega Man X Programming 2 01-28-2004 07:27 AM
Extremely Quick stupid question duaux Linux - Distributions 7 10-24-2002 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration