diff rc/vimrc @ 637:758ced52ee62

[vim] Fix typescript syntax
author nanaya <me@nanaya.pro>
date Tue, 14 Jan 2020 11:10:49 +0900
parents 8812b9230a68
children 84a1e86d1afc
line wrap: on
line diff
--- a/rc/vimrc	Tue Jan 14 11:09:50 2020 +0900
+++ b/rc/vimrc	Tue Jan 14 11:10:49 2020 +0900
@@ -13,6 +13,7 @@
 set backspace=2 " make backspace work like most other apps
 set esckeys
 set noerrorbells
+set backupcopy=yes
 
 set softtabstop=4 tabstop=4 shiftwidth=4 expandtab
 
@@ -135,7 +136,7 @@
   autocmd FileType json call In2()
   autocmd FileType javascript call In2()
   autocmd FileType typescript call In2()
-  autocmd FileType typescript.tsx call In2()
+  autocmd FileType typescriptreact call In2()
   autocmd FileType nginx setlocal commentstring=#\ %s
   autocmd FileType nginx setlocal iskeyword&
 endif