editor - Can vim recognize indentation styles (tabs vs. spaces) automatically? -


i'm working on large codebase, each file has different indentation conventions: tabs, 4 spaces, 3 spaces, etc.

i default on tabs , set shiftwidth=n expandtab smarttab when come across spaces-indented file, that's annoying.

is there functionality in vim, or plugin, can recognize that, instance, current buffer uses indentation 3 spaces per shift?

various plugins exist attempt handle situation. here few found search detect indent @ vim.org


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -