Skip to content

Doesn't work on new files #8

@3hhh

Description

@3hhh

The plugin doesn't apply indention settings to new files (check e.g. vim foo).

As I see it, there's two ways to fix that:

  1. Add BufNewFile to the existing BufReadPost autocmd in https://github.com/Raimondi/yaifa/blob/master/plugin/yaifa.vim#L39
  2. Keep the default vimrc indention settings/do nothing whenever indention settings cannot be identified for a file. Essentially this would allow you to remove most of the existing yaifa settings and save a bit of performance & code.

Personally I like option 2 more, but maybe I overlooked something.

Side Note: https://github.com/Raimondi/yaifa/blob/master/doc/yaifa.txt#L124 is not about yaifa_disabled.

Other than that thanks a lot for this nice plugin! Keep on hacking! :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions