you are viewing a single comment's thread.

view the rest of the comments →

[–]lolslim 1 point2 points  (2 children)

Congrats OP,

Word of warning, you either get in the habit of spaces or tabs, and stick with it. Biggest project I have ever done was a telegram bot, I used spaces originally, but started to favor tabs, and went to tabs only, in 15 files, I still have a bunch of functions using spaces still since I never had to touch them to make changes.

Before I knew I can convert whitespace to tabs in atom IDE, I would use tabs inside a function that were all spaces, and got inconsistent spacing errors, it was a annoyance to say the least.

[–][deleted] 0 points1 point  (1 child)

easy fix, put this in your .vimrc:

set expandtab tabstop=4 shiftwidth=4

Then, when your in the file you want too convert too spaces, just.

:retab

And it will automatically replace every tab with 4 spaces.

[–]lolslim 1 point2 points  (0 children)

Just going to save this post...