0

I'm interested in using the JavaScript Indent plugin, but the vim script page only describes how to install the plugin.

Is there a help file for the plugin? How do I use it?

I have tried to google for some help on using it but the best I have found so far is generic advice on Fix_indentation. Is there more to the JavaScript Indent plugin than is described in the Fix_indentation page?

1 Answer 1

1

That indent plugin sets the 'indentexpr' option; if it's properly installed (i.e. under ~/.vim/indent/javascript.vim, and listed under :scriptnames after editing a JavaScript file), it should work out of the box.

You can verify with

:verbose setlocal indentexpr?
SetJsIndent(v:lnum)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.