Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [retab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
303 views

What does ! in the %retab! mean?

%retab! can replace all characters with spaces. The % in command %retab! means the whole lines in the current file. help retab show something such as: With !, Vim also replaces strings of only normal ...
newview's user avatar
  • 301
1 vote
1 answer
171 views

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 ...
Evan Carroll's user avatar
  • 1,384
1 vote
0 answers
38 views

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 ...
Малъ Скрылевъ's user avatar
0 votes
1 answer
39 views

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 ...
showkey's user avatar
  • 1,140