mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.39k stars 411 forks source link

Custom indentation #525

Closed Animal-Machine closed 2 years ago

Animal-Machine commented 2 years ago

Hello, I set softtabstop=2 in ./vim/after/ftplugin/html.vim and filetype plugin on in my .vimrc because I prefer this coding style. However, I didn't find a way to set indentation length with emmet-vim. So when I expand abbreviations, emmet uses its own style and I get 8-spaces indents, which is ugly and doesn't fit my previously written code. Did I miss the way to do it and if not, could you implement it? Thank you!

Animal-Machine commented 2 years ago

Ok I found in emmet.vim code the mention of "shiftwidth", which was in fact the tab setting that I needed. Adding set shiftwidth=2 solved the issue.

rodhash commented 2 years ago

Thanks.