Comments (13)
OK, but yanking whole line already has default key binding, yy
, which is even faster to type than Y
(Shift
+y
). So is it really a problem? I use Y
remapped as y$
quite often and it was always frustrating for me that naked Vim has this illogical vi-compatible binding for Y
even if nocompatible
is set. Y
remapping is maybe the most sensible setting from vim-sensible – it makes an obvious correction while not breaking anything (yy
is still there). If it is dropped then I'm afraid most other v-s settings will be gradually removed too, as there always will be someone that doesn't like some particular setting...
from vim-sensible.
If others are missing the big Y
as well, put this you know where...
noremap Y y$
from vim-sensible.
@vectorstorm , I use vim-sensible even though I override a couple of its settings. I think it is valuable for the vim community to migrate towards "sane defaults" for most users, especially new users, even if veteran users prefer some historical quirks. It also takes some cruft out of my vimrc.
Why not override the 2-3 settings you object to?
from vim-sensible.
I object to installing a vim-sensible that doesn't noremap Y y$.
from vim-sensible.
@drastus , agreed. Probably the change that needs to be made to vim-sensible is to remove the goal of being a "plugin nobody objects to installing". 100% agreement is impossible. 99% is much more feasible.
from vim-sensible.
yy
requires two keypresses by the same finger, executed in sequence. Y
requires a single keypress each by two fingers on different hands, executed simultaneously. Any experienced touch-typist will press Y
far faster than yy
. This is, after all, why vi bothered to map yy
to Y
in the first place -- because it's faster and easier to type.
Anyhow, my intention wasn't to get vim-sensible to change anything; I was just reporting here that I don't use the plugin because I disagree with the Y
remapping (and possibly &
, and I still can't figure out the purpose of the insert mode <C-U>
mapping, despite tracking down and reading its commit message. Which I guess means that I object to it.) I'm reporting this as an issue here only because the readme asks people to post an issue here if they disagree with anything in the plugin.
from vim-sensible.
To override settings in vim-sensible, I would have to break my vimrc into two different files in different directories in order to have them load at the correct times. That makes inspection, editing, and deployment of my vimrc on multiple machines rather more complicated, so I would prefer not to have to do it.
I've added a pull request in Issue #48 which contains one method to improve this overriding process.
from vim-sensible.
I'm dropping the Y mapping. I think the argument against it is pretty weak, but it's clearly a contentious override, and it's not really worth dividing people over.
Dropping &&
too, as I was never particularly enthused about that contribution. Leaving <C-U>
for now, as it regularly saves my ass by making it undoable.
I'm sticking with the "nobody objects to installing" tagline. I'm quite happy to classify silo-building assholes as nobodies.
from vim-sensible.
I hope I didn't come across as a "silo-building asshole"; that was not my intent, and I'm very sorry if I did!
from vim-sensible.
No, those are a different category. :)
from vim-sensible.
Arrrrrgh wondering why this was broken now.
/me miserably re-adds the mapping back to vimrc
from vim-sensible.
Is the speed difference between yy and Y really that significant? I'd rather have two different functionalities. An extra command (copy to end of line) is more useful to me than the mostly insignificant amount of time I'd save with default Y.
from vim-sensible.
It's asinine, but this issue is closed.
from vim-sensible.
Related Issues (20)
- set mouse=a HOT 11
- sessionoptions+=localoptions HOT 8
- Revert accidental <C-W> HOT 2
- viewoptions-=options HOT 1
- Installation instructions incorrect HOT 2
- Proposal: let g:netrw_banner = 0 HOT 2
- :set secure and :set nomodeline HOT 1
- sidescrolloff setting causes sudden row offsets in vifm plugin in Neovim on Windows HOT 1
- Scrolloff in terminal HOT 4
- Insert mode <c-w> mapping breaks abbreviations HOT 1
- "set display+=lastline" do nothing if added after "set display=truncate" HOT 1
- SSL certificate HOT 2
- `:redir` causes shell prompt to move when exiting vim HOT 2
- Terminal positions cursor in the bottom left of the screen when exiting Vim HOT 3
- Conflict with gitsessions.vim, syntax highlighting isn't restored HOT 2
- .vimrc:3: parse error near `\n' HOT 1
- Usage of :redir causes ≈10x perf regression when loading vim-sensible HOT 2
- vim-sensible causes indentation when typing "#" in YAML files? HOT 4
- New to vim - Followed instructions but nothing HOT 1
- Line 62, laststatus = 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-sensible.