Skip to content

Repository files navigation

CodeGra.vim

The Vim plugin for CodeGra.de

Installation

Dependencies

Make sure CodeGra.fs is installed and both cgfs and the helper program cgapi-consumer must be available from the user's PATH environment variable.

Vim 8 and up

mkdir ~/.vim/pack/CodeGrade/start
git clone https://github.com/CodeGra-de/CodeGra.vim ~/.vim/pack/CodeGrade/start/CodeGra.vim

Up to Vim 8

Use your package manager of choice, below examples for few popular ones.

" vim-plugcallplug#begin()
Plug 'CodeGra-de/CodeGra.vim'callplug#end()
" Vundlecallvundle#begin()
Plugin'CodeGra-de/CodeGra.vim'callvundle#end()
filetypepluginon" minpaccallminpac#init()
callminpac#add('CodeGra-de/CodeGra.vim')

Usage

Mount your CodeGra.de account to a directory and open a file in one of the filesystem's subdirectories:

$ cgfs ~/CodeGra.de
Mounting...
Mounted
$ vim ~/CodeGra.de/<course>/<assignment>/<submission>

The following commands are available in Vim:

Command--fixed1Description
CGEditFeedbackEdit the current submission's global feedback.
CGEditGradeEdit the current submission's grade.
CGShowLineFeedbackShow the line-feedback for the current buffer in the quickfix list and open the quickfix window.
CGEditLineFeedbackEdit the comment for the current line in the current buffer.
CGDeleteLineFeedbackDelete the comment for the current line in the
current buffer.
CGOpenRubricEditorEdit the rubric of the assignment of the current
file.
CGOpenRubricSelectorOpen the rubric for the current submission.
CGRubricPrevSectionGo to the previous header in a rubric file.
CGRubricNextSectionGo to the next header in a rubric file.
CGRubricSelectItemSelect the rubric item on the current line.

1: Require the filesystem to be mounted with the --fixed flag to use this feature.

License

CodeGra.vim is released under LICENSE.

About

Vim plugin for CodeGra.de

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages