Clean plugin for Vim
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 173 commits ahead of timjs:master.

README.md

vim-clean

Clean plugin for Vim

Maintainers

Contributors


Features

  • Syntax highlighting for Clean and ABC code and Clean project files
  • Simple indentation rules for Clean
  • Switching between definition and implementation module
  • Automatic imports based on tagfiles (see below)
  • Jumping to definition and implementation based on tagfiles (see below)
  • Detailed information about things based on tagfiles (see below)
  • Compiler specifications for clm and cpm, including errorformats
  • Cloogle integration (requires curl)
  • Access to the plugin manual via :h clean. Make sure to run :helptags at least once to update the helpfiles.

Tip: tagfiles

Use clean-cloogle/cloogle-tags to build a tagsfile (:h tags) on /opt/clean/lib, and add setlocal tags+=/opt/clean/lib/tags to your .vim/after/ftplugin/clean.vim. Then you can use Ctrl-] to jump to a definition (for instance).

Or, better, use \dt and friends to jump to definitions and implementations. See :h clean-jumping-to-definitions for an overview of the available commands.

With cloogle-tags 0.5+, detailed information about things can be shown in the statusline, for instance with

set statusline+=%{cleanvim#tags#statusline()}

statusline