Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filetype-dependent settings need re-examined #47

Closed
benknoble opened this issue Jul 22, 2017 · 1 comment
Closed

Filetype-dependent settings need re-examined #47

benknoble opened this issue Jul 22, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@benknoble
Copy link
Owner

benknoble commented Jul 22, 2017

This is a lengthy one.

It comes down to about 3 things:

  1. Tab settings are handled ok-ish by the default plugins. Remove 'global' settings. I'd really like to use expandtab, obviously. Consider shiftround as well. And don't forget shiftwidth (tabstop=8 always)
  2. Filetype autocommands can actually be moved to /.vim/ftplugin/<type>.vim to set local options and use <localleader> for mappings.
  3. Once 'global' settings are removed, keep an eye out for changes that need to be made and add them.

Plugin files are used for defining file-dependent settings.

Basically, what I want to do is eschew settings that are too global for different filetypes, move my personal prefs into filetype plugins, and then rely on the defaults until I decide I need to change something.

⚠️ 💥 This will likely require a :retab of all files! ❗️❗️

@benknoble benknoble added the vim label Jul 22, 2017
@benknoble benknoble added this to the Version 1.1 milestone Jul 22, 2017
@benknoble benknoble self-assigned this Jul 22, 2017
@benknoble benknoble modified the milestones: Version 1.1, Version 1.2 Jul 30, 2017
@benknoble
Copy link
Owner Author

Turns out, setting e.g. shiftwidth or softtabstop does get overridden by ftplugin entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant