-
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 URLs to use https://github.com/nodejs/node instead of the previous Joyent repo.
Thanks, Jacky Alciné, for the help! -
Resolves symlinks in paths before editing a file.
Shows correct paths when using the relative symlink trick innode_modules
(ln -s .. node_modules/root
) and usinggf
onrequire("root/lib/foo")
. -
Uses the HTTPS variant of https://rawgit.com to download Node core module source files.
This previously used HTTP because my Vim v7's Netrw didn't seem to handle HTTPS URLs. If that's still the case for you, setg:node_repository_url
:let node_repository_url = "http://raw.githack.com/nodejs/node"
- 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
.