codeforce.vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2017-02-01
使用用户:  0
Github星:  1
插件作者:  Ayush Anand

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'iamayushanand/codeforce-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'iamayushanand/codeforce-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'iamayushanand/codeforce-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/iamayushanand/codeforce.vim

Ⅳ. 文档说明

# Codeforces Submitter Plugin Vim

This plugin helps you in submitting your solutions to codeforces while practicing.

Installation

To install this plugin just run the following commands on your terminal:

cd ~/.vim/bundle

git clone https://github.com/iamayushanand/CodeForce.vim.git

Configuration

You need to configure CF.vim present in the plugin/ dir based on your codeforces account settings etc.

on line 30 replace "yourhandle" with Your Handle and on line 31 replace "YourPassword" with your codeforces password.On line 37 replace your User agent with the default.

on line 46 replace 'depends on language' with your language code given in this README.
Replace the location given in line 59 with your preferred one(That snippet is for debugging purposes).Replace the location given in line 71 with the location in which the file checker.py is present.

Replace "YourHandle" in checker.py with your cf handle.

Language Codes

LanguageLanguage code
GNU GCC 5.1.010
GNU GCC C11 5.1.043
GNU G++ 5.1.01
GNU G++11 5.1.042
GNU G++14 6.2.050
Microsoft visu C++2
Haskell GHC 7.812
Java 1.8.046
Perl 5.20.113
python 2.7.127
python 3.5.231

Dependencies

You need to have python with beautiful soup and requests library installed.

Usage

To submit a code for a specific cf problem use

:CodeForceSubmit XXXA

where XXXA is problem code.

To see your last verdict use

:LastVerdict

Issues

If you find any problems or bug with my plugin please email me at iamayushanand@gmail.com
or open an issue on github page.

Self Promition

If you like this plugin then follow me on github ;).

添加新评论