Find a file
2016-01-28 15:24:42 +01:00
ftdetect Update README with basic information and let Vim understand the .ct fileformat 2016-01-28 09:58:56 +01:00
ftplugin Implemented simplest way to cluster text. 2016-01-28 15:15:41 +01:00
syntax Use 'very magic' regexp to match dot-operator 2016-01-28 10:45:37 +01:00
.gitignore Add running script 2016-01-28 14:18:31 +01:00
LICENSE Initial commit with LICENSE and README 2016-01-28 09:45:59 +01:00
README.ct.md Github hack for markdown 2016-01-28 15:24:42 +01:00

Cluster Text

A Vim-plugin that allows you to write the most basic form of cluster texts based on the work of Andreas Pålsson. The basic rules are as follows:

  • Following a full stop five (5) spaces are used instead of one (1)
  • Alone words at the end of a line are wrapped to the next line
  • Lines should be left aligned (not justified)
  • 80-90 characters per line

The full rule set is complex and involves human judgement to place the indentations within sentences. As such, there is no simple algorythm (yet) that can be used to place indentations while still maintaining a natural "feel" when reading the text.

The plugin works as such. As you strike full-stop ('.') followed by a space in reasonably rapid succession (one second or so) 5 spaces are inserted instead of one. There is some syntax highlighting as well. Most prominently (and perhaps incorrectly so) on the '.' character.