yaifa icon indicating copy to clipboard operation
yaifa copied to clipboard

Doesn't work on new files

Open 3hhh opened this issue 5 years ago • 0 comments

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

3hhh avatar Oct 13 '20 16:10 3hhh