-
Notifications
You must be signed in to change notification settings - Fork 69
Indentation doesn't work when syntax is off #61
Comments
How can I reproduce this? Did you turn syntax off with What use case do you have for preserving indentation, but turning the syntax off? |
Yeah, by default my syntax is on... I used If you consider the following code: <?php
function test() {
} When my cursor is over function test() {
|
} After disabling syntax and trying the same thing my cursor moves here: function test() {
|
} If I turn syntax back on and try again it works as expected and indents the cursor. |
There isn't anything in this plug-in that relates to indentation. There are various hooks for folding. I wonder if another Vim built-in plugin relies on syntax groups being defined to perform the indentation? EDIT: Looks like this is the case. |
That's it @StanAngeloff! I'll add an issue over there - thanks :) |
I thought this might be a vim limitation, but when I have syntax off indentation works fine for javascript and Go.
With syntax off, indentation using the
=
key or usingo
to enter a new line doesn't indent at all.The text was updated successfully, but these errors were encountered: