Map Y to y$

See :help Y.  This just makes more sense, man.
This commit is contained in:
Tim Pope
2013-01-06 13:16:37 -05:00
parent 38506a0e6f
commit 1a9e95e955
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -51,4 +51,6 @@ if exists('+undofile')
set undofile
endif
nnoremap Y y$
" vim:set ft=vim et sw=2: