Skip to content
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

how to set shiftwidth and tabstop manully in typescript only? #159

Open
TCBeliever opened this issue Feb 19, 2019 · 1 comment
Open

how to set shiftwidth and tabstop manully in typescript only? #159

TCBeliever opened this issue Feb 19, 2019 · 1 comment

Comments

@TCBeliever
Copy link

I just want change this 2 value when ts, which different with other fileType.
but I did not found this 2 keyword setting in this plugin

@yongrenjie
Copy link

I know this is old, but this isn't a plugin issue, you can (and should) do this using vim's own mechanisms. See :h ftplugin. TLDR: inside ~/.vim/after/ftplugin/typescript.vim (modify the ~/.vim part accordingly for your OS), add the following lines

setlocal shiftwidth=4
setlocal tabstop=4

(replacing the numbers by whatever value you want, of course).

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

No branches or pull requests

2 participants