-
Notifications
You must be signed in to change notification settings - Fork 100
Use softtabstop
instead of tabstop
.
#228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Looking at these docs it seems like tabstop and softtabstop are complementary to one another, not mutually exclusive. http://tedlogan.com/techblog3.html Can you explain the specific formatting problem you're having that motivates this pull request? |
Is the intention to always insert 2 spaces? If so, Even that link shows not using |
Sorry I've been procrastinating making a decision about this. Let's think through all the tab settings.
This setting affects the display of actual tab characters in a file, so is not even relevant for files with all spaces. However we could set it to 2 just in case we're reading a file that another editor saved which has tabs.
I used to use real tabs for my code, and then started doing Ruby programming where everybody uses only spaces, at which point I switched my style to spaces. I think tabs do make logical sense, but spaces are more common in Haskell so let's enable expandtab.
Choose 2 to match the tabstop.
Using the value 2 is consistent with what we want.
Since we're always expanding tabs, this setting can be turned off. Do you want to make these changes in your PR? |
Signed-off-by: Ryan Terra <ryan.mcquen@Terra>
Thank you! Appreciate your nudging me to learn more about how tabs work in vim so we can make this configuration work smoothly for everyone. |
You are welcome! This really is confusing in Vim, haha. |
@begriffs how do you feel about changing Ctrl + T to insert a tab in
Its current behavior is the same as the Tab key. |
This might conflict with the standard keys. In
Maybe this is something you could add to your |
Closes #223.