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

Allow settings to be buffer-local #21

Merged
merged 2 commits into from Mar 9, 2015
Merged

Commits on Feb 25, 2015

  1. Add option for preferred values with tabs + spaces

    Add detectindent_preferred_when_mixed so we use
    detectindent_preferred_indent and detectindent_preferred_expandtab when
    both tabs and spaces are found. This makes it easier for users to
    enforce a "correct" setting when working in messy code.
    idbrii committed Feb 25, 2015
    Configuration menu
    Copy the full SHA
    0944551 View commit details
    Browse the repository at this point in the history
  2. Allow settings to be buffer-local

    Only applies to indent settings (not max lines etc).
    
    Add s:GetValue() to properly grab buffer-local options. Assumes if they
    are active that we should use their value (instead of assuming existence
    means 1) to allow us to force settings for specific filetypes.
    
    To make most filetypes use 'expandtab', add this to vimrc:
        let g:detectindent_preferred_expandtab = 1
    And for the exceptions that should use 'noexpandtab' add this to
    after/ftplugin/FILETYPENAMEHERE.vim:
        let b:detectindent_preferred_expandtab = 1
    
    Add documentation.
    idbrii committed Feb 25, 2015
    Configuration menu
    Copy the full SHA
    3a33e22 View commit details
    Browse the repository at this point in the history