diff --git a/README.markdown b/README.markdown index 52477e2..62e85de 100644 --- a/README.markdown +++ b/README.markdown @@ -31,6 +31,7 @@ mostly `:set` calls.) Here's a taste: * `'incsearch'`: Start searching before pressing enter. * `'listchars'`: Show trailing whitespace. * `'scrolloff'`: Always show at least one line above/below the cursor. +* `nmap Y y$`: Make `Y` behaves like `C` and `D`. [source]: https://github.com/tpope/vim-sensible/master/plugin/sensible.vim diff --git a/plugin/sensible.vim b/plugin/sensible.vim index a0c4234..391f9ad 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -51,4 +51,6 @@ if exists('+undofile') set undofile endif +nnoremap Y y$ + " vim:set ft=vim et sw=2: