Skip to primary content

42

Web notebook about thoughts and discoveries in DevOps, SRE, Software Engineering….

42

Main menu

  • Home
  • About
  • contact
  • Links

Post navigation

← Previous Next →

How to set TAB to 2 spaces in vim

Posted on 10 December 2012 by kosmas
Email this to someone
email
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Problem

You would like to set up your vim editor to use 2 spaces for the tab character.

Solution

Add the following to your ~/.vimrc file:

1
set ts=2

This entry was posted in linux and tagged linux, tab, vim by kosmas. Bookmark the permalink.
Proudly powered by WordPress