will133 / vim-dirdiff

Vim plugin to diff two directories
335 stars 59 forks source link

Feature request: set filetype #3

Closed MiguelLatorre closed 8 years ago

MiguelLatorre commented 8 years ago

First, thanks for this great plugin.

I think it would be nice to have a filetype set for the main buffer window (the one with the file names) at the bottom.

Just for reference, I'm currently setting, in my modified dirdiff plugin, the "dirdiff" filetype.

will133 commented 8 years ago

I'm just curious, what would be the benefit for setting the file type?

MiguelLatorre commented 8 years ago

Setting automands, display a custom buffer name, instead of a simple "1" (in plugins like powerline, airline, lightline), ...

I currently have in dirdiff.vim:

setlocal filetype=dirdiff
setlocal nomodified
setlocal nomodifiable
setlocal buftype=nowrite
will133 commented 8 years ago

Ok, I've added this with c69159f.