Giter Club home page Giter Club logo

hackerearth.vim's Introduction

hackerearth.vim

HackerEarth Vim plugin to compile and run code from the comfort of your favorite editor.
The plugin is built using HackerEarth Api.

QUICK INSTALL

  • Download the plugin.
  • Copy the hackerearth.vim file to
    $HOME/.vim/plugin
  • Register a new client key from http://www.hackerearth.com/api/register
  • In your .vimrc file enter the following line:
    let g:HackerEarthApiClientKey = "<new-client-key>"

COMMAND SHORTCUTS

  • Open a file in vim editor.
    • To run: ctrl+h r
    • To compile: ctrl+h c
    • For help: ctrl+h h

COMMANDS

To run:

:Hrun -s=source.cpp, -i=input.txt, -o=output.txt
To compile:
:Hcompile -s=source.cpp, -i=input.txt, -o=output.txt
For help:
:Hhelp

Arguments:

  • -s: source file, optional; default value is currently openend file in vim
  • -i: input file, optionali; give input to your programme from this file
  • -o: output file, optional; use this if you want to save the output of your programme
  • -t: time limit, optional
  • -m: memory limit, optional
Note*: File paths can be both absolute and relative(relative to system current working directory).
Tip*: To autocomplete file path, use space after '=' and press TAB.

INFO

  • Supported programming languages: C, CPP, CPP11, CLOJURE, JAVA, JAVASCRIPT, HASKELL, PERL, PHP, PYTHON, RUBY
Note*: The plugin will not work without hackerearth api client key.

hackerearth.vim's People

Contributors

adelarsq avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.