Questions tagged [retab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Wrap :retab! or create a new command that calls it?

My vim does most everything what I want with :retab! one thing I would like it to do in addition is remove all trailing whitespace like this, :%s/\s\+$// Is there a way to redefine :retab! such that ...
1 vote
0 answers

Can't redefine tabstop, softtabstop and softwidth after syntax detection

I've a vim: VIM - Vi IMproved 8.2 (2019 Dec 12, собрано Apr 8 2020 14:10:43) and I tried to redefine tabstop, softtabstop and softwidth values for a file after detection of its syntax. I.e. I have a ...
0 votes
1 answer

Why not all two spaces replaced with tab key?

Here is my sample file: cat test x1 x2 x3 x x x All spaces contain two spaces in the test file,convert all the spaces into tab in vim : :set ts=2 sts=2 noet :retab! Strange thing happens that ...
  • 880