Skip to content

Vim GAP template engine syntax highlighting, indentation and syntax checker

Notifications You must be signed in to change notification settings

petRUShka/vim-gap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS:

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.

Installation

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.

Some functions and macros

  • 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.

About

Vim GAP template engine syntax highlighting, indentation and syntax checker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published