Quramy / tsuquyomi

A Vim plugin for TypeScript
http://www.vim.org/scripts/script.php?script_id=5151
1.39k stars 72 forks source link

MacVim not reading TypeScript file #232

Open tangkunyin opened 6 years ago

tangkunyin commented 6 years ago

This plugin didn't work for me...

image

I noticed that when opening any of the TypeScript files generated in vim, the contents of the file is xml type

image

At last, I put autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript in the end file of vimrc. It works fine.

Why ?

Related artice: https://stackoverflow.com/questions/44330104/vim-not-reading-typescript-file https://github.com/vim-syntastic/syntastic/issues/1655

tangkunyin commented 6 years ago

Both of them were installed and configurated

Bundle 'Quramy/tsuquyomi'
Bundle 'leafgarland/typescript-vim'