Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The defualt mapping of Y is arguably broken since it doesn't follow the normal vi conventions. I have these lines in my .vimrc to "fix" it:

    "make shift Y behave like shift-[cd] (copy to end of line)
    nnoremap Y y$


Y being a synonym for yy is from vi. What you mean to say is that it doesn't fit the pattern D/dd and C/cc present.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: