[vim/vim] Minify And Unminify (#5784)

15 views
Skip to first unread message

Bapi Dey

unread,
Mar 15, 2020, 7:07:56 AM3/15/20
to vim/vim, Subscribed

Could you provide a Build in feature to Minify and Unminiy the code like JavaScript, CSS, etc.
It might be very helpful because it is usually hard to copy paste code here to there.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Gary Johnson

unread,
Mar 15, 2020, 2:18:58 PM3/15/20
to reply+ACY5DGEKKNCBI6KM3P...@reply.github.com, vim...@googlegroups.com
On 2020-03-15, Bapi Dey wrote:
> Could you provide a Build in feature to Minify and Unminiy the code like
> JavaScript, CSS, etc.
> It might be very helpful because it is usually hard to copy paste code here to
> there.

Would you please explain what Minify and Unminiy mean? There may
already be a way in Vim to do what you want.

Regards,
Gary

vim-dev ML

unread,
Mar 15, 2020, 2:19:16 PM3/15/20
to vim/vim, vim-dev ML, Your activity

On 2020-03-15, Bapi Dey wrote:
> Could you provide a Build in feature to Minify and Unminiy the code like
> JavaScript, CSS, etc.
> It might be very helpful because it is usually hard to copy paste code here to
> there.

Would you please explain what Minify and Unminiy mean? There may
already be a way in Vim to do what you want.

Regards,
Gary

K.Takata

unread,
Mar 15, 2020, 9:26:50 PM3/15/20
to vim/vim, vim-dev ML, Comment

I don't think Vim needs to have such builtin feature. Plugins would be sufficient.


You are receiving this because you commented.

Bapi Dey

unread,
Mar 15, 2020, 11:00:27 PM3/15/20
to vim/vim, vim-dev ML, Mention

@vim-ml Minification is the process of removing all unnecessary characters from the source codes of interpreted programming languages or markup languages without changing their functionality. These unnecessary characters usually include white space characters, new line characters, comments, and sometimes block delimiters, which are used to add readability to the code but are not required for it to execute. Minification reduces the size of the source code, making its transmission over a network more efficient.

For unminify here is a ans from stackoverflow. Now, maybe you understood what I am looking for.


You are receiving this because you were mentioned.

Gary Johnson

unread,
Mar 15, 2020, 11:44:20 PM3/15/20
to reply+ACY5DGD4L7YDDOHYLE...@reply.github.com, vim...@googlegroups.com
On 2020-03-15, Bapi Dey wrote:
> @vim-ml Minification is the process of removing all unnecessary characters from
> the source codes of interpreted programming languages or markup languages
> without changing their functionality. These unnecessary characters usually
> include white space characters, new line characters, comments, and sometimes
> block delimiters, which are used to add readability to the code but are not
> required for it to execute. Minification reduces the size of the source code,
> making its transmission over a network more efficient.
>
> For unminify here is a ans from stackoverflow. Now, maybe you understood what I
> am looking for.

Thank you. Now I understand.

Given the speed of today's networks and the overhead of everything
else involved in transferring data over a network, it seems hardly
worth the effort.

In any case, I agree with K.Takata that this is something that could
be done in a plugin and definitely not something to be included
internally in Vim.

Regards,
Gary

vim-dev ML

unread,
Mar 15, 2020, 11:44:40 PM3/15/20
to vim/vim, vim-dev ML, Your activity

Christian Brabandt

unread,
Mar 16, 2020, 3:31:44 AM3/16/20
to vim/vim, vim-dev ML, Mention

Closed #5784.


You are receiving this because you were mentioned.

Christian Brabandt

unread,
Mar 16, 2020, 3:31:44 AM3/16/20
to vim/vim, vim-dev ML, Mention

I am closing this, as I don't see why this needs to be in the core. A plugin should work and might possibly already exists.


You are receiving this because you were mentioned.

Reply all
Reply to author
Forward
0 new messages