How do I convert all the tab characters in a file to space

characters? You can use the “:retab” command to update all the tab characters in the current file with the current setting of ‘expandtab’ and ‘tabstop’. For example, to convert all the tabs to white spaces, use

    :set expandtab

    :retab

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind