Fork me on GitHub


A community-driven vim distribution

Home | About | Documentation | Development | Community | Sponsors

SpaceVim Layers: lang#javascript


This layer is for JavaScript development.


To use this configuration layer, add call SpaceVim#layers#load('lang#javascript') to your custom configuration file.


Layer configuration

auto_fix: auto fix problems when save files, disabled by default. if you need this feature, you can load this layer via:

call SpaceVim#layers#load('lang#javascript',
            \ {
            \ 'auto_fix' : 1,
            \ }
            \ )

Key bindings

Import key bindings

Key Binding Description
F4 (Insert/Normal) Import symbol under cursor
SPC j i Import symbol under cursor
SPC j f Import missing symbols
SPC j g Jump to module under cursor
<C-j>i (Insert) Import symbol under cursor
<C-j>f (Insert) Import missing symbols
<C-j>g (Insert) Jump to module under cursor

Generate key bindings

Mode Key Binding Description
normal SPC l g d Generate JSDoc

Hosted on GitHub, Help improve this page — Theme by mattgraham,