PDA

View Full Version : vim



PutoAmo
04-19-2002, 02:08 AM
Hi

How can I resize tabulations in vim?

Deckard
04-19-2002, 05:30 AM
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.

linuxgeek
04-19-2002, 08:03 AM
In your vimrc file, "set tabstop=n" where n is the width you want.

Or while editing, ":set tabstop=n"

PutoAmo
04-19-2002, 04:23 PM
Thank you, guys. Actually what I meant was indentation (not tab). I would like smaller indentations when writing code.

linuxgeek
04-19-2002, 07:27 PM
Ahh, my mistake. The setting you want is "shiftwidth". Same syntax.