Am 03.05.2017 um 11:11 schrieb Christian Brabandt:
Hi h_east!

On Mi, 03 Mai 2017, h_east wrote:

'gdefault' invertes the 'g' flag of `:substitute`.
In addition to 'edcompatible', it also inverts the 'c' flag.

When using `:substitute` with plugin, save and restore of the above options are 
necessary, it is a little weird.

I propose to stop supporting these options.
Please check the attached patch.

I made a little github code search for some vim settings. The results
are a bit surprising:

Search Term             Results
-------------------------------
set edcompatible        6
set gdefault            8,289
set langnoremap         718
set nolangremap         207
set termguicolors       3,425
set t_Co                98,886
set laststatus          75,336
set nocompatible        94,745
set incsearch           79,623

So gdefault seems to be popular to a certain degree. I wouldn't have
thought that, it is just such an obscure option.

By contrast the usage of edcompatible can be neglected, that option
seems to be in almost no use. Somewhat surprisingly, 'langnoremap' is
still somewhat widespread, also it is replaced by 'langremap' option.

I suppose one reason for the many gdefault hits is that quite a lot of script
writers are aware of the trouble with this option and take care of
saving and restoring it.  This is in turn is the case because gdefault is
somewhat popular (though not as popular as the number suggests ...).

--
Andy

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui