Skip to content

css: tab vs space #201

@metainfa

Description

@metainfa

For example I created the "main.css" file. Then in it I write:
body
Press Ctrl+y,
and here that occurs:

body { tab symbol }

I assumed that will be
body { space symbol }

.vimrc:
let g:user_emmet_settings = { \ 'indentation' : ' ' \}

I corrected a line 24 in file:
https://github.com/mattn/emmet-vim/blob/master/autoload/emmet/lang/css.vim
from:
let current.snippet = abbr . " {\n\t${cursor}\n}"
to:
let current.snippet = abbr . " {\n" . indent . "${cursor}\n}"

With the changed line work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions