ciaranm / detectindent

Vim script for automatically detecting indent settings
173 stars 48 forks source link

Use buffer-values introduced in 3a33e22 #27

Open Cimbali opened 8 years ago

Cimbali commented 8 years ago

Buffer-local values were introduced and their existence was checked, however they were never actually used.

This PR fixes this. Now if you want linux sources (which typically only contain tabs to be displayed with 8 columns) to be automatically set to the right indentation level, while retaining personal preferences on other files, you can do:

autocmd BufRead /usr/src/linux* let b:detectindent_preferred_indent = 8
idbrii commented 6 years ago

This change was also made in #22. Sorry I missed this in #21!