mattn / emmet-vim

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

CSS expansion, visual select values with defaults #413

Open PezCoder opened 6 years ago

PezCoder commented 6 years ago

I have

Notations: | - represents cursor position *visually selected* - stuff between asterisk is visually selected

Current behaviour:

d|

expands to

// cursor is at the start of the 'block' keyword in insert mode
display: |block

Suggesting the behaviour to be:

// making the block visually selected
display: *block*

I actually came across this usecase multiple times.

While i think putting user in insert mode is really helpful where there is no default value for an attribute, like border but for the properties that have a default value like in case of display, putting the user in visual mode with the value highlighted could be of greater value as the user can then go ahead & immediately change it by pressing c once or exit from it by pressing esc.

If this is something that can be achieved currently, please guide me.

AckmanDESU commented 5 years ago

Spent the last hour looking around for this option. I guess it doesn't exist. It would make the plugin much more comfortable to use.

AndreGeng commented 4 years ago

it would be great to have this feature