Giter Site home page Giter Site logo

jlertle / vim-scala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from derekwyatt/vim-scala

0.0 2.0 0.0 429 KB

My work on integration of Scala into Vim - not a ton here, but useful for me.

Home Page: http://derekwyatt.org

License: Apache License 2.0

Ruby 3.04% Vim Script 74.85% Scala 22.12%

vim-scala's Introduction

vim-scala

This is a "bundle" for Vim that builds off of the initial Scala plugin modules by Stefan Matthias Aust and adds some more "stuff" that I find useful, including all of my notes and customizations.

##Installation

You really should be using Tim Pope's Pathogen module for Vim (http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen) if you're going to clone this repository because, well... you should.

###Using the command-line

Using wget:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do wget -O ~/.vim/$d/scala.vim https://raw.githubusercontent.com/derekwyatt/vim-scala/master/$d/scala.vim; done

Using cURL:

mkdir -p ~/.vim/{ftdetect,indent,syntax} && for d in ftdetect indent syntax ; do curl -o ~/.vim/$d/scala.vim https://raw.githubusercontent.com/derekwyatt/vim-scala/master/$d/scala.vim; done

###Vundle Alternatively, you can use Vundle to manage your plugins.

If you have Vundle installed, simply add the following to your .vimrc:

Plugin 'derekwyatt/vim-scala'

and then run

:PluginInstall

to install it.

##Sorting of import statements :SortScalaImports

There are different modes for import sorting available. For details, please consult the vimdoc help with

:help :SortScalaImports

##Scaladoc comment indentation

By default, the plugin indents documentation comments according to the standard Javadoc format

/**
 * This is a doc comment using Javadoc-style indentation.
 */

To enable the indentation standard as recommended for Scaladoc comments (from http://docs.scala-lang.org/style/scaladoc.html, since Scaladoc2), add the command let g:scala_scaladoc_indent = 1 to .vimrc file, e.g:

/** This is a Scaladoc comment using the recommended indentation.
  * let g:scala_scaladoc_indent = 1
  */

vim-scala's People

Contributors

derekwyatt avatar leonardehrenfried avatar ches avatar veloce avatar todesking avatar ujihisa avatar jdanbrown avatar mmorearty avatar nathanalderson avatar pankajroark avatar ab avatar euclio avatar blast-hardcheese avatar dinduks avatar 0xqd avatar evverx avatar henrytill avatar igorfrenkel avatar sprsquish avatar zoonfafer avatar normenmueller avatar jimenezrick avatar zg avatar ascii-soup avatar clhodapp avatar morazow avatar mjp4 avatar

Watchers

Jason Lee Ertle avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.