Improve runtime files for cabal filetype by mateoxh · Pull Request #20623 · vim/vim · GitHub
Skip to content

Improve runtime files for cabal filetype#20623

Open
mateoxh wants to merge 2 commits into
vim:masterfrom
mateoxh:cabal
Open

Improve runtime files for cabal filetype#20623
mateoxh wants to merge 2 commits into
vim:masterfrom
mateoxh:cabal

Conversation

@mateoxh

@mateoxh mateoxh commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

compiler: change 'efm' to ignore garbage output
ftplugin: add 'expandtab' and reasonable values for 'tabstop' and 'shiftwidth'
indent: add new basic indent plugin
syntax: recognize 'elif' keyword

as a side note, cabal ships its own syntax file and seems more complete than the current one, maybe we should use it as upstream and replace our version with it?

compiler: change 'efm' to ignore garbage output
ftplugin: add 'expandtab' and reasonable values for 'tabstop' and 'shiftwidth'
indent: add new basic indent plugin
syntax: recognize 'elif' keyword
@mateoxh mateoxh closed this Jun 24, 2026
@mateoxh mateoxh reopened this Jun 24, 2026
@chrisbra

Copy link
Copy Markdown
Member

@mateoxh

mateoxh commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

however I'd recommend to follow the style guide, see :h ft_recommended_style

Do you mean this for tabstop and shiftwidth? I can just remove them.

@dkearns

dkearns commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Yes, and 'expandtab' assuming they are just style preferences.

If they're strong community defaults they can go behind a _recommended_style guard, otherwise it's best just to remove them. These settings are generally left to individual user preference.

@mateoxh

mateoxh commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants