-
Fixes
gfon scoped modules (require("@scope/example")). -
Initializes Node.vim
gfand 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
jsxfiletype) files. -
Adds
.esto detected suffixes, so you cangfover./footo 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 usinggfonrequire("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
nodeas a core module so you could use:Nedit nodeto open the file Node uses to bootstrap its core.
- Adds support for opening core Node.js modules, such as
http,util, etc. withgfor:Nedit. They're shown straight from Node's online repository without you having to download everything.
- Adds
:Neditcommand for editing modules or files relative to the Node project root. For example::Nedit any-module/libor:Nedit ./package. - Adds
:Nopencommand which behaves like:Nedit, but alsolcds to the module's directory. - Makes
<Plug>NodeGotoFileavailable for your mapping in any Node project file, but maps it togfautomatically only on JavaScript files. - Maps
gfalso for JSON files for easy jumping to modules. - Makes
:Neditand:Nopenavailable immediately when starting Vim in a directory of a Node project.
- Adds
Nodeautocommand.
Use it withautocmd User Nodeto customize settings for files in Node projects. - Adds
<Plug>NodeVSplitGotoFilefor those who want<C-w>fto split vertically.
- Adds
&includepattern so Vim can recognize included/required files, e.g. for looking up keywords with[I. - Cleans
&pathfrom/usr/includefor JavaScript files. - Adds a new superb
gfhandler 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>NodeGotoFileshould you want to remap Node.vim's file opener. - Opens files before directories should both, e.g.
./foo.jsand./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
gfonrequire("any-module"). - Adds
.jsonto&suffixesaddso you could usegfonrequire("./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
.jsto&suffixesaddso you could usegfonrequire("./foo")to openfoo.js.