Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rudimentary support in CoffeeScript files #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Node.vim
========
[![Build status](https://travis-ci.org/moll/vim-node.png?branch=master)](https://travis-ci.org/moll/vim-node)

Tools to make Vim superb for developing with Node.js.
Tools to make Vim superb for developing with Node.js.
It's the Node equivalent of [Rails.vim (vimscript #1567)](https://github.com/tpope/vim-rails) and [Rake.vim (vimscript #3669)](https://github.com/tpope/vim-rake).

This is just the first release to get the nodes rolling. If you've collected great helpers and shortcuts that help you work with Node, please share them via [email](mailto:[email protected]), [Twitter](https://twitter.com/theml) or [GitHub issues](https://github.com/moll/vim-node/issues) so we could incorporate them here, too! Thanks!
Expand Down Expand Up @@ -84,6 +84,14 @@ autocmd User Node
\ endif
```

Configuration
-------------
For rudimentary support in CoffeeScript files, add the following to your `.vimrc`:

```
let g:node#includeCoffee = 1
```

License
-------
Node.vim is released under a *Lesser GNU Affero General Public License*, which in summary means:
Expand All @@ -98,7 +106,7 @@ For more convoluted language, see the `LICENSE` file.

About
-----
**[Andri Möll](http://themoll.com)** authored this in SublemacslipseMate++.
[Monday Calendar](https://mondayapp.com) supported the engineering work.
**[Andri Möll](http://themoll.com)** authored this in SublemacslipseMate++.
[Monday Calendar](https://mondayapp.com) supported the engineering work.

If you find Node.vim needs improving or you've got a question, please don't hesitate to email me anytime at [[email protected]](mailto:[email protected]), tweet at [@theml](https://twitter.com/theml) or [create an issue online](https://github.com/moll/vim-node/issues).
5 changes: 5 additions & 0 deletions autoload/node.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
let node#suffixesadd = [".js", ".json"]
let node#filetypes = ["javascript", "json"]

if exists("g:node#includeCoffee") && g:node#includeCoffee == 1
call add(node#suffixesadd, ".coffee")
call add(node#filetypes, "coffee")
endif

function! node#initialize(root)
let b:node_root = a:root
call s:initializeCommands()
Expand Down