Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274
Source Link

See what indenting style is being used in Vim

I've recently started up a project using Typescript. When I start up Vim, open up a .tsx file and open a new line, it fails to indent:

enter image description here

I then open up a regular javascript file (.js), and return to my Typescript file. I then open a new line and it indents correctly:

enter image description here

I've tried turning on / off autoindent and cindent, and I've removed my plugins (installed via Pathogen) and brought them back and the problem seems to be consistent.

I presume there is some auto indenting being triggered by the opening of the .js file that persists to the typescript file, but I have no idea how to check / debug what is going on. Any thoughts on how to troubleshoot this?