Hi,

I installed several plugins (I don't I installed all) at
https://github.com/joyent/node/wiki/Vim-Plugins

But vim fails to recognize '{' in /.../ should be ignored for pairing,
which leads to error in {} pairs (shortcut % in vim). I'm not sure
which vim plugin should handle this special case. Could anybody take a
look and let the original author of the corresponding vim plugin know
this issue?

app.register('md', {
    compile: function(path, options, fn) {
      fs.readFile(path, 'utf8', function(err, str){
          if (err) return fn(err);
          try{
            var html = md(str);
            html = html.replace(/\{([^}]+)\}/g, function(_, name){
                return options[name];
              })
            fn(null,html)
          } catch(e){
            fn(e)
          }
        })}
      }
  })

Regards,
Peng

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to