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

Doesn't work on new files #8

Open
3hhh opened this issue Oct 13, 2020 · 0 comments
Open

Doesn't work on new files #8

3hhh opened this issue Oct 13, 2020 · 0 comments

Comments

@3hhh
Copy link

3hhh commented Oct 13, 2020

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! :-)

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

No branches or pull requests

1 participant