-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defaults, part 3 #19354
Comments
👍
idk about this, feels like entropy.
Mapping |
I'm in favour of this. I always forget
Mapping to 'substitute' makes much more sense given how Another option would be to just unmap it entirely, as I bet more people hit this by accident than on purpose. |
I'm quite fond of my sort mapping (I use Re: the |
It's commonly used as a poor man's "swap". I use it when stuck on a machine without my config. The behavior of |
For a contrasting perspective, I think quite a lot of folks use |
What's all this sorting for? Doesn't It sounds more like we want a |
Most
Current exceptions to this rule:
I think if we want to map |
Also exception: |
In many cases, yes :) Besides,
That would definitely be really interesting (EDIT: Actually, super-cool, now I think about it!)
Perhaps. That's very far from the only reason for sorting lists (for example, for many non-programming usecases I like to sort lists in Markdown), but point taken. I don't have a super-strong opinion about this. After all, these are only defaults, and I can always remap myself. Just giving you a view from someone who's been using Vim a while and has his fingers hardcoded to |
Also, |
How about making the following settings the defaults?
It seems that kickstart.nvim and many others are also set, and other editors seem to be able to search case-insensitively by default. |
'ignorecase' discussed in tpope/vim-sensible#132 . Doesn't seem like a clear win, will need a lot of discussion. I just noticed that 'title' and 'titlestring' are not set by default, maybe it's time to set those #1248 |
If one wants to use replace whole lines with same lines multiple times, they'll use |
I didn't know about this way of using I just tried the Vim emulation plugins in VS Code and the JetBrains suite, and they both implement Visual-mode |
I wonder if it would make sense to have |
gdefault was rejected previously:
|
For what its worth, I am not sure if it actually breaks plugins, None of my plugins are broken, here's a list of them Plugins
And this is excluding the |
I see no |
fair, but the statement was |
Sorry, but for "it breaks plugins" to hold true, it suffices to break some plugins. And for various reasons, |
I agree, if that's the case then maybe I am wrong and |
This comment was marked as duplicate.
This comment was marked as duplicate.
|
Sorry for out of nowhere comment, as I had a thought which seems worth sharing. The (Very side note. If using only Lua code for surrounding implementation will be considered enough, I am happy to collaborate, as I have relevant experience) |
why wouldn't vim-surround's |
Some people (quite reasonably) prefer the "prefix style" as it is more descriptive (as
Sure, understood. Sorry for the noise. |
can we have a saner default for
|
previous: #6289
Feature description
A few more proposals for defaults:
nnoremap & <Cmd>&&<CR>
&
key repeats the last:s
command, but does not re-use the flags of the last command. Meaning if you last ran:s/foo/bar/g
to replace all instances offoo
in a line withbar
, then move your cursor to a different line and press&
, it will still only replace the first instance offoo
withbar
. The:&&
ex command does re-use the flags, but is relatively more cumbersome (four key presses rather than one). The latter is much more useful and a more common operation. To regain the original behavior, users can still use the:&
ex command.Swapp
andP
in visual mode (xnoremap p P | xnoremap P p
)P
key was added to avoid this: it preserves the contents of the unnamed register so that you can useP
repeatedly to "paste" the same contents. This behavior is more intuitive and commonplace in other editing environments, so let's make it the default forp
. If a user wants the original behavior, they can useP
(or unmap the defaults).gs
to:sort
gs
mapping is so utterly useless it almost seems like a joke. Instead, makegs
an operator in normal mode that sorts the given range (in visual mode, make it sort the selection). I currently use this:gs
some kind of "substitute" operator for consistency with the defaults
mapping. Example:xnoremap gs mr:s/\%V
(and an equivalent operator in normal mode)shortmess+=C
defaults: shortmess+=C #23907smoothscroll
defaults: smoothscroll #23939termguicolors
feat(defaults): enable 'termguicolors' by default when supported by terminal #26407The text was updated successfully, but these errors were encountered: