[Tutor] OT (probably): How to change default tab key value to 4 spaces in GNOME Terminal?

Alex Kleider akleider at sonic.net
Sun Apr 26 17:28:15 EDT 2020


On 2020-04-26 12:36, boB Stepp wrote:
> In vi's insert mode C-t inserts a tab.  Now how do I get that to
> expand to 4 spaces without interfering with tab completion.  On to
> your next response!

What follows are the first few lines in my ~/.vimrc file.
They might help you get Vim to give you 4 spaces in response to the tab 
key at the beginning of a line.

set autoindent
set shiftwidth=4
set expandtab
set tabstop=4
set softtabstop=4
set textwidth=70


More information about the Tutor mailing list