https://github.com/othree/coffee-check.vim
Automatic CoffeeScript syntax validation checker for Vim
https://github.com/othree/coffee-check.vim
Last synced: 6 months ago
JSON representation
Automatic CoffeeScript syntax validation checker for Vim
- Host: GitHub
- URL: https://github.com/othree/coffee-check.vim
- Owner: othree
- Created: 2011-12-01T07:49:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T14:51:05.000Z (over 13 years ago)
- Last Synced: 2025-01-24T13:45:04.577Z (over 1 year ago)
- Language: VimL
- Homepage: http://www.vim.org/scripts/script.php?script_id=3900
- Size: 168 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# coffee-check.vim
## Introduction
It is hard to find out where is you script error if you use [CoffeeScript](http://coffeescript.org/) [plugin](https://github.com/jrburke/require-cs) for [RequireJS](http://requirejs.org/). This Vim plugin is design to help reduce the effect of this issue, it will check the code syntax base on CoffeeScript compiler everytime when you save a coffee file automatically.
## Requirement
* node: used to compile coffee script.
## Installation
Use [pathogen.vim](http://www.vim.org/scripts/script.php?script_id=2332) or [Vundle](https://github.com/gmarik/vundle) is suggestion.
If you didn't install [vim-coffee-script](http://www.vim.org/scripts/script.php?script_id=3590)
Add the following line to vimrc:
au BufRead,BufNewFile *.coffee set ft=coffee
## Usage
To disable error line sign, add this line to your ~/.vimrc file:
let g:coffeeCheckSignErrorLine = 0
To enable error highlighting altogether add this line to your ~/.vimrc file:
let g:coffeeCheckHighlightErrorLine = 1
## Important (Known Issues)
* Only one error appears in every check, if you have several error in your script, you will have to fix one by one.
* Some error message can't locate to correct line number, all this kind of error will mark to line 1.
* Cause of previous issue, can't use the behavior of jslint.vim. So Vim will open quickfix window if any error was found.
## Acknowledge
Thanks for the base of [jslint.vim](https://github.com/hallettj/jslint.vim) by [Jesse Hallett](http://sitr.us/).
## License
Release under MIT License.