typescript-vim icon indicating copy to clipboard operation
typescript-vim copied to clipboard

how to set shiftwidth and tabstop manully in typescript only?

Open TCBeliever opened this issue 6 years ago • 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

TCBeliever avatar Feb 19 '19 08:02 TCBeliever

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

yongrenjie avatar Dec 21 '21 18:12 yongrenjie