Skip to content

Commit

Permalink
Add instructions for using with Vim (issue #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr committed Feb 20, 2011
1 parent b211c82 commit c8d2cc6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rst
Expand Up @@ -105,6 +105,15 @@ See Mads Jensen's Scala TextMate bundle:

Reformat using Ctrl-Shift-H.

Use with Vim
------------

While there is no specific Vim integration at present, you can use
Scalariform as an external formatter for the ``gq`` command by adding
the following to ``.vimrc`` ::

au BufEnter *.scala setl formatprg=scala\ -cp\ /path/to/scalariform_2.8.0-0.0.8.jar\ scalariform.commandline.Main

Command line tool
-----------------

Expand Down

0 comments on commit c8d2cc6

Please sign in to comment.