Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you're using <a href="http://www.vim.org/" rel="noreferrer">Vim</a>, see <a href="http://vimdoc.sourceforge.net/htmldoc/change.html#:retab" rel="noreferrer"><code>:h retab</code></a>.</p> <pre> *:ret* *:retab* :[range]ret[ab][!] [new_tabstop] Replace all sequences of white-space containing a &lt;Tab&gt; with new strings of white-space using the new tabstop value given. If you do not specify a new tabstop size or it is zero, Vim uses the current value of 'tabstop'. The current value of 'tabstop' is always used to compute the width of existing tabs. With !, Vim also replaces strings of only normal spaces with tabs where appropriate. With 'expandtab' on, Vim replaces all tabs with the appropriate number of spaces. This command sets 'tabstop' to the new value given, and if performed on the whole file, which is default, should not make any visible change. Careful: This command modifies any &lt;Tab&gt; characters inside of strings in a C program. Use "\t" to avoid this (that's a good habit anyway). ":retab!" may also change a sequence of spaces by &lt;Tab&gt; characters, which can mess up a printf(). {not in Vi} Not available when |+ex_extra| feature was disabled at compile time. </pre> <p>For example, if you simply type</p> <pre> :ret </pre> <p>all your tabs will be expanded into spaces.</p> <p>You may want to</p> <pre> :se et " shorthand for :set expandtab </pre> <p>to make sure that any new lines will not use literal tabs.</p> <hr> <p>If you're not using Vim,</p> <pre> perl -i.bak -pe "s/\t/' 'x(8-pos()%8)/eg" file.py </pre> <p>will replace tabs with spaces, assuming tab stops every 8 characters, in <code>file.py</code> (with the original going to <code>file.py.bak</code>, just in case). Replace the 8s with 4s if your tab stops are every 4 spaces instead.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload