OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

remove usage of systemlist and improve caching in vim script #186

Closed qlambert-pro closed 9 years ago

qlambert-pro commented 9 years ago

this pull request results from the discussion in issue#184

systemlist does not appear to be documented in vim scripts, this commit replaces the call with equivalent documented vim script functions call

The script now recomputes the indentation for the entire file only either the buffer has changed or when modifications have been made to the buffer. Rather than returning the first cell of the table and removing cells to make sure that it is the correct value, the script now return the value in the cell corresponding to the current line.

AltGr commented 9 years ago

Thanks!