Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1995eaton/vim-better-javascript-completion
An expansion of Vim's current JavaScript syntax file.
https://github.com/1995eaton/vim-better-javascript-completion
Last synced: about 1 month ago
JSON representation
An expansion of Vim's current JavaScript syntax file.
- Host: GitHub
- URL: https://github.com/1995eaton/vim-better-javascript-completion
- Owner: 1995eaton
- Created: 2014-03-26T16:34:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-06T03:39:55.000Z (over 8 years ago)
- Last Synced: 2023-08-03T19:06:44.904Z (over 1 year ago)
- Language: VimL
- Size: 142 KB
- Stars: 54
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
============Just throw this folder in your `.vim`/`bundle` directory. This should automatically replace Vim's existing JavaScript completion plugin
Features
========* Much more up-to-date completion including support for many HTML5 methods/globals
* HTML5 canvas -> getContext completion
* NodeIterator, Treewalker, localStorage/sessionStorage methods
* All of the existing methods were updated including the `.style` completions (webkit supported), and `console.` objectOptions
=======* I removed a couple of things from the original plugin and turned them into options:
```viml
let g:vimjs#casesensistive = 1
" Enabled by default. flip the value to make completion matches case insensitivelet g:vimjs#smartcomplete = 0
" Disabled by default. Enabling this will let vim complete matches at any location
" e.g. typing 'ocument' will suggest 'document' if enabled.let g:vimjs#chromeapis = 0
" Disabled by default. Toggling this will enable completion for a number of Chrome's JavaScript extension APIs
```Example
=======![example image](https://raw.githubusercontent.com/1995eaton/vim-better-javascript-syntax/master/example.png)