Skip to content

Use shiftwidth function instead of setting#2

Open
peterfab9845 wants to merge 2 commits intoJPR75:masterfrom
peterfab9845:master
Open

Use shiftwidth function instead of setting#2
peterfab9845 wants to merge 2 commits intoJPR75:masterfrom
peterfab9845:master

Conversation

@peterfab9845
Copy link
Copy Markdown

Since Vim 7.3.694, the shiftwidth setting can be set to 0 to indicate that it should be the same as tabstop.
To get the correct value, Vim provides the shiftwidth() function, which should be used instead of reading the setting directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant