Suppose you are are working in file code.cpp for question https://www.hackerrank.com/challenges/maxsubarray on hackerrank,then you can directly check the result of your code from vim itselt in the following way:
- Open code.cpp
- Type- :source hrank.vim
- Type- :call SetQuesURL('enter_url')
How to give url: Suppose url is https://www.hackerrank.com/challenges/maxsubarray then you need to only enter maxsubarray instead of enter_url in SetQuesURL function
You will get output in vim buffer itself