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

Alan Gauld alan.gauld at yahoo.co.uk
Sun Apr 26 19:25:58 EDT 2020


On 26/04/2020 22:28, Alex Kleider wrote:
> 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

Yes, but those are only read by vim.
The readline library/bash shell only provides a vi keystroke
emulation, it doesn't read the vimrc file. (At least I'm pretty
sure it doesn't!)

There may be equivalent settings you can use for readline
(in the bashrc file maybe?)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list