derekelkins / agda-vim

Agda interaction in vim
BSD 2-Clause "Simplified" License
130 stars 47 forks source link

Set additional filetype options #35

Closed andrejtokarcik closed 6 years ago

andrejtokarcik commented 6 years ago

Defining setlocals that allow easy manipulation of keywords (e.g. by the star command) and comments (e.g. by the vim-commentary plugin).

derekelkins commented 6 years ago

I think the comments setting would annoy me so I'm not too keen on adding it. commentstring seems fine. iskeyword seems fine except that the 192-255 range seems to be based on the non-Windows default but for Windows the default in the extended ASCII range is 128-167,224-235. I'm not really sure how much this matters though.

andrejtokarcik commented 6 years ago

FWIW, I copied the comments setting from vim-polyglot's haskell.vim as Agda and Haskell use the same comment format.

I have just noticed more problems with this iskeyword value while testing with files from the standard library:

Given all the issues I'm closing this pull request and will maybe open a new one once I have a more robust solution.