Vim-gap is a vim plugin for GAP support. Vim-gap supports syntax highlighting, indentation, completion, folding and syntax checker for GAP in Vim editor.
I recommend to use Pathogen (www.vim.org/scripts/script.php?script_id=2332) to organize Vim plugins. In this case you should do following:
cd ~/.vim/bundle git clone git://github.com/petRUShka/vim-gap.git
If you want to enable gap syntax checker then you should install Syntastic plugin (github.com/scrooloose/syntastic). Installation of this plugin is the same.
-
ToggleCommentGAP – toggle comment, add or remove “## ” (mapped on F12)
-
<F4> – macro to add word under cursor to ‘local’ list
-
GAPlocal – add whole ‘local’ declaration to current function (mapped on <F5>)
Then the completion mechanism <CTRL>-p is extended to complete all GAP variable names. For word completion, fall back to list of GAP global variable names: after loading your favorite packages in GAP say
for w in NamesGVars() do AppendTo("~/.vim/GAPWORDS",w,"\n"); od;
For vim version >= 6.0 folding is switched on and indentation switched on.