- Fixes
gf
on scoped modules (require("@scope/example")
). - Initializes Node.vim
gf
and other mappings when the'filetype'
is set, rather than when reading a file.
This allows you to manually set the filetype to JavaScript after opening a file, for example, and still get Node.vim's mappings. - Initializes Node.vim mappings for JSX (those with the
jsx
filetype) files. - Adds
.es
to detected suffixes, so you cangf
over./foo
to open./foo.es
.
- Updates the URL from which Node.vim downloads Node core module source files.
Uses http://rawgit.com which used to be named http://rawgithub.com.
Because of Vim Netrw's inability to handle HTTPS, it does so over HTTP. Sorry.
- Adds
node
as a core module so you could use:Nedit node
to open the file Node uses to bootstrap its core.
- Adds support for opening core Node.js modules, such as
http
,util
, etc. withgf
or:Nedit
. They're shown straight from Node's online repository without you having to download everything.
- Adds
:Nedit
command for editing modules or files relative to the Node project root. For example::Nedit any-module/lib
or:Nedit ./package
. - Adds
:Nopen
command which behaves like:Nedit
, but alsolcd
s to the module's directory. - Makes
<Plug>NodeGotoFile
available for your mapping in any Node project file, but maps it togf
automatically only on JavaScript files. - Maps
gf
also for JSON files for easy jumping to modules. - Makes
:Nedit
and:Nopen
available immediately when starting Vim in a directory of a Node project.
- Adds
Node
autocommand.
Use it withautocmd User Node
to customize settings for files in Node projects. - Adds
<Plug>NodeVSplitGotoFile
for those who want<C-w>f
to split vertically.
- Adds
&include
pattern so Vim can recognize included/required files, e.g. for looking up keywords with[I
. - Cleans
&path
from/usr/include
for JavaScript files. - Adds a new superb
gf
handler to handle all relative and module paths, incl. support forrequire(".")
to open./index.js
. This is spot on how Node.js finds your requires. - Adds
<Plug>NodeGotoFile
should you want to remap Node.vim's file opener. - Opens files before directories should both, e.g.
./foo.js
and./foo
, exist. This matches Node.js's behavior. - Adds a full automated integration test suite to Node.vim which is freaking amazing!
- Adds full support for navigating to module files by using
gf
onrequire("any-module")
. - Adds
.json
to&suffixesadd
so you could usegf
onrequire("./package")
to open package.json.
- Removes an innocent but forgotten debugging line.
- First release to get the nodeballs rolling.
- Sets the filetype to JavaScript for files with Node's shebang (
#!
). - Adds
.js
to&suffixesadd
so you could usegf
onrequire("./foo")
to openfoo.js
.