Convert Indentation #28722
-
I'm trying to switch from VS Code to Neovim. VS Code has a command called "Convert Indentation to Tabs" and a command called "Convert Indentation to Spaces". I'm wondering if Neovim has equivalent commands built in or a plugin that provides equivalent commands. |
Beta Was this translation helpful? Give feedback.
Answered by
samualtnorman
May 12, 2024
Replies: 2 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I figured it out. For converting spaces to tabs:
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
samualtnorman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out.
For converting spaces to tabs:
:set shiftwidth=<number>
and:set tabstop=<number>
to what the file is currently using.:set noexpandtab
>
<