leafgarland/typescript-vim

how to set shiftwidth and tabstop manully in typescript only?

Opened this issue · 1 comments

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

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).