Skip to contentSkip to conversation

setting Tab's in vi

DISCUSSION [email protected] 2 participants 2 messages Feb 20, 2003

lore
Share & tools
lore
#0 lore raw

Hi, Listmembers!

This is about configuring the vi editor.

I'd like to change the default TabStop (currently 8 whitespaces) to 4 whitespaces (which will
better suit my needs (at least, I think so)). I found out:

	:ret4

will do so for one vi-session but for reasons of convenience I'm looking for a permanent setting.

Any hints?

Thank you,
Matthias
Frankfurt am Main

ooh. B.T.W. don't want to be to inquisitive but... how to do the same with emacs? tnx.

Signature · 8 lines
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw

Hi,

I don´t know how you can do that with emacs, since I only use vi...

You can add the following lines to /etc/vimrc or /.vimrc:

set tabstop=4

If you don't want vi to expand your tabs into spaces, you can also add this:

set noexpandtab

I hope this works!

Best regards,

Rodolpho Eckhardt
São Paulo - Brazil

Quoted 30 lines

Hi, Listmembers!

This is about configuring the vi editor.

I'd like to change the default TabStop (currently 8 whitespaces) to 4 whitespaces (which will
better suit my needs (at least, I think so)). I found out:

	:ret4

will do so for one vi-session but for reasons of convenience I'm looking for a permanent setting.

Any hints?

Thank you,
Matthias
Frankfurt am Main

ooh. B.T.W. don't want to be to inquisitive but... how to do the same with emacs? tnx.

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs

Signature · 10 lines
Rodolpho H. O. Eckhardt
[email protected]
Cel: 11 9126-9107


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs