Skip to content

Convert Indentation #28722

Closed Answered by samualtnorman
samualtnorman asked this question in Q&A
May 12, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

I figured it out.

For converting spaces to tabs:

  1. Make sure you :set shiftwidth=<number> and :set tabstop=<number> to what the file is currently using.
  2. :set noexpandtab
  3. Select the whole file in visual mode
  4. >
  5. Select the whole file in visual mode
  6. <

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@samualtnorman
Comment options

@clason
Comment options

Comment options

You must be logged in to vote
3 replies
@clason
Comment options

@samualtnorman
Comment options

@clason
Comment options

Answer selected by samualtnorman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants